How should I write the iptables rule for Samba?
I have a Samba Server in the Windows network.The rule write like this :
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
iptables -A INPUT -p tcp -d 192.168.0.1 --dport 139 -j ACCEPT
iptables -A OUTPUT -p tcp -s 192.168.0.1 --dport 139 -j ACCEPT
iptables -A INPUT -p udp -d 192.168.0.1 --dport 137:138 -j ACCEPT
iptables -A OUTPIT -p udp -d 192.168.0.1 --dport 137:138 -j ACCEPT
But I can't access the Samba Server!
How should I do?
Thank you!
|