![]() ![]() |
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! |
|
|
|
| Guest_texasweb_* |
Feb 22 2002, 01:35 PM
Post
#2
|
|
Guests |
kill -9 #####
|
|
|
|
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
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..
kill -9 ##### 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 |
|
|
|
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? |
|
|
|
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 |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 9th February 2010 - 10:17 AM |