What Does "Flush All Blocks" Do?
ConfigServer Security & Firewall (CSF) maintains a block list of IP addresses that have been banned — either manually by you or automatically by features like LFD (Login Failure Daemon) and country blocking. The Flush All Blocks action removes all temporarily blocked IPs from the firewall rules, effectively unblocking every currently banned IP address. This is useful when an overzealous block rule has locked out legitimate traffic, or when you want to start with a clean slate.
Steps to Flush All Blocks
- Log in to WHM as the root user.
- Navigate to Home » Plugins » ConfigServer Security & Firewall.
- Find the csf – ConfigServer Firewall section on the main page.
- Locate the Flush All Blocks button.
- Click Flush All Blocks.
- CSF will remove all temporary blocks and reload the firewall rules.
Important Notes
- Flush All Blocks removes temporary blocks that were added by LFD (Login Failure Daemon) from csf.deny. Manually added permanent deny entries are not affected.deny). It does not remove IPs that you have permanently added to the deny list via the Quick Deny or Firewall Deny IPs options.
- If LFD (Login Failure Daemon) is running, blocked IPs may be re-added quickly if the source of the failed login attempts is still active. Consider temporarily disabling LFD or adding the IP to the allow list if needed.
- This action takes effect immediately.
- Use this option with caution — you are unblocking all currently banned IPs, including potentially malicious ones.
When to Use Flush All Blocks
- A mass block event occurred (e.g., a misconfigured script triggered LFD to ban many legitimate users).
- You've updated your block rules and want to clear the old temporary entries.
- You're troubleshooting connectivity issues and need to rule out firewall blocks.
Troubleshooting
- IPs get re-blocked immediately: LFD is likely still detecting the offending activity. Check
/var/log/lfd.logfor details, and add the legitimate IP tocsf.allowif needed. - Can't find CSF in WHM: ConfigServer Security & Firewall is a third-party plugin. If not installed, see the ConfigServer documentation for installation instructions.
- CSF page shows errors: Ensure iptables modules are loaded and CSF testing mode is disabled in
/etc/csf/csf.conf.
For more information, see the ConfigServer Firewall documentation.