need help reading an iptables rule

Asked by kapthar

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:
Last query:
Last reply:
Revision history for this message
Best Eliah Kagan (degeneracypressure) said :
#1

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.

Revision history for this message
kapthar (bizhost) said :
#2

Thanks Eliah Kagan, that solved my question.