Saturday, June 28, 2008

To block a particular IP range

To block a particular IP range
=======================

apf -d 210.0.0.0/8
apf -d 210.213.0.0/16
apf -d 210.213.100.0/24
= service apf restart

OR

echo "" > /etc/apf/deny_hosts.rules; service apf restart

No comments: