Samba question

goldboyd

Golden Member
Oct 12, 1999
1,932
0
0
When using Samba, is there a way to configure it so it only listens on a certain interface/ip address? I guess I could start it with tcpserver and only have that listen on 1 ip, but is there a way to do it via Samba itself?

thanks
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
bind interfaces only

By default it's 0.0.0.0, or all interfaces on the machine. So, yes, you can restrict it to listen for requests on only a certain interface.
 

gaidin123

Senior member
May 5, 2000
962
1
0
#interfaces = 192.168.0.0/24

#interfaces = eth1
#bind interfaces only = True

Either of the above 'interfaces' lines should work for you as long as you include the bind interface only line as well. You can list interfaces several ways. I believe the newer sample smb.conf files that come with the Samba distribution along with the Samba docs/man pages have a good deal of info on this topic. It does work very well. :)

Gaidin