diff --git a/sysctl.d/local.conf b/sysctl.d/local.conf index 154a49c..2abe4bd 100644 --- a/sysctl.d/local.conf +++ b/sysctl.d/local.conf @@ -1,3 +1,13 @@ +net.ipv4.ip_local_port_range = 1024 65535 + +net.ipv4.conf.*.send_redirects = 0 +net.ipv4.conf.*.accept_redirects = 0 +net.ipv6.conf.*.accept_redirects = 0 + +# enforced with nftables to handle both IPv4 and IPv6 in the same way +net.ipv4.conf.default.rp_filter = 0 +net.ipv4.conf.*.rp_filter = 0 + net.ipv4.tcp_ecn = 1 net.ipv4.tcp_slow_start_after_idle = 0 net.ipv4.tcp_notsent_lowat = 131072 @@ -18,21 +28,11 @@ net.ipv4.tcp_retries2 = 8 # 25.4s with minimum 0.2s RTO net.ipv4.tcp_orphan_retries = 6 -net.ipv4.ip_local_port_range = 1024 65535 - -net.ipv4.conf.*.send_redirects = 0 -net.ipv4.conf.*.accept_redirects = 0 -net.ipv6.conf.*.accept_redirects = 0 +net.mptcp.enabled = 0 net.netfilter.nf_conntrack_tcp_loose = 0 net.netfilter.nf_conntrack_tcp_timeout_established = 14400 -# enforced with nftables to handle both IPv4 and IPv6 in the same way -net.ipv4.conf.default.rp_filter = 0 -net.ipv4.conf.*.rp_filter = 0 - -net.mptcp.enabled = 0 - kernel.yama.ptrace_scope = 2 vm.max_map_count = 1048576