diff --git a/local.conf b/sysctl.d/local.conf similarity index 76% rename from local.conf rename to sysctl.d/local.conf index 555f690..000eadd 100644 --- a/local.conf +++ b/sysctl.d/local.conf @@ -4,9 +4,20 @@ net.ipv4.tcp_notsent_lowat = 131072 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_rfc1337 = 1 net.ipv4.tcp_tw_reuse = 1 - net.ipv4.tcp_max_syn_backlog = 4096 +# 31s with initial 1s RTO +net.ipv4.tcp_syn_retries = 4 + +# 15s with initial 1s RTO +net.ipv4.tcp_synack_retries = 3 + +# 102.2s with minimum 0.2s RTO +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.all.send_redirects = 0