OpenVZ Forum


Home » General » Support » Nginx detects my HN IP address
Nginx detects my HN IP address [message #35400] Mon, 23 March 2009 20:24 Go to previous message
silentninja is currently offline  silentninja
Messages: 37
Registered: September 2007
Member
This is kinda wierd..

HN => CentOS 5 x86_64 (IP ended in 11, Telecom, Argentina)
VE => Debian 5 (IP ended in 91)

My IP is totally different (x.x.x.140, Telefonica, Argentina)


1. On the VE I have installed nginx to use as a www server (really a reverse proxy www server). So I've set it up following a simple tutorial... everything is working.

2. I've then noticed that nginx detects not my IP from localhost (127.0.0.1), and not my IP from the VE (x.x.x.91) but the IP from the HN (x.x.x.11) and logs it...

x.x.x.11 - - [23/Mar/2009:20:12:52 +0000] "GET /ip.php HTTP/1.1" 200 81 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) F$
x.x.x.11 - - [23/Mar/2009:20:12:53 +0000] "GET /ip.php HTTP/1.1" 200 81 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) F$
x.x.x.11 - - [23/Mar/2009:20:12:54 +0000] "GET /ip.php HTTP/1.1" 200 81 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) F$
x.x.x.11 - - [23/Mar/2009:20:12:55 +0000] "GET /ip.php HTTP/1.1" 200 81 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) F$
x.x.x.11 - - [23/Mar/2009:20:14:37 +0000] "GET /spool/www/members_ng HTTP/1.1" 404 306 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.$
x.x.x.11 - - [23/Mar/2009:20:15:44 +0000] "GET /ip.php HTTP/1.1" 200 81 "-" "Mozilla/5.0 (X11; U; Linux i686; es-AR; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) F$


Note: The logfile is cropped but the important thing is that strange IP number detection (.11) because the packets should NOT be passing from the HN, but should be get by the VE to detect the original IP number that's needed.

The httpd requests somehow detects that is being forwarded from the HN to the VE, before the nginx forwards it from the 80 port to the 81 port on localhost (127.0.0.1 is detected on the Apache server, plus the .11 address but not the .91 address).

This must be fixed, what can I do about it ?
 
Read Message
Read Message
Read Message
Previous Topic: Solution for vzdump with NFS mounts inside CT
Next Topic: VE keeps disconnecting
Goto Forum:
  


Current Time: Mon Jul 15 12:23:44 GMT 2024

Total time taken to generate the page: 0.02299 seconds