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
|
@ -188,8 +188,10 @@ function wizard_add()
|
|||
end
|
||||
|
||||
luci.sys.call("(env -i /bin/ubus call network reload) >/dev/null 2>/dev/null")
|
||||
luci.sys.call("/etc/init.d/glorytun restart >/dev/null 2>/dev/null")
|
||||
luci.sys.call("/etc/init.d/mlvpn restart >/dev/null 2>/dev/null")
|
||||
--luci.sys.call("/etc/init.d/shadowsocks restart >/dev/null 2>/dev/null")
|
||||
--luci.sys.call("/etc/init.d/glorytun restart >/dev/null 2>/dev/null")
|
||||
--luci.sys.call("/etc/init.d/glorytun-udp restart >/dev/null 2>/dev/null")
|
||||
--luci.sys.call("/etc/init.d/mlvpn restart >/dev/null 2>/dev/null")
|
||||
if gostatus == true then
|
||||
luci.http.redirect(luci.dispatcher.build_url("admin/system/openmptcprouter/status"))
|
||||
else
|
||||
|
|
|
@ -27,6 +27,7 @@ start_service() {
|
|||
}
|
||||
# remove sysctl already defined in /etc/sysctl.d/
|
||||
sed -i -e '/tcp_fin_timeout/d' -e '/tcp_keepalive_time/d' -e '/nf_conntrack_max/d' /etc/sysctl.conf
|
||||
sed -i -e '/tcp_fin_timeout/d' -e '/tcp_keepalive_time/d' -e '/nf_conntrack_max/d' /etc/sysctl.d/10-default.conf
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
net.ipv4.tcp_keepalive_time=1200
|
||||
net.ipv4.tcp_keepalive_time=2400
|
||||
net.ipv6.conf.all.disable_ipv6=0
|
Loading…
Add table
Add a link
Reference in a new issue