"OtisUsenet" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com
> # this DROPs all packets for port 8009
> $IPTABLES -A INPUT -p TCP --dport 8009 -m state --state NEW -j DROP
> $IPTABLES -A INPUT -p UDP --dport 8009 -m state --state NEW -j DROP
1- you should use --syn with TCP
2- you accept the syn in the connection, but no other packets...
That's why you see the SYN_sent state.
You should add first:
$IPTABLES -A INPUT -p TCP -m state --state ESTABLISHED, RELATED
\ -j ACCEPT
And, a very important thing:
The order of the rules in iptables does matter, a lot :-)
Iptables gets the firt matching rule, so be careful with the order of
them.
--
Posted via Mailgate.ORG Server -
http://www.Mailgate.ORG