HostOnNet Blog

APF Firewall, Removing IP from deny rules

Looking for Linux Server Admin or WordPress Expert? We can help.

Today a client told he can’t access his web site from his home, but working fine from all other locations.

It could be firewall blocking access from his IP address. Server use APF Firewall, which is a popular iptables based firewall for Linux servers.

Clients IP was

So i checked the iptables rules with iptables -L

#iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all — anywhere
DROP all — anywhere
DROP all — anywhere
DROP all — anywhere

Found clients IP blocked by iptables.

So i checked APF deny list

cat /etc/apf/deny_hosts.rules

Found the IP in deny_hosts.rules, so removed it and restarted apf firewall.

/etc/apf/apf -r

Now the block is removed and client is able to access the server. He got blocked by BFD running on the server for exceeding false login trail.

Posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.