Hi all,
This may sound like a stupid question, but is there a utility by which I can kill an open tcp remote client socket connection , without killing the server process ?
Eg, A remote client connects to a server. The server has no interface to disconnect the client. I do a netstat and get the IP address and socket of the client.
Now I want to disconnect the client, so I want to issue something like $ killsocket <remoteip> <remotesocket>.
Is there anyway by which I can do this ?
Thanks Shahed.
On Thu, 3 Mar 2005 14:56:24 -0000, Shahed Moolji shahed@enoor.com wrote:
Hi all, This may sound like a stupid question, but is there a utility by which I can kill an open tcp remote client socket connection , without killing the server process ? Eg, A remote client connects to a server. The server has no interface to disconnect the client. I do a netstat and get the IP address and socket of the client. Now I want to disconnect the client, so I want to issue something like $ killsocket <remoteip> <remotesocket>. Is there anyway by which I can do this ?
checkout iptables, & maybe set rules to stop/start access to that ip/socket/port. Svaksh