LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables and samba (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-and-samba-320982/)

GiX 05-07-2005 07:26 AM

iptables and samba
 
here goes another stoopid question from an obvious noob...

I have managed to set up samba...
from my xp system I can see the linux box, no prob, when trying to access it, it takes a few seconds, then gives me a network path does not exist error, when i stop iptables on my fedora3 box, i can access my shares fine from my xp system.

So common sense tells me that iptables is denying me access.

As i am clueless to how to configure iptables, could someone please nudge me into a direction...

much appreciated

Hangdog42 05-07-2005 07:59 AM

If you're completely in the dark about writing iptables rules, I'd suggest a gui interface like Firestarter. If you are somewhat familiar with iptables rules, I use the following to allow local network access to Samba

Code:

iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --dport netbios-ssn -j ACCEPT
iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --dport microsoft-ds -j ACCEPT
iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p udp --dport netbios-ns -j ACCEPT


foo_bar_foo 05-07-2005 06:19 PM

i let anything the windows box on my network wants to send over OK (it's connected to eth1)
/sbin/iptables -A INPUT -i eth1 -j ACCEPT

remember that order matters to your iptables entries

the above command won't do any good if it comes after the connection from eth1 is dropped


All times are GMT -5. The time now is 04:57 PM.