Created
January 2, 2014 07:59
-
-
Save v3aqb/8216200 to your computer and use it in GitHub Desktop.
Optimized sysctl.conf for shadowsocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs.file-max = 202991 | |
net.core.rmem_max = 12582912 | |
net.core.somaxconn = 3240000 | |
net.core.wmem_max = 12582912 | |
net.ipv4.ip_local_port_range = 18000 65535 | |
net.ipv4.tcp_rmem = 10240 87380 12582912 | |
net.ipv4.tcp_wmem = 10240 87380 12582912 | |
net.ipv4.tcp_max_syn_backlog = 3240000 | |
net.ipv4.tcp_max_tw_buckets = 1440000 | |
net.ipv4.tcp_fin_timeout = 10 | |
net.ipv4.tcp_synack_retries = 2 | |
net.ipv4.tcp_syn_retries = 2 | |
net.ipv4.tcp_tw_recycle = 1 | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment