On Linux systems, the
tcp_fin_wait timeout is stored in
/proc/sys/net/ipv4/tcp_fin_timeout.
You can change the value of this parameter using the
sysctl command.
To get the value, issue the following command:
/sbin/sysctl net.ipv4.tcp_fin_timeout
To set the value, issue the following command:
/sbin/sysctl -w net.ipv4.tcp_fin_timeout=30
Note
Root permissions are typically required to set this value.

