]> git.proxmox.com Git - pve-firewall.git/commit - src/PVE/Firewall.pm
increase default nf_conntrack_max to kernel default
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Oct 2019 09:08:18 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 22 Oct 2019 09:13:15 +0000 (11:13 +0200)
commitb2ec31cc3d2990a9c0dd447e73506287fd120d09
treeae2d1dcd6af10ef3fc220e5527acddd188affe00
parent13d39f198ad142a013077f4b3cc436257f7a1a11
increase default nf_conntrack_max to kernel default

for nf_conntrack_max the kernel uses by default the value:
(nf_conntrack_buckets value * 4) and nf_conntrack_buckets
is set to 2^16 for machines with more than 4GB memory, so the
resulting default would be 2^18 == 262144.

As PVE hoists are expected to have more than such a, nowadays rather
small, amount of memory, update the default to match the one which
would be normally used anyway.

[0]: https://www.kernel.org/doc/Documentation/networking/nf_conntrack-sysctl.txt

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm