mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 21:49:22 -05:00
reorganize sysctl configuration
This commit is contained in:
parent
51a4f8ca7a
commit
eb55afa3a8
@ -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_ecn = 1
|
||||||
net.ipv4.tcp_slow_start_after_idle = 0
|
net.ipv4.tcp_slow_start_after_idle = 0
|
||||||
net.ipv4.tcp_notsent_lowat = 131072
|
net.ipv4.tcp_notsent_lowat = 131072
|
||||||
@ -18,21 +28,11 @@ net.ipv4.tcp_retries2 = 8
|
|||||||
# 25.4s with minimum 0.2s RTO
|
# 25.4s with minimum 0.2s RTO
|
||||||
net.ipv4.tcp_orphan_retries = 6
|
net.ipv4.tcp_orphan_retries = 6
|
||||||
|
|
||||||
net.ipv4.ip_local_port_range = 1024 65535
|
net.mptcp.enabled = 0
|
||||||
|
|
||||||
net.ipv4.conf.*.send_redirects = 0
|
|
||||||
net.ipv4.conf.*.accept_redirects = 0
|
|
||||||
net.ipv6.conf.*.accept_redirects = 0
|
|
||||||
|
|
||||||
net.netfilter.nf_conntrack_tcp_loose = 0
|
net.netfilter.nf_conntrack_tcp_loose = 0
|
||||||
net.netfilter.nf_conntrack_tcp_timeout_established = 14400
|
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
|
kernel.yama.ptrace_scope = 2
|
||||||
|
|
||||||
vm.max_map_count = 1048576
|
vm.max_map_count = 1048576
|
||||||
|
Loading…
Reference in New Issue
Block a user