1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
This commit is contained in:
suyuan 2024-03-13 13:55:53 +08:00 committed by GitHub
commit 469a91ac0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -172,7 +172,7 @@ _check_master() {
commit openmptcprouter commit openmptcprouter
EOF EOF
/etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null /etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null
/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null #/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null
/etc/init.d/v2ray restart >/dev/null 2>/dev/null /etc/init.d/v2ray restart >/dev/null 2>/dev/null
/etc/init.d/xray restart >/dev/null 2>/dev/null /etc/init.d/xray restart >/dev/null 2>/dev/null
/etc/init.d/glorytun restart >/dev/null 2>/dev/null /etc/init.d/glorytun restart >/dev/null 2>/dev/null
@ -323,7 +323,7 @@ _check_backup() {
commit openmptcprouter commit openmptcprouter
EOF EOF
/etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null /etc/init.d/openmptcprouter-vps get_openvpn_key $name >/dev/null 2>/dev/null
/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null #/etc/init.d/openmptcprouter-vps restart >/dev/null 2>/dev/null
/etc/init.d/v2ray restart >/dev/null 2>/dev/null /etc/init.d/v2ray restart >/dev/null 2>/dev/null
/etc/init.d/xray restart >/dev/null 2>/dev/null /etc/init.d/xray restart >/dev/null 2>/dev/null
/etc/init.d/glorytun restart >/dev/null 2>/dev/null /etc/init.d/glorytun restart >/dev/null 2>/dev/null

View file

@ -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
@ -60,4 +60,4 @@ net.ipv4.tcp_ecn = 2
#net.ipv4.tcp_dsack = 0 #net.ipv4.tcp_dsack = 0
#net.ipv4.tcp_fack = 0 #net.ipv4.tcp_fack = 0
net.ipv4.tcp_slow_start_after_idle = 0 net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.route.gc_timeout = 150 net.ipv4.route.gc_timeout = 150