Click to See Complete Forum and Search --> : samba & iptables


ztopher
04-07-2003, 03:21 PM
Hi

I cannot connect to my Linux server (running smb)from my windows 2000 box due to my rc.firewall script ?

But why don't you change the script then? you may think. And this is what I am about to do but I need some help. My question is thus, which tcp and udp port do I need to open in my script?

right now I use the following iptables commands for this after cheking /etc/services for the ports associated with netbios.


### $INTIF=eth1

#INPUT
$IPTABLES -A INPUT -i $INTIF -p tcp --dport 137:139 -j ACCEPT
$IPTABLES -A INPUT -i $INTIF -p udp --dport 137:139 -j ACCEPT

#OUTPUT
$IPTABLES -A OUTPUT -o $INTIF -p upd --sport 137:139 -j ACCEPT



BTW if i flush my iptables rules everything works fine. I hope someone can help me...

Cheers

/Ztophowitch

ztopher
04-07-2003, 04:07 PM
Well hehe :D...Now i woks, I needed a rule for tcp outgoing to !

/Zzz

raddboy
04-07-2003, 04:10 PM
Yep, and it looks like you mis-spelled UDP on the OUTGOING?