1)
Check current value of TCP TIME_WAIT
$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120
2)
Update the value of TCP TIME_WAIT
$sudo vim /etc/sysctl.conf
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60
3)
Save the changes
$sudo sysctl -p
4)
Check again
$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60
Check current value of TCP TIME_WAIT
$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 120
2)
Update the value of TCP TIME_WAIT
$sudo vim /etc/sysctl.conf
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60
3)
Save the changes
$sudo sysctl -p
4)
Check again
$sudo sysctl -a | grep conntrack
$sudo sysctl -a | grep conntrack | grep time_wait
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60
No comments:
Post a Comment