How to Delete All IP Deny From APF (deny_host.rules)

APF () Is a system firewall for LinuxBased on (Netfilter).
When APFBlocked access to the server multiple IPs, there are two options that you can remove these limitations. The first option would be controlled directly from the console (or ssh) Which in turn can remove IPs blocked. You can do this by running:

APF-u 117.41.182.209

Where "117.41.182.209"Is the IP that was blocked by APF. Resulted from the command message will be:

APF (7931): {trust} 117.41.182.209 removed from trust system

Where is a number of blocked IPsThe method above we would take some time before we remove it all. To delete all IPs will need to clean the file that is stored IPs blocked. Ie file deny_hosts.rules from / Etc / APF .
To do this, delete the file and restart service deny_host.rules APF. Commands below:

rm-rf / etc / APF / deny_host.rules

/ Etc / init.d / restart APF

Restart Linux APF Firewall

It has been erased IPs blocked by APF and restart service. If you want to recover IPs blocked by APF, open the file deny_hosts.rules.back.

Advanced Policy Firewall Commands

usage / usr / local / sbin / APF [OPTION]
-S |-start ......................... load all firewall rules
-R |-restart ....................... stop (flush) & reload firewall rules
-F |-stop ........ .................. Stop (flush) all firewall rules
-L |-list .......................... list all firewall rules
-T |-status output ........................ firewall log status
-S |-refresh ....................... refresh & resolve dns names in trust rules
The HOST CMT |-allow HOST COMMENT ... add host (IP / FQDN) to allow_hosts.rules and
Immediately load new rule into firewall
-D HOST CMT |-deny HOST COMMENT .... add host (IP / FQDN) to deny_hosts.rules and
Immediately load new rule into firewall
-U |-remove HOST ................... remove hosts from [world] * _hosts.rules
Immediately remove from firewall rule and
A |-ovars ......................... Output all configuration options

STEALTH SETTINGSALL CLEAR LIST OF BLOCKED IPs ADVANCED FIREWALL POLICY.

How to Delete All IP Deny From APF (deny_host.rules)

About the author

Stealth LP

Founder and editor Stealth SettingsIn 2006 date.
Experience on Linux operating systems (especially CentOS), Mac OS X, Windows XP> Windows 10 and WordPress (CMS).

Leave a Comment

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