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