testing: Move sysctl settings to sysctl.d and add some memory settings

Debian trixie doesn't provide a 99-sysctl.conf symlink in that directory
anymore.  The memory settings are also useful there as the default of
one changed and overbooking helps when forking a process with large
memory footprint (e.g. the IKE daemon).
This commit is contained in:
Tobias Brunner
2025-09-18 11:12:22 +02:00
parent 5e85ce17a2
commit acaf4b2d17
2 changed files with 16 additions and 62 deletions
@@ -0,0 +1,16 @@
# Enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
# Enable coredump for suid binaries
fs.suid_dumpable = 1
# As we run with very little memory, use the old default to reduce overhead
vm.max_map_count = 65530
# Allow overcommitting, in particular for forks
vm.overcommit_memory = 1