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

Re: Iptables rule for windows file sharing?



> iptables -A INPUT -p ALL -i eth0 -s 192.168.0.1 --destination-port 137:139 -j ACCEPT


I think that should be:
iptables -A INPUT -m tcp -p tcp -i eth0 -s 192.168.0.1 --destination-port 137:139 -j ACCEPT
iptables -A INPUT -m udp -p udp -i eth0 -s 192.168.0.1 --destination-port 137:139 -j ACCEPT

But I don't know, if UDP is used.


-- 
This is an email sent via the webforum on http://fcp.homelinux.org


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