mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Change sysctl settings
This commit is contained in:
parent
0de6d0aaa2
commit
ec22b7e248
1 changed files with 4 additions and 4 deletions
|
@ -22,9 +22,9 @@ net.ipv4.tcp_tw_reuse = 1
|
||||||
# turn off fast timewait sockets recycling
|
# turn off fast timewait sockets recycling
|
||||||
#net.ipv4.tcp_tw_recycle = 0
|
#net.ipv4.tcp_tw_recycle = 0
|
||||||
# short FIN timeout
|
# short FIN timeout
|
||||||
#net.ipv4.tcp_fin_timeout = 60
|
#net.ipv4.tcp_fin_timeout = 40
|
||||||
# increase max orphans
|
# increase max orphans
|
||||||
net.ipv4.tcp_max_orphans = 16384
|
net.ipv4.tcp_max_orphans = 32768
|
||||||
# short keepalive time
|
# short keepalive time
|
||||||
#net.ipv4.tcp_keepalive_time = 2400
|
#net.ipv4.tcp_keepalive_time = 2400
|
||||||
# outbound port range
|
# outbound port range
|
||||||
|
@ -32,7 +32,7 @@ net.ipv4.ip_local_port_range = 9999 65000
|
||||||
# max SYN backlog
|
# max SYN backlog
|
||||||
net.ipv4.tcp_max_syn_backlog = 10240
|
net.ipv4.tcp_max_syn_backlog = 10240
|
||||||
# max timewait sockets held by system simultaneously
|
# max timewait sockets held by system simultaneously
|
||||||
net.ipv4.tcp_max_tw_buckets = 10000
|
net.ipv4.tcp_max_tw_buckets = 6000
|
||||||
# turn on TCP Fast Open on both client and server side
|
# turn on TCP Fast Open on both client and server side
|
||||||
#net.ipv4.tcp_fastopen = 3
|
#net.ipv4.tcp_fastopen = 3
|
||||||
# TCP receive buffer
|
# TCP receive buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue