5
Using samba 4.1.17-Debian I have tried the following smb.conf entries to bind samba to the link-local ipv6 addresses
interfaces = fe80::d270:36a5:ac03:37ea%br0 fe80::/10 ::1
bind interfaces only = yes
but checking with netstat only shows smbd listening on ::1
The manual states that besides interface names addresses or address+mask can be specified, so I would expect either approach to work.
Updated config:
# ip addr show dev br0 | grep -c fe80
1
# smb.conf
bind interfaces only = yes
interfaces = 192.168.0.0/16 ::1 127.0.0.1 fe80::%br0/64
# smbd --version
Version 4.5.12-Debian
# netstat -lnp | grep smb
tcp 0 0 192.168.0.3:139 0.0.0.0:* LISTEN 17048/smbd
tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 17048/smbd
tcp 0 0 192.168.0.3:445 0.0.0.0:* LISTEN 17048/smbd
tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 17048/smbd
tcp6 0 0 ::1:139 :::* LISTEN 17048/smbd
tcp6 0 0 ::1:445 :::* LISTEN 17048/smbd
Wouldn't it be enough to specify
br0
in that case? Binding to a specific address sounds like it could cause problems. – user1686 – 2016-01-21T06:07:52.880br0 also has other addresses on which I don't want to provide smb, among them global unicast v6 – the8472 – 2016-01-21T06:21:46.987