net.ipv4.netfilter.ip_conntrack_max = 655350
net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 600
改为
net.netfilter.nf_conntrack_max = 655350
net.netfilter.nf_conntrack_tcp_timeout_established = 600
查看目前 ip_conntrack buffer 的使用状况
>
grep
ip_conntrack
/proc/slabinfo
ip_conntrack 38358 64324 304 13 1 : tunables 54 27 8 : slabdata 4948 4948 216
其中各个数字的含义为:
38358 the number of currently active objects
64324 the total number of available objects
304 the size of each object in bytes
13 the number of pages with at least one active object
查出目前 ip_conntrack 记录最多的前十名 IP
cat /proc/net/ip_conntrack
|
cut
-d
' '
-f 10 |
cut
-d
'='
-f 2 |
sort
|
http://wiki.khnet.info/index.php/Conntrack_tuning