Today I was trolled^Wasked to implement resetting TCP connection if internet is disconnected, like Windows® does by resetting all related TCP connection when interface goes down. So, question is: is it possible to make linux' TCP stack to behave like Windows does and reset connections if I, for example, unplug ethernet cable?
The
tcpkill
command looks promising -- I suppose you could hook it in the interface-down event scripts...Cribbed from here