From: Eric Covener Date: Tue, 22 Sep 2015 18:11:35 +0000 (+0000) Subject: add warnings and emphasize the defaults for trusted non-internal proxies) X-Git-Tag: 2.5.0-alpha~2817 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=344a42289a3cc7dd85aabecb420417d92338dd55;p=thirdparty%2Fapache%2Fhttpd.git add warnings and emphasize the defaults for trusted non-internal proxies) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1704683 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_remoteip.xml b/docs/manual/mod/mod_remoteip.xml index 27d04cba827..40ecd390b3e 100644 --- a/docs/manual/mod/mod_remoteip.xml +++ b/docs/manual/mod/mod_remoteip.xml @@ -113,9 +113,12 @@ via the request headers. header-field header as the useragent IP address, or list of intermediate useragent IP addresses, subject to further configuration of the RemoteIPInternalProxy and - RemoteIPTrustedProxy directives. Unless these - other directives are used, mod_remoteip will trust all - hosts presenting a RemoteIPHeader IP value.

+ RemoteIPTrustedProxy directives.

+ + Unless these other directives are used, mod_remoteip + will trust all hosts presenting a non internal address in the + RemoteIPHeader header value. + Internal (Load Balancer) Example @@ -213,20 +216,26 @@ RemoteIPProxiesHeader X-Forwarded-By RemoteIPTrustedProxy -Declare client intranet IP addresses trusted to present the RemoteIPHeader value +Restrict client IP addresses trusted to present the RemoteIPHeader value RemoteIPTrustedProxy proxy-ip|proxy-ip/subnet|hostname ... server configvirtual host -

The RemoteIPTrustedProxy directive adds one - or more addresses (or address blocks) to trust as presenting a valid - RemoteIPHeader value of the useragent IP. Unlike the - RemoteIPInternalProxy directive, any intranet +

The RemoteIPTrustedProxy + directive restricts which peer IP addresses (or address blocks) will be + trusted to present a valid RemoteIPHeader value of the useragent IP.

+ +

Unlike the RemoteIPInternalProxy directive, any intranet or private IP address reported by such proxies, including the 10/8, 172.16/12, 192.168/16, 169.254/16 and 127/8 blocks (or outside of the IPv6 public 2000::/3 block) are not trusted as the useragent IP, and are left in the RemoteIPHeader header's value.

+ By default, mod_remoteip will trust + all hosts presenting a non internal address in the + RemoteIPHeader header value. + + Trusted (Load Balancer) Example RemoteIPHeader X-Forwarded-For @@ -239,7 +248,7 @@ RemoteIPTrustedProxy proxy.example.com RemoteIPTrustedProxyList -Declare client intranet IP addresses trusted to present the RemoteIPHeader value +Restrict client IP addresses trusted to present the RemoteIPHeader value RemoteIPTrustedProxyList filename server configvirtual host