Updated Optimizing Shadowsocks (markdown)
parent
bf3cd65845
commit
d28f43ee65
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,7 @@ net.core.somaxconn = 3240000
|
|||
|
||||
net.ipv4.tcp_syncookies = 1
|
||||
net.ipv4.tcp_tw_reuse = 1
|
||||
net.ipv4.tcp_tw_recycle = 0
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_keepalive_time = 1200
|
||||
net.ipv4.ip_local_port_range = 10000 65000
|
||||
|
@ -26,4 +27,6 @@ net.ipv4.tcp_congestion_control = hybla
|
|||
|
||||
Then:
|
||||
|
||||
sysctl -p
|
||||
sysctl -p
|
||||
|
||||
Warning: **DO NOT ENABLE `net.ipv4.tcp_tw_recycle`!!!** See [this article](http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue