-
-
Save kirbyzhu/82a9bd2a445a0af3af4cf7ccf52a9e5e to your computer and use it in GitHub Desktop.
Optimized sysctl.conf for shadowsocks
This file contains hidden or 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
net.core.wmem_max = 12582912 | |
net.core.rmem_max = 12582912 | |
net.ipv4.tcp_rmem = 10240 87380 12582912 | |
net.ipv4.tcp_wmem = 10240 87380 12582912 | |
net.ipv4.ip_local_port_range = 18000 65535 | |
net.ipv4.netfilter.ip_conntrack_tcp_timeout_time_wait = 1 | |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_max_syn_backlog = 3240000 | |
net.core.somaxconn = 3240000 | |
net.ipv4.tcp_max_tw_buckets = 1440000 | |
net.ipv4.tcp_congestion_control = cubic | |
net.ipv4.tcp_tw_reuse = 1 | |
net.ipv4.tcp_fin_timeout = 15 | |
net.ipv4.tcp_syn_retries = 2 | |
net.ipv4.tcp_synack_retries = 2 | |
net.ipv4.tcp_tw_recycle = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment