Modify the kernel parameter to adjust the timeout for nf_conntrack.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-26 16:53:26 +09:00
parent b3cdf96640
commit 47c2f7784a
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
net.netfilter.nf_conntrack_tcp_timeout_time_wait=60

View File

@ -2,7 +2,8 @@ STORAGE = '/etc/sysctl.d'
[
"#{STORAGE}/90-vm-swappiness.conf",
"#{STORAGE}/90-vfs-cache-pressure.conf"
"#{STORAGE}/90-vfs-cache-pressure.conf",
"#{STORAGE}/90-conntrack-tcp-timeout-time-wait.conf"
].each do |conf|
remote_file conf do
owner 'root'