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.
/sbin/sysctl net.ipv4.tcp_fin_timeoutTo set the value, issue the following command:
/sbin/sysctl -w net.ipv4.tcp_fin_timeout=30