PDA

View Full Version : problem with apf to block an IP


heropage
2008-05-29, 11:01 AM CDT
I have blocked this IP 125.115.144.28

/etc/apf/apf -d 125.115.144.28
But

netstat -anp|grep tcp|awk '{print $5}'| cut -d : -f1 | sort | uniq -c | sort -n
It still showing

202 125.115.144.28
Why?
Is it supposed to blocked right away, or need some time to get blocked.

When I checked /etc/apf/deny_hosts.rules
The IP is in the file.

heropage
2008-05-30, 08:52 AM CDT
also when I use
apf -d 117.81.0.0/16
to block Ip range

But
117.81.124.101
still exist.

Is it supposed to block all
117.81.xxx.xxx

JohnVV
2008-05-30, 10:46 AM CDT
it has been a while but i was using httpd.conf it block ip addresses

<Directory "/var/www/( my site)">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 125.115.144.28
</Directory>

heropage
2008-06-02, 08:09 AM CDT
it has been a while but i was using httpd.conf it block ip addresses

<Directory "/var/www/( my site)">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Deny from 125.115.144.28
</Directory>

I am not using apache.
Will apf really work?