分类: LINUX
2010-10-09 11:54:06
Mask made of ICMP types for which rates are being limited.
Significant bits: IHGFEDCBA9876543210
Default mask: 0000001100000011000 (6168)
Bit definitions (see include/linux/icmp.h):
* - rate limited by default (see default mask above)
通过脚本配置
#!/bin/sh
#enable ping rate limit
cat /proc/sys/net/ipv4/icmp_ratemask | while read netmask; do
echo $netmask
let "netmask |= 1"
echo $netmask > /proc/sys/net/ipv4/icmp_ratemask
done