need help reading an iptables rule

Asked by kapthar on 2011-04-23

Can someone interpret the meaning of the following iptables rule? It has the ! set and this is confusing me. Thanks in advance.
KapHar

-A INPUT -s 81.174.95.44/32 -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu iptables Edit question
Assignee:
No assignee Edit question
Solved by:
Eliah Kagan
Solved:
2011-04-23
Last query:
2011-04-23
Last reply:
2011-04-23

The ! inverts the argument that comes right after it. Please also see the explanation of --tcp-flags in the iptables manual page (Maverick version: http://manpages.ubuntu.com/manpages/maverick/en/man8/iptables.8.html). Please post a reply if you need further information.

kapthar (bizhost) said : #2

Thanks Eliah Kagan, that solved my question.