[Samba] restricting interfaces.

Alexander Kuznetsov iam at alz27.nnov.ru
Fri Nov 1 13:57:01 GMT 2002


A> Hello,
A> I've got samba running on a FreeBSD box that has two interfaces, ep0
A> which is an external interface, and ep1 which is for internal use only. I
A> only want samba to listen on ep1 so if i'm ever portscanned port 137/139
A> will not show up as open on the external interface. I've added these
A> lines to the global section of my smb.conf file:
A> hosts allow=192.168.0.
A> interfaces=192.168.0.0/16 127.0.0.1
A> bind interfaces only=yes
A> yet when i restart samba port 139 is still showing as open on my external
A> interface, what did i miss?

interfaces=192.168.0.0/16 is not interface.
Interface is (example) 192.168.0.115/16 (realy IP of card and netmask)

Good Luck

	Alexander Kuznetsov



More information about the samba mailing list