1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2018-06-18 17:27:41 +00:00
parent 49481ceaa9
commit 650638da69
3 changed files with 12 additions and 6 deletions

View file

@ -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