Results 1 to 3 of 3
Thread: APF, problem
-
09-15-2006, 05:58 PM #1Junior Guru Wannabe
- Join Date
- Nov 2005
- Posts
- 46
APF, problem
Ok, I have a problem APF is messing up that bans.. This is what is does.
Banned the following ip addresses on Fri Sep 15 16:50:01 CDT 2006
142 with 142 connections
I'm running Apache 2.0.59, Mysql 5, Php 5.1.9
-
09-15-2006, 08:02 PM #2Disabled
- Join Date
- Oct 2005
- Posts
- 515
You need to modify the netstat command. I'm leaving the office right now and don't have time to dig it up but here's mine for Apache 1:
netstat -na | grep "xx.xxx" | awk '{print $5}' | cut -d. -f1-4 | cut -d: -f1 | sort -n | uniq -c | sort -n | tail -5
replacing xx.xxx with the first 2 octets of your ip. Modify the cuts a little bit for apache 2 and you should get what you need.
-
09-15-2006, 09:00 PM #3Junior Guru Wannabe
- Join Date
- Nov 2005
- Posts
- 46
Sorry I don't understand your command.. Can you tell me exactly what to do?