How to modify the max Active Connections on ver22.03.2

root@OpenWrt:~# cat /etc/sysctl.d/11-nf-conntrack.conf
# Do not edit, changes to this file will be lost on upgrades
# /etc/sysctl.conf can be used to customize sysctl settings

net.netfilter.nf_conntrack_acct=1
net.netfilter.nf_conntrack_checksum=0
net.netfilter.nf_conntrack_tcp_timeout_established=7440
net.netfilter.nf_conntrack_udp_timeout=60
net.netfilter.nf_conntrack_udp_timeout_stream=180

There is no related configuration item in the file /etc/sysctl.d/11-nf-conntrack.conf.

1 Like

Put these lines in /etc/sysctl.conf

net.nf_conntrack_max=16384
net.netfilter.nf_conntrack_max=16384

then run sysctl -p to reload settings from file.

3 Likes

Thank you, It works fine after modification.
And it can work fine by adding either of the two lines

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.