Posted on November 26th, 2006 by Admin.
Categories: Server Security, Linux.
Unblocking IPs with APF Firewall through below steps :1) pico /etc/apf/deny_hosts.rules
Find where the IP is listed and remove the line that has the IP.
After this is done save the file and reload apf to make the new changes active.
/etc/apf/apf -r
2) If the IP isn’t already listed in deny_hosts.rules and you wish to allow it, then,
/etc/apf/apf -a IP Reason
–> The -a flag means ALLOW the IP address
–> IP is the IP address you wish to allow
–> Reason is comments to why the IP is being unblocked
Example:
./apf -a 267.14.188.1 Reason
pico /etc/apf/allow_hosts.rules
# added 267.14.188.1 on 09/15/06 03:12:50
# UNBLOCKING
267.14.188.1
0 comments.
Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.