Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2016
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. #networking
  2.  
  3. net.ipv4.conf.all.arp_notify = 1
  4. net.ipv6.conf.all.autoconf = 0
  5. net.ipv6.conf.default.autoconf = 0
  6. net.ipv6.conf.eth0.autoconf = 0
  7. net.ipv6.conf.all.accept_ra = 0
  8. net.ipv6.conf.default.accept_ra = 0
  9. net.ipv6.conf.eth0.accept_ra = 0
  10. net.ipv6.conf.all.disable_ipv6=1
  11. net.ipv6.conf.default.disable_ipv6=1
  12. net.ipv6.conf.lo.disable_ipv6=1
  13.  
  14. net.ipv4.ip_local_port_range = 40000 65000
  15.  
  16. #connection limits
  17.  
  18. net.core.somaxconn = 64000
  19.  
  20. net.core.netdev_max_backlog = 524288
  21. net.netfilter.nf_conntrack_max = 1048576
  22.  
  23. net.ipv4.tcp_max_syn_backlog = 48960
  24. net.ipv4.tcp_max_tw_buckets = 1440000
  25. net.ipv4.tcp_max_orphans = 456000
  26.  
  27.  
  28. #conntrack values (excluding conn limits)
  29.  
  30. net.netfilter.nf_conntrack_tcp_timeout_established = 30
  31. net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 10
  32. net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 10
  33. net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 10
  34. net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 4
  35. net.netfilter.nf_conntrack_tcp_timeout_close_wait = 4
  36. net.netfilter.nf_conntrack_tcp_timeout_last_ack = 10
  37. net.netfilter.nf_conntrack_tcp_timeout_time_wait = 10
  38. net.netfilter.nf_conntrack_tcp_timeout_max_retrans = 15
  39. net.netfilter.nf_conntrack_tcp_timeout_unacknowledged = 10
  40. net.netfilter.nf_conntrack_tcp_timeout_close = 10
  41.  
  42. net.netfilter.nf_conntrack_udp_timeout = 15
  43. net.netfilter.nf_conntrack_udp_timeout_stream = 15
  44.  
  45. net.netfilter.nf_conntrack_tcp_loose = 0
  46. #may change above to 1 which would cause it to track less stuff
  47. net.netfilter.nf_conntrack_tcp_max_retrans = 3
  48.  
  49.  
  50.  
  51. #buffers
  52.  
  53.  
  54. net.core.rmem_default = 31457280
  55. net.core.rmem_max = 12582912
  56. net.core.wmem_default = 31457280
  57. net.core.wmem_max = 12582912
  58.  
  59. net.core.optmem_max = 25165824
  60.  
  61. net.ipv4.tcp_mem = 131072 1048576 1441792
  62. net.ipv4.tcp_rmem = 8192 87380 16777216
  63. net.ipv4.tcp_wmem = 8192 65536 16777216
  64.  
  65. net.ipv4.udp_mem = 65536 131072 262144
  66. net.ipv4.udp_rmem_min = 16384
  67. net.ipv4.udp_wmem_min = 16384
  68.  
  69.  
  70. #timeouts
  71. net.ipv4.tcp_fin_timeout = 10
  72. net.ipv4.tcp_keepalive_time = 300
  73. net.ipv4.tcp_keepalive_probes = 5
  74. net.ipv4.tcp_keepalive_intvl = 10
  75. net.ipv4.tcp_synack_retries = 2
  76.  
  77.  
  78.  
  79. #settings
  80.  
  81. net.ipv4.tcp_rfc1337 = 1
  82. net.ipv4.tcp_tw_recycle = 1
  83. net.ipv4.tcp_tw_reuse = 1
  84. net.ipv4.tcp_slow_start_after_idle = 0
  85. net.ipv4.conf.all.log_martians = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement