sysctl can change netfilter.nf_conntrack_max
values fine, but doesn't seem to change net.netfilter.nf_conntrack_buckets
.
I could work around it by changing /sys/module/nf_conntrack/parameters/hashsize
post boot but I'm wondering if this a bug?
root@lede:~# sysctl net.netfilter.nf_conntrack_buckets
net.netfilter.nf_conntrack_buckets = 16384
root@lede:~# sysctl -w net.netfilter.nf_conntrack_buckets=32768
root@lede:~# sysctl net.netfilter.nf_conntrack_buckets
net.netfilter.nf_conntrack_buckets = 16384
root@lede:~# cat /sys/module/nf_conntrack/parameters/hashsize
16384
root@lede:~# sysctl -w net.netfilter.nf_conntrack_max=131072
net.netfilter.nf_conntrack_max = 131072
root@lede:~# sysctl net.netfilter.nf_conntrack_max
net.netfilter.nf_conntrack_max = 131072
root@lede:~# sysctl -w net.netfilter.nf_conntrack_buckets=32768
root@lede:~# sysctl net.netfilter.nf_conntrack_buckets
net.netfilter.nf_conntrack_buckets = 16384