PDA

View Full Version : Samba/Firewall Problem


sc00by
30th May 2004, 02:05 PM
I thought samba was not working but it turns out it was my firewall.

If i try and access a samba share from a WinXP machine I receive the error that it cannot be accessed. If i enter iptables -F; at an SSH prompt it starts working.

I have opened the ports that samba uses in the firewall but I still have to enter iptables -F;

Thats fine for me but as soon as the Linux box gets a reboot then its blocked again until someone typed in iptables -F; into a prompt.

What do I configure to get it to either do that itself or to accept samba requests??

Thanks
John :confused:

Jman
30th May 2004, 05:47 PM
I think if you allow ports 137 to 139 through it will work.

Consider installing the Firestarter (http://www.fedoraforum.org/forum/showthread.php?s=&threadid=1435) graphical firewall tool, running the wizard, and checking the samba service box.

vinu
6th June 2004, 10:46 PM

You need to open ports 137,128 and 139 for windoze 95/98/2000 and 445 for winXP.