CSF deny server IP

ritovietnam

New member
Joined
Oct 23, 2018
Messages
1
Hi,

I have been searching google about that problem but not having any infomation.
My problem is:
My CSF deny Server IP by it self.
Example: MyServer IP is 1.2.3.4 and CSF install on it, and sometime CSF deny 1.2.3.4 IP. As:

The firewall on this server is blocking your connection.
You need to contact the server owner or hosting provider for further information.

Your blocked IP address is: 1.2.3.4

This server's hostname is: server.myserver.com


I just can disable csf and enable it again.
I have been:
- Add my IP server to csf.ignore csf.allow
- Check all csf log
- Check directadmin log
- Check system log
- Check apache, nginx log
But no problem of server ip i can fond. And csf still block server ip.
I can't turn off CSF. How can i determine problem.

Thanks for your help!
 
You should never put your server ip in csf.ignore or csf.allow for starters.

If you're running Centos, then check /var/log/lfd.log to investigate why the server ip is getting blocked.
 
Hello,

If you run nginx+apache and your server's IP get blocked, then it might mean that Apache does not detect an IP of visitors correctly and instead of It Apache sees and writes on logs your server's IP, proxied from NGINX.

To check this guess you need to check what IP is logged in Apache and what IP is seen in $_SERVER['REMOTE_ADDR'] (http://php.net/manual/en/reserved.variables.server.php)

If you see the server's IP in both cases then your installation might be corrupted, or outdated.

There was a bug in Apache which might causes the wrong IP detection, so try and rebuild it

Code:
./build update
./build nginx_apache
 
Back
Top