Re: open iptables to connect as client to windows network



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...

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users