问题原文
原帖链接 · Mike B · CC BY-SA 3.0
I'm using CentOS 5.x trying to wrap my mind around the following iptables rule on one of my servers:
-A RH-Firewall-1-INPUT -p icmp --icmp-type echo-request -m limit --limit 1/s -j ACCEPT
On another server I have:
-A RH-Firewall-1-INPUT -p icmp --icmp-type echo-request -m limit --limit 1/s --limit-burst 3 -j ACCEPT
I understand that both of these rules are designed to allow (and throttle) incoming ping requests but what is the limit-burst option about? And are these allowances on a per host basis? Or do they apply to any/all incoming ICMP connections at all?
已采纳解答
原帖链接 · Evan Anderson · CC BY-SA 3.0
The math is fully explained in the netfilter docs, but it's reasonable to say that the limit-burst argument specifies the number of matches that are allow through before the limit of 1 per second "kicks in". These two rules both apply only to ICMP echo request packets (incoming PING requests). These are not per-host limits and apply to anything the rule matches (which, in this case, would be all ICMP echo requests).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
