Welcome! Log In Create A New Profile

Advanced

GEOIP not honoring REALIP_MODULE

August 31, 2010 11:08AM
It is assumed when we use REALIP_MODULE and purposely set REMOTE_ADDR to real ip of our proxies in front
that this is the real client IP that GEOIP should be using.

example:
proxy of nginx in front of a fastcgi nginx.

Proxy config:
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Fast cgi config:
real_ip_header X-Real-IP;
set_real_ip_from x.x.x.x;

This ends up setting REMOTE_ADDR correctly for Fastcgi nginx server, but GEOIP parses information for
proxy connecting IP instead giving false information.
Subject Author Posted

GEOIP not honoring REALIP_MODULE

syle August 31, 2010 11:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready