IPTables connection limitiing rule meaning
11/1
Hello,
I have a rule in my output chain as follows:
iptables -A OUTPUT -o <external-IF> -m limit --limit 15/minute --limit-burst 10 -j LOG --log-prefix "GW->Intet: "
1. Would this rule LOG packets as long as the rule is matched?
2. If the limit is reached (15/min) would the packets stop going to the next rule in the chain?
3. Supposing I have this rule after the above rule
iptables -A OUTPUT -j ACCEPT
Would this over-ride the above rule applicable for the external interface?
Thank You.
Menon
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
Quoted 10 lines · Rajesh Menon
Hello,
I have a rule in my output chain as follows:
iptables -A OUTPUT -o <external-IF> -m limit --limit 15/minute --limit-burst 10 -j LOG --log-prefix "
GW->Intet: "1. Would this rule LOG packets as long as the rule is matched?
yes--conditional on your limit match. read rusty's description on the "hysteresis door" algorithm used by limit/limit-burst under "Other Match Extensions" at:
http://netfilter.org/documentation/HOWTO//packet-filtering-HOWTO-7.html
Quoted 2 lines
2. If the limit is reached (15/min) would the packets stop going to the next rule in the chain?
no--"-j LOG" is a non-terminating match (packets will never stop traversing rules/chains/tables when they match)
Quoted 3 lines
3. Supposing I have this rule after the above rule
iptables -A OUTPUT -j ACCEPT
this rule matches all packets, and no rules after this rule will match in the OUTPUT chain.
-j
--
"No jury in the world is going to convict a baby ... Maybe Texas."
--The Simpsons