Contact Support : +64 220 256 070


How to check if your IP is blocked on the server?

Posted on: October 25, 2014

If you are unable to access your website, cPanel, webmail and other services on the server, it might be that your IP is blocked on the server. To confirm that you’re behind the firewall, do the following.

1) Try to access from the website from another ISP or using proxies.

2) Try to ping the server and check if there is any packet loss.

3) Try a running the traceroute command.

You can either open a support ticket with us or just login to the server from a different ISP and do the following.

Assuming that CSF is installed on the server. You can find your IP address by access the URL

In our example the IP is given below.

csf -g IPaddress

csf -g

Chain            num   pkts bytes target     prot opt in     out     source               destination

DENYIN           200      0     0 DROP       all  —  !lo    *

DENYOUT          200      6   720 DROP       all  —  *      !lo  

In this case the IP given is blocked at the firewall. The “DROP’ represents that all the packets from that IP is being screened.

You can find the reason for the block from the file /var/log/lfd.log so that you can avoid the same in the future.

lfd[19307]: *SSH login* from into the root account using password authentication
Oct 25 00:43:21 lfd[32025]: (sshd) Failed SSH login from (US/United States/ 5 in the last 3600 secs – *Blocked in csf* [LF_SSHD]

How to unblock your IP?

Removing rule…
DROP  all opt — in !lo out *  ->
DROP  all opt — in * out !lo  ->

Now that the rule for dropping packets from the IP has been removed and you will be able to access the services again.

If you wish, you can whitelist your IP address on the server so that it won’t get blocked next time.

[~]# csf -a
Adding to csf.allow and iptables ACCEPT…
ACCEPT  all opt — in !lo out *  ->
ACCEPT  all opt — in * out !lo  ->

Now that the IP is whitelisted on the server. If you still face any problems to connect to the server, please open a support ticket with us.





Search Blog