본문 바로가기

통신 관련 지식/네트워크(Network)

[네트워크] TCP TIME_WAIT 설정

* TCP TIME_WAIT 설정

 

 

- 리눅스(Linux)
# /etc/rc.local 또는 /etc/sysctl.conf 에 다음 추가
net.ipv4.ip_local_port_range = 16384 65535
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
# sysctl -p

 

 

- 솔라리스(Solaris)
# ndd -set /dev/tcp tcp_time_wait_interval 30000
# export EVENT_NOEVPORT=1

[참고] 30000 값의 단위는 밀리초이다.

 

 

- 윈도우(Window)
C:\>edit tcptimewait.reg
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e
C:\>regedit /S tcptimewait.reg