open iptables to connect as client to windows network

oxy oxyopes at googlemail.com
Thu May 24 09:54:51 UTC 2012


> why have you got '--state NEW' in there, and
> does it work if you remove them?

no, the config below blocks me from connecting to win network as well

# samba
$IPT -A OUTPUT  -p tcp --dport 137 -j ACCEPT
$IPT -A OUTPUT  -p udp --dport 137 -j ACCEPT
$IPT -A OUTPUT  -p tcp --dport 138 -j ACCEPT
$IPT -A OUTPUT  -p udp --dport 138 -j ACCEPT
$IPT -A OUTPUT -p tcp --dport 139 -j ACCEPT
$IPT -A OUTPUT -p udp --dport 139 -j ACCEPT
$IPT -A OUTPUT -p tcp --dport 445 -j ACCEPT
$IPT -A OUTPUT -p udp --dport 445 -j ACCEPT

Seems to be a very simple task, but i cannt get it :-/

Basic question: when u connect to, say port 137,
the response comes at another port (any nr), but then as
established connection. How iptables handles with that?

thx...




More information about the ubuntu-users mailing list