BillyCrook
Programmer
I run a samba server on Fedora Core 5. This machine has two nics, one wan, one lan. I want smbd (port 139 and 445) to be available to hosts on both networks. I want nmbd broadcasts and announcements to only occur on eth1 (lan). I am trying to minimize traffic on eth0. My server keeps sending usp accountrements to a certain host on eth0, which I have never heard of before. I know one answer is to use iptables to drop any traffic going onto on eth0, from port udp/138. This would in effect contain the problem. I want to do it the 'right' way though. A quick sniff with wire-shark reveals that the two UDP data-grams nmbd is sending ever 12 minutes are a Domain/Workgroup Announcement and a local master announcement. They are being sent to 172.16.95.255, which Is the broadcast address on eth0's network. I know that if the server cannot advertise itself nothing will be able to access it by host name. This is acceptable since the only hosts on the wan that should be accessing it do so directly by IP address.
How can I stop NMBD from advertising to a specific network without stopping SMBD from servicing that same network.
How can I stop NMBD from advertising to a specific network without stopping SMBD from servicing that same network.