🔥 What is ConfigServer Security & Firewall (CSF)?
ConfigServer Security & Firewall (CSF) is a widely used firewall solution for servers with control panels like cPanel/WHM, DirectAdmin, Webmin, and Webuzo. If your IP address is blacklisted, you may face issues accessing your website, emails, or control panel.
🛑 1. Check if Your IP is Blacklisted
🔹 Try a Different Network: Use a mobile network or a different Wi-Fi to check if your website or control panel loads. 🔹 Interpret Results: If your site loads from another network but not your usual one, your IP may be blacklisted by CSF.
🌐 2. Find Your Public IP Address
🔍 Check Your IP: Visit WhatIsMyIP.com or IPChicken.com. ✍️ Note It Down: This IP address is required to unblock yourself.
🖥️ 3. Access the Server via SSH or Another IP
🔑 SSH Access: If possible, login using an alternative IP that is not blocked. 🛡️ VPN/Proxy: If SSH is inaccessible, use a VPN to change your IP and access your server.
🔓 4. Unblock Your IP in CSF
🌟 Unblocking via Control Panels
cPanel/WHM
1️⃣ Log in to WHM as an administrator. 2️⃣ Navigate to Plugins > ConfigServer Security & Firewall. 3️⃣ Find the Quick Unblock section, enter your blacklisted IP, and click Unblock.
DirectAdmin
1️⃣ Log in to DirectAdmin as Admin. 2️⃣ Navigate to Extra Features > ConfigServer Firewall & Security. 3️⃣ Use the Search IP feature to find the blacklisted IP and remove it.
Plesk
1️⃣ Log in to Plesk. 2️⃣ Navigate to Extensions > ConfigServer Security & Firewall. 3️⃣ Use the Unblock IP feature to remove your IP from the deny list.
Webuzo
1️⃣ Log in to Webuzo Admin Panel. 2️⃣ Navigate to Security > CSF Firewall. 3️⃣ Enter your blacklisted IP and click Unblock.
🖥️ Unblocking via SSH (Command Line)
1️⃣ Access your server’s terminal. 2️⃣ Run the following command, replacing your_ip_address
with your actual IP:
csf -dr your_ip_address
📝 Manually Remove IP from Deny List
1️⃣ Open the CSF deny file:
nano /etc/csf/csf.deny
2️⃣ Find and delete the line containing your IP. 3️⃣ Save and exit, then restart CSF:
csf -r
✅ 5. Whitelist Your IP (Prevent Future Blocks)
1️⃣ Open the CSF allow file:
nano /etc/csf/csf.allow
2️⃣ Add your IP address to a new line. 3️⃣ Save the changes and restart CSF:
csf -r
🔄 6. Adjust CSF Settings (If Frequent Blocks Occur)
📌 Modify CSF Config: If your IP is repeatedly blocked, adjust the sensitivity of CSF by editing:
nano /etc/csf/csf.conf
🚀 Apply Changes:
csf -r
💡 7. Seek Further Assistance
🤝 Contact Hosting Support: If issues persist, reach out to your web hosting provider. 📚 Consult CSF Documentation: Visit CSF Documentation for in-depth guidance.
✅ By following these steps, you can identify and unblock your IP in CSF, ensuring uninterrupted access to your services. Regular monitoring of CSF settings can prevent future blocks and improve security! 🚀