Skip to content

Instantly share code, notes, and snippets.

@pfactum
Created October 26, 2018 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfactum/bdad2594b151578f460857cacd94c689 to your computer and use it in GitHub Desktop.
Save pfactum/bdad2594b151578f460857cacd94c689 to your computer and use it in GitHub Desktop.
/etc/sysctl.d » cat *
net.ipv4.ip_nonlocal_bind = 1
net.ipv6.ip_nonlocal_bind = 1
net.ipv4.ip_local_port_range = 1026 59999
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.ipv6.route.max_size = 16384
net.ipv4.ip_dynaddr = 1
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_low_latency = 1
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_keepalive_intvl = 60
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_retries2 = 5
net.core.bpf_jit_enable = 1
net.ipv4.tcp_ecn = 1
kernel.nmi_watchdog = 0
vm.min_free_kbytes = 131072
vm.swappiness = 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment