CentOS TIME_WAIT too

### CentOS TIME_WAIT too

# Check Connections 
the netstat -n | awk  ' / ^ TCP / ++ {S [$ of NF]} for the END {(S in A) Print A, S [A]} ' 


## Solution 
CAT >> / etc / << the sysctl.conf the EOF 
net.ipv4.tcp_syncookies = . 1 
net.ipv4.tcp_tw_reuse = . 1 
net.ipv4.tcp_tw_recycle = . 1 
net.ipv4.tcp_fin_timeout = 10 
the EOF 

sysctl -p

 

 

 

Guess you like

Origin www.cnblogs.com/blog-lhong/p/11713647.html