[[email protected] ~]# cat /etc/sysctl.conf
net.nf_conntrack_max = 524288
net.netfilter.nf_conntrack_max = 524288
[[email protected] ~]#
[[email protected] ~]# cat /etc/modprobe.d/netfilter.conf
options nf_conntrack hashsize=131072
[[email protected] ~]#
# /etc/init.d/iptables restart
# sysctl -p
检查:
/var/log/messages 内容不再出现table full 的报错信息
sysctl net.netfilter.nf_conntrack_max #确认是修改后的结果
sysctl net.netfilter.nf_conntrack_count
时间: 2024-12-20 18:23:02