ConfigServer Security & Firewall (CSF) is an advanced firewall, login/intrusion detection and security application for Linux servers. One of its many benefits is the ability to easily manage allowed ("whitelisted") and denied ("blacklisted") IP addresses.
If you find that you suddenly cannot access anything on your server from a specific IP address, it is most commonly due to the IP address having been blocked in the server firewall.
Here we cover the steps to unblock an IP address when using the CSF firewall application on your VPS or dedicated Server, either in Root WHM or via command line.
Related Articles
Whitelist IP in Server Firewall
Install CSF
How to SSH into VPS or Dedicated Servers
Unblock IP in WHM
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
NOTE: These steps will need to be performed from an IP address that is not currently blocked on the server. Please contact our Support team if you do not have another means of accessing the server.
- Log into Root WHM
- Navigate to Plugins -> ConfigServer Security & Firewall
- Navigate to the csf tab
- Enter the IP address in the Search iptables for IP address text field and click the Search for IP button
- If the IP is found in your firewall configuration, the applicable Deny and/or Allow rules will be displayed
- If the IP is blocked, click the Remove <IP> block button to remove it
Unblock IP via Command Line
- Access the server via SSH as the root user or using the Terminal in Root WHM
- Run the following command to search iptables for the IP address
csf -g IP_ADDRESS
REPLACE: IP_ADDRESS with the IP address that is unable to access the server. - If this search returns deny rules for the IP, run the following to remove the block
csf -dr IP_ADDRESS
REPLACE: IP_ADDRESS with the IP address that is unable to access the server. - Run the following command to restart CSF
csf -r
Comments
0 comments
Article is closed for comments.