1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Latest changes to VPS script

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-02-10 07:46:29 +00:00
parent 65209b07c3
commit c42d055602
7 changed files with 54 additions and 22 deletions

View file

@ -2,9 +2,10 @@
# max open files
fs.file-max = 512000
# max read buffer
net.core.rmem_max = 134217728
net.core.rmem_max = 524287
# max write buffer
net.core.wmem_max = 134217728
net.core.wmem_max = 524287
net.core.optmem_max = 524287
# default read buffer
net.core.rmem_default = 32768
# default write buffer
@ -21,9 +22,9 @@ net.ipv4.tcp_tw_reuse = 1
# turn off fast timewait sockets recycling
net.ipv4.tcp_tw_recycle = 0
# short FIN timeout
net.ipv4.tcp_fin_timeout = 20
net.ipv4.tcp_fin_timeout = 40
# short keepalive time
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_keepalive_time = 7200
# outbound port range
net.ipv4.ip_local_port_range = 10000 65000
# max SYN backlog
@ -33,13 +34,13 @@ net.ipv4.tcp_max_tw_buckets = 10000
# turn on TCP Fast Open on both client and server side
net.ipv4.tcp_fastopen = 3
# TCP buffer
net.ipv4.tcp_mem = 134217728 134277728 134217728
net.ipv4.tcp_mem = 768174 10242330 15363480
# UDP buffer
net.ipv4.udp_mem = 134217728 134277728 134217728
net.ipv4.udp_mem = 768174 10242330 15363480
# TCP receive buffer
net.ipv4.tcp_rmem = 4096 87380 134217728
net.ipv4.tcp_rmem = 4096 524288 204217728
# TCP write buffer
net.ipv4.tcp_wmem = 4096 87380 134217728
net.ipv4.tcp_wmem = 4096 524288 204217728
# turn on path MTU discovery
net.ipv4.tcp_mtu_probing = 0
@ -51,4 +52,4 @@ net.netfilter.nf_conntrack_max = 131072
# MPTCP settings
net.mptcp.mptcp_checksum = 0
net.mptcp.mptcp_syn_retries = 20
net.mptcp.mptcp_syn_retries = 5