2014-09-30 13:12:03 |
eljoest |
description |
Ubuntu 14.04.1 LTS
libapache2-mod-rpaf 0.6-12
apache2: 2.4.7-1ubuntu4.1
libapache2-mod-php5: 5.5.9+dfsg-1ubuntu4.4
* Problem:
The variable REMOTE_ADDR retains the proxy's IP address. The apache logfile shows the actual client IP.
* Details:
Dumping php's $_SERVER variable yields the following (relevant) entries:
HTTP_X_FORWARDED_PROTO=https
HTTP_X_FORWARDED_FOR=79.251.29.XXX
REMOTE_ADDR=192.168.55.1
REQUEST_SCHEME=https
I have enabled RPAF in /etc/apache2/mods-enabled/rpaf.conf and set the following additional option:
RPAFproxy_ips 192.168.55.1
The access.log with the correct IP uses the LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined.
I'm using a debian host with mod-praf 0.6-7+wheezy1, php 5.4.4-14+deb7u14 and identical configuration behind the same proxy without issues.
Might be related to Bug #1191076 iff rpaf is intercepting the request "too late". |
Ubuntu 14.04.1 LTS
libapache2-mod-rpaf 0.6-12
apache2: 2.4.7-1ubuntu4.1
libapache2-mod-php5: 5.5.9+dfsg-1ubuntu4.4
* Problem:
The variable REMOTE_ADDR retains the proxy's IP address. The apache logfile shows the actual client IP.
* Details:
Dumping php's $_SERVER variable yields the following (relevant) entries:
HTTP_X_FORWARDED_PROTO=https
HTTP_X_FORWARDED_FOR=79.251.29.XXX
REMOTE_ADDR=192.168.55.1
REQUEST_SCHEME=https
I have enabled RPAF in /etc/apache2/mods-enabled/rpaf.conf and set the following additional option:
RPAFproxy_ips 192.168.55.1
The access.log with the correct IP uses the LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined.
I'm using a debian host with mod-praf 0.6-7+wheezy1, php 5.4.4-14+deb7u14, apache 2.2.22-13+deb7u3 and identical configuration behind the same proxy without issues.
Might be related to Bug #1191076 iff rpaf is intercepting the request "too late". |
|