How to unblock an IP address from WHM & How to Block Traffic by Country

How to unblock an IP address from WHM for VPS and dedicated server.

IP Blocked and Its reasons.

IP address blocks on the web server firewall to prevent hacking, spamming or other attacks on your hosting account and other services.

This will also happen frequently, if you are  trying to log in too many times with invalid credentials (in a short period of time), such as trying to access your FTP, cPanel, Mail using incorrect credentials, the firewall will think that it is an attack on the server and will block you.

Step 1 – If your IP is blocked, get your IP (you can know your IP using http://iptest.in/  URL). Once you got the IP address you can unblock the IP address by using  below steps.

Step 2 – Log into WHM

https://100.10.100.1:2087
https://example.com:2087
https://example.com/whm

Step 3 –  once logged in, Search and click on the ConfigServer Security & Firewall tool.

Step  4 – Find the (Search for IP ) section, Enter the blocked IP address in text box then click on the (Search for IP) button.

Step 5 – If the IP is blocked you can see this screen. Take note of the reason for the IP block.
Once done, Click the green (Unblock button) to unblock the IP.

Due to mail owner using invalid or old credentials frequently, so IP address has been blocked in server firewall.

Note : Change the mail ID’s password through cPanel and try to access the mail account.

Step 6 – You can also use (Quick unblock) option to unblock the IP address

Step 7  – Input the IP address in the Quick Unblock field and click on Quick Unblock.

How to Block Traffic by Country

FIREWALL – A firewall is a network security system, either hardware- or software-based, that uses rules to control incoming and outgoing network traffic.

One of the most-requested features on cPanel servers is the ability to manage and filter traffic at a country level.

For some security reasons, some specific countries will blocked in server firewall.

Step 1 – Log into WHM

https://100.10.100.1:2087
https://example.com:2087
https://example.com/whm

Once logged in, Search and click on the ConfigServer Security & Firewall tool.

Step 2 – Click on the Firewall Configuration button to open the configuration file.

Step 3 -Deny Access by Country Code – On the Firewall Configuration page, scroll down to the Country Code Lists and Settings section.

Step 4 –  How to block the country

  • The CC_DENY field accepts two-letter country codes, such as “US” for the United States of America, “GB” for Great Britain, and “DE” for Germany.
  • Multiple countries can be comma separated with no spaces in between, such as “US,GB,DE” to deny access to the US, Great Britain, and Germany.

Step 5 – If you want to allow the country in server firewall, use CC_ALLOW  field to enter two-letter country codes.

Once done, Scroll to the bottom of the Firewall Configuration page and click on the Change button. On the next screen, click the Restart csf+lfd button to restart the firewall with the new settings.

 

 

Related posts

Leave a Comment