mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Change some default MPTCP parameters, reload network if VPN seems to be down
This commit is contained in:
parent
49481ceaa9
commit
650638da69
3 changed files with 12 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# local sysctl settings can be stored in this directory
|
||||
# max open files
|
||||
fs.file-max = 51200
|
||||
fs.file-max = 512000
|
||||
# max read buffer
|
||||
net.core.rmem_max = 134217728
|
||||
# max write buffer
|
||||
|
@ -37,10 +37,14 @@ net.ipv4.tcp_rmem = 4096 87380 134217728
|
|||
# TCP write buffer
|
||||
net.ipv4.tcp_wmem = 4096 65536 134217728
|
||||
# turn on path MTU discovery
|
||||
net.ipv4.tcp_mtu_probing = 0
|
||||
net.ipv4.tcp_mtu_probing = 1
|
||||
|
||||
# for low-latency network, use cubic instead
|
||||
net.ipv4.tcp_congestion_control = olia
|
||||
|
||||
# Default conntrack is too small
|
||||
net.netfilter.nf_conntrack_max=131072
|
||||
net.netfilter.nf_conntrack_max = 131072
|
||||
|
||||
# MPTCP settings
|
||||
net.mptcp.mptcp_checksum = 0
|
||||
net.mptcp.mptcp_syn_retries = 30
|
Loading…
Add table
Add a link
Reference in a new issue