Allow Samba to also listen on loopback when specifying a Bind IP
|NIC | Interface Name | DHCP | Media Status | IPv4 Addresses | IPv6 Addresses | Auto configure IPv6| Options|
We are using FreeNAS with multimple intefaces (2), and due to security issues, I only want Samba to listen on 1 of the IPs/Interfaces.
When Bind IP Addresses: option is selected, samba is only configured on this interface:
root@fuen-dc-1:~ # grep interfaces /usr/local/etc/smb4.conf bind interfaces only = yes interfaces = 10.0.3.20 root@fuen-dc-1:~ #
But per samba recommendation a loopback (127.0.0.1) interface must always be included, as lack of this can cause some issues to internal scripts and other samba utilities. And Loopback is not available in the list of interfaces/IPs to choose from.
As a workaround, I've set this options through Auxiliary parameters:, but Loopback should always be active, as per samba team recommendation.
#5 Updated by Michael Reynolds almost 3 years ago
- File BindLocalhost-2018-08-15.png BindLocalhost-2018-08-15.png added
- Status changed from Ready for Testing to Passed Testing
- Reason for Blocked deleted (
- Needs QA changed from Yes to No
- Needs Doc changed from No to Yes
127.0.0.1 is now available in the list of "Bind IP Addresses"
#11 Updated by Timothy Moore II almost 3 years ago
- Needs Doc changed from Yes to No
Docs commit to freenas/11.1-stable branch: https://github.com/freenas/freenas-docs/commit/e40886861f2b6eb22a95337ce9e697c6c85f02ac