samba: Fix Samba not accessible from IPv6 localhost ::1 address
Also:
- Remove addressses [fc00::]/7 and [fe80::] from
allow hosts
, as those had no effect as described in #2334 (closed). - Remove unknown parameter
access control = yes
from Samba configuration.
Tests performed in a stable container:
-
After Samba app upgrade was performed, enabled Samba Home share.
-
Using the
testparm
command, checked that the share is accessible from ::1 IPv6 address:
> sudo testparm -s /etc/samba/smb-freedombox.conf host-ip ::1
Allow connection from host-ip (::1) to disk_home
> sudo testparm -s /etc/samba/smb-freedombox.conf host-ip ::2
Denied connection from host-ip (::2)
Deny connection from host-ip (::2) to disk_home
- Checked that when
ping localhost
returns ::1 in the container, all the Samba tests pass.
Closes #2334 (closed).
Signed-off-by: Veiko Aasa veiko17@disroot.org