LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Samba and iptables (https://www.linuxquestions.org/questions/linux-security-4/samba-and-iptables-12988/)

kevin 01-29-2002 12:20 PM

Samba and iptables
 
I'm having some trouble seeing my Linux machine from a Win32 box. I've just implemented a firewall using iptables and I think that I've enabled the samba network ports properly, but I guess I've missed something.

I can't telnet to the machine name, but I can to the IP Address, and in the Windows Explorer, the machine does not turn up in Network Neighbourhood.

I have the following entries in my iptables script:

(10.0.0.1 is the windows box)

iptables -A INPUT -s 10.0.0.1 -p tcl --dport 8192
iptables -A INPUT -s 10.0.0.1 -p tcp --dport 139 -j ACCEPT
iptables -A INPUT -s 10.0.0.1 -p udp --dport 137

I've also let the name servers in:

iptables -A INPUT -s 158.222.5.5 -p udp --sport 53

Is there something else that I've missed, or have I implemented something incorrectly perhaps?

Thanks for any help,
Kevin.

kevin 01-29-2002 12:21 PM

Addition
 
Sorry...

I should proof-read more carefully, all of the above entries should have -j ACCEPT on them. That was a mistake in the email, not the iptable script.

Kevin.


All times are GMT -5. The time now is 02:39 AM.