Sysctl: cannot stat /proc/sys/net/ipv4/netfilter/ip_conntrack_max: No such file or directory

centos7networkingsysctl

I try to change net.ipv4.netfilter.ip_conntrack_max by editing /etc/sysctl.conf

net.ipv4.netfilter.ip_conntrack_max = 65535

and sysctl -p

But i receive error:

sysctl: cannot stat /proc/sys/net/ipv4/netfilter/ip_conntrack_max: No such file or directory

CentOS 7

Best Answer

Try

net.netfilter.nf_conntrack_max = xxxx

and

net.nf_conntrack_max = xxxxx

instead.

Or maybe ip_conntrack is not loaded. Try:

lsmod |grep conntrack

If this is empty, load it with:

modprobe ip_conntrack