Welcome! Log In Create A New Profile

Advanced

Apache 2.2.x mod_remoteip backport

Posted by Brane F. Gračnar 
Brane F. Gračnar
Apache 2.2.x mod_remoteip backport
June 24, 2011 12:00PM
Hello

I've made really small patch over svn trunk version of mod_remoteip to compile
and work in Apache 2.2.x.

Mod_remoteip sets client's IP address from X-Forwarded-For header.

Advantage of using mod_remoteip over mod_extract_forwarded or mod_rpaf is that
client's IP address is not only logged, but but is set internally - so you can
use mod_access to define IP based ACLs using Allow/Deny pragmas.

Complete module source kode is available here: http://bit.ly/kBTiZ9

Compile it by issuing command: apxs -c mod_remoteip.c

Best regards, Brane
Jim Riggs
Re: Apache 2.2.x mod_remoteip backport
June 30, 2011 02:30PM
On Jun 24, 2011, at 4:52 AM, Brane F. Gračnar wrote:

> Hello
>
> I've made really small patch over svn trunk version of mod_remoteip to compile
> and work in Apache 2.2.x.
>
> Mod_remoteip sets client's IP address from X-Forwarded-For header.
>
> Advantage of using mod_remoteip over mod_extract_forwarded or mod_rpaf is that
> client's IP address is not only logged, but but is set internally - so you can
> use mod_access to define IP based ACLs using Allow/Deny pragmas.
>
> Complete module source kode is available here: http://bit.ly/kBTiZ9
>
> Compile it by issuing command: apxs -c mod_remoteip.c

I'm a little delayed on this thread, but if any of you are using FreeBSD, I created a port several months ago that also backports this to apache22. http://www.freshports.org/www/mod_remoteip
Sorry, only registered users may post in this forum.

Click here to login