About Us  |  Blog  |  Hosting Partners  |  Legal  |  Portal Login

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to kill a stale tcp(LAST_ACK) connection?
wht
post Feb 22 2002, 01:15 PM
Post #1


Fellow
**

Group: Members
Posts: 198
Joined: 14-August 01
Member No.: 44



when I do 'netstat -n -o', I see there are lots of TCP connections with the status 'LAST_ACK'. They all come from the same IP address. I suspect that someone is hacking my server. How do I kill those connections?

Thanks!
Go to the top of the page
 
+Quote Post
Guest_texasweb_*
post Feb 22 2002, 01:35 PM
Post #2





Guests






kill -9 #####
Go to the top of the page
 
+Quote Post
Shortfork
post Feb 22 2002, 01:44 PM
Post #3


SuperGeek
****

Group: Members
Posts: 1,796
Joined: 17-October 01
Member No.: 448



QUOTE
Originally posted by texasweb
kill -9 #####
That'll only work if there's a PID to kill.. which with the type connection he's seeing, I've had them with no PID there anymore..

From what I was told, the connection is not to worry, as it's just waiting for last close signal and it's not going to come.

BLOCK the ip and it will *eventually* go away. Rebooting would remove it but is pretty drastic.

Shortz
Go to the top of the page
 
+Quote Post
wht
post Feb 22 2002, 02:33 PM
Post #4


Fellow
**

Group: Members
Posts: 198
Joined: 14-August 01
Member No.: 44



QUOTE
Originally posted by Shortfork
From what I was told, the connection is not to worry, as it's just waiting for last close signal and it's not going to come.  

Shortz


It is true only when there are a few LAST_ACK tcp connection. But I see hundreds of them coming from the same IP. This could be a serious problem because the server will not have enough resource to service other legitimate connections.



QUOTE
Originally posted by Shortfork
BLOCK the ip and it will *eventually* go away. Rebooting would remove it but is pretty drastic.
Shortz



Is there any other way to do it? I know blocking the ip works, but what if that IP is not really attacking my machine?
Go to the top of the page
 
+Quote Post
Shortfork
post Feb 22 2002, 04:30 PM
Post #5


SuperGeek
****

Group: Members
Posts: 1,796
Joined: 17-October 01
Member No.: 448



Hummn. Not sure if there is any other way.. Track the ip, if it's coming form Europe or the asia pacific block.. nuke it.. or just nuke it for a while.. just add the line to at command line rather than in your script for the rules.. then flush and run your script again and see if it comes back..

Are there any active connections from this ip or just the dead ones?

ShortzShrek
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 9th February 2010 - 10:17 AM
 

Dedicated Servers

Managed Hosting

Colocation

Business Solutions

Why The Planet?

Contact Us