Advertisement
rockdrilla

linux sysctl

Nov 12th, 2015
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. net.ipv4.tcp_allowed_congestion_control = yeah htcp reno bic cdg cubic dctcp westwood highspeed hybla vegas veno scalable lp illinois
  2. net.ipv4.tcp_congestion_control = yeah
  3.  
  4. net.ipv4.tcp_autocorking = 1
  5. net.ipv4.tcp_low_latency = 1
  6. net.ipv4.tcp_rfc1337 = 0
  7. net.ipv4.tcp_slow_start_after_idle = 1
  8.  
  9. net.ipv4.tcp_dsack = 1
  10. net.ipv4.tcp_fack = 1
  11. net.ipv4.tcp_sack = 1
  12.  
  13. net.ipv4.tcp_timestamps = 1
  14. net.ipv4.tcp_syncookies = 1
  15. net.ipv4.tcp_window_scaling = 1
  16. net.ipv4.tcp_workaround_signed_windows = 1
  17.  
  18. net.ipv4.tcp_fastopen = 1
  19. net.ipv4.tcp_fastopen_key = 00000000-00000000-00000000-00000000
  20.  
  21. net.ipv4.tcp_ecn = 1
  22. net.ipv4.tcp_ecn_fallback = 1
  23.  
  24. net.ipv4.tcp_frto = 0
  25.  
  26. net.ipv4.tcp_tw_recycle = 1
  27. net.ipv4.tcp_tw_reuse = 1
  28.  
  29. net.ipv4.tcp_fwmark_accept = 1
  30.  
  31. net.core.default_qdisc = fq_codel
  32.  
  33. net.core.bpf_jit_enable = 1
  34.  
  35. net.core.rmem_default = 2129920
  36. net.core.rmem_max = 4259840
  37.  
  38. net.core.wmem_default = 2129920
  39. net.core.wmem_max = 4259840
  40.  
  41. net.ipv4.tcp_rmem = 8192 262144 8388608
  42. net.ipv4.tcp_wmem = 8192 262144 8388608
  43.  
  44. net.ipv4.udp_rmem_min = 8192
  45. net.ipv4.udp_wmem_min = 8192
  46.  
  47. net.core.somaxconn = 4096
  48.  
  49. net.ipv4.fwmark_reflect = 1
  50. net.ipv6.fwmark_reflect = 1
  51.  
  52. net.ipv4.ip_dynaddr = 1
  53. net.ipv4.ip_forward = 1
  54. net.ipv4.ip_forward_use_pmtu = 0
  55.  
  56. net.ipv4.ip_local_port_range = 1024 65531
  57. net.ipv4.ip_local_reserved_ports = 1194
  58.  
  59. # net.netfilter.nf_conntrack_tcp_timeout_established = 432000
  60. # 1 d + 5 m
  61. net.netfilter.nf_conntrack_tcp_timeout_established = 86700
  62.  
  63. # net.ipv4.tcp_keepalive_time = 7200
  64. # 2 h + 5 m
  65. net.ipv4.tcp_keepalive_time = 7500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement