View Single Post

   
  #3 (permalink)  
Old 01-04-2008, 08:56 PM
Jurjen Oskam
 
Posts: n/a
Default Re: How to kill a tcp connection

In article <3f4d9ee1$0$28824$5402220f@news.sunrise.ch>, Joom wrote:

[Connections in CLOSE_WAIT]
> Do you means that I doesn't have the possibilities to kill this connections?


Of course you have. One is to reboot the machine.

But the first thing is to determine if you have a problem at all. Why do you
think these CLOSE_WAIT connections are bad? Did they start to appear suddenly?
Has it always been like this? Is something not working which was working
before?

You say these connections are from snmpd. Check its logfile to see if
something is wrong.

> On the other hand, if one time I'll see a connection ESTABLISHED from a
> "foreigner" I couldn't remove it?


What do you mean by "foreigner"? If you have an unwanted TCP connection,
you should prevent that connection from succeeding in the first place
(for example, with a firewall) and not try to remove it when it's
already established.

An ESTABLISHED connection can normally only be closed by the application(s)
involved.

--
Jurjen Oskam

PGP Key available at http://www.stupendous.org/
Reply With Quote