Page 1 of 1

Bad IP Detection

Posted: Sun Jul 12, 2015 4:11 pm
by Flanagan
Hi!
We installed vesta and everything was working well, but we realized that when we use the data base the ip detected is the server one and no the user one.
When we use php or html to detect the user ip it works well. It only happens with MySql (i think) and this is a bit annoying because when we ban an user we ban all the website users at the same time because all of them have the same ip, the server (ip) one. (it happens with all the scripts WP/PHP Fusion/PHP Nuke...)
Is there any one who knows how to repair these?
Sorry for the bad English :)
Thanks!!

Re: Bad IP Detection

Posted: Mon Jul 20, 2015 12:45 pm
by injeckt
I bet you have Ubuntu as the OS.

viewtopic.php?f=11&t=5786

I opened a thread a while ago about this. It seems that the version of Apache for Ubuntu has a bug and does not change the original IP address of the client in the HTTP header to go through the reverse proxy NGINX.

The solution in WordPress is set to the link I put above.

For this reason, I currently install VestaCP on CentOS. The VestaCP support on CentOS is often better than in other distributions.

Re: Bad IP Detection

Posted: Tue Jul 21, 2015 9:17 am
by Flanagan
Hi injeckt,
I have UbuntuOS 14.04 LTS 64-bits and this problem is bit annoying for the security of my websites. So if I change the OS to Centos the problem will be solved???

Thanks for the help!!
^.^

Re: Bad IP Detection

Posted: Tue Jul 21, 2015 4:15 pm
by dsystem
It is not necessary to change operating system.

See this topic -> viewtopic.php?f=10&t=6650