mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix tcp keepalive change
This commit is contained in:
parent
f79f9204d0
commit
a0c21d570e
5 changed files with 13 additions and 5 deletions
|
@ -317,6 +317,11 @@ stop_service() {
|
|||
rm -rf "$ss_confdir"
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
_rules_status() {
|
||||
[ -n "$(iptables -t nat -L | grep ss_rules_forward)" ] && return 1
|
||||
return 0
|
||||
|
|
|
@ -23,7 +23,7 @@ net.ipv4.tcp_tw_recycle = 0
|
|||
# short FIN timeout
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
# short keepalive time
|
||||
net.ipv4.tcp_keepalive_time = 2400
|
||||
#net.ipv4.tcp_keepalive_time = 2400
|
||||
# outbound port range
|
||||
net.ipv4.ip_local_port_range = 10000 65000
|
||||
# max SYN backlog
|
||||
|
@ -37,7 +37,7 @@ 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 = balia
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue