iptables stopping samba?
Anthony M. Rasat
anthony.rasat at gmail.com
Sat Dec 6 00:31:41 UTC 2008
Knute Johnson wrote:
>I've got a funny problem with iptables and samba.
>If I stop iptables
the smbclient works just fine. If I enable it,
>even with 137,138,139
and port 445 open
>for both udp and tcp
>the smbclient reports;
>
>Connection to ??? failed (Error
>NT_STATUS_BAD_NETWORK_NAME)
>
>Is there another port I need to open? Any ideas
>greatly appreciated.
Try lsof apps to see yourself whatever application listening on whatever interface. I think lsof is by default installed in Hardy and Intrepid.
sudo lsof -P -i -n
Most of the times - back when I haven't met Easy Firewall Generator (you can use it online from http://easyfwgen.morizot.net/gen/) - I realised it was me making lots of firewall syntax mistakes instead of giving the wrong port numbers.
Now usually I use Easy Firewall Generator to create near perfect iptables script and left me finetuned any additional rule. It was heavily commented so I guess it live up its name.
--
Regards,
Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
More information about the ubuntu-users
mailing list