Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running APF on my centos (with cpanel) server and I am having trouble unblocking an ip. I have added the ip to allow_hosts.rules made sure it doesnt apear in deny_hosts and restarted APF however as soon as it is restarted the ip remains blocked if i stop apf or flush ip tables, the ip is not blocked. When firewall is running i cnt even ping the ip from my server.

Any advice would be appreciated

share|improve this question
add comment

1 Answer

when you block an IP it gets added to the deny_hosts.rules file. This is a simple text file, edit it and remove the IP. restart APF and you're done.

Alternatively, try apf --remove <host> which does the same thing (but doesn't require restarting APF).

If the IP is not in either of the APF rules files, then its probable something else is adding it to the iptables rules. APF is a wrapper to iptables, it just provides a means of adding new rules in a more user-friendly fashion. It does not 'take control' of the firewall.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.