RE: samba and iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I still can't seem to make samba and iptables work properly.
> 
> First connection - I need to turn iptables off
> Succeeding connections - I can turn iptables on
> 
> I have done this already:
> $IPTABLES -A INPUT -p tcp -s 190.200.5.51 --dport 137:139 -j ACCEPT
> $IPTABLES -A INPUT -p udp -s 190.200.5.51 --dport 137:139 -j ACCEPT
> $IPTABLES -A INPUT -p tcp -s 190.200.5.51 --dport 445 -j ACCEPT
> 
> It's being blocked in the 1st attempt so I need to turn 
> iptables off to make it work.
> Based on "iptables -nvL" the 3 lines above produce accepted packets.
> Now what else do I need to add to make the 1st transaction to work?
> 
> By the way, I have 2 network cards. How do I know which one 
> is being used by samba?

Do you also have something like :
$IPTABLES -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT


Gr,
Rob



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux