Manual:$wgUsePrivateIPs

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgUsePrivateIPs and the translation is 36% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎македонски • ‎日本語 • ‎한국어
Proxies: $wgUsePrivateIPs
Whether private X-Forwarded-For IPs should be accepted
Introducido en la versión:1.14.0 (r43784)
Eliminado en la versión:aún se usa
Valores permitidos:(booleano)
Valor predeterminado:false
Otros configuración: Alfabéticamente | Por Función

Detalles

Determines whether MediaWiki will trust an X-Forwarded-For (XFF) header specifying a private IP in requests from a trusted forwarding proxy. If set to false, private IP addresses in the XFF header will be ignored.

A trusted forwarding proxy is any proxy listed in either $wgSquidServers or $wgSquidServersNoPurge . Extensions can also mark proxies as trusted via the IsTrustedProxy hook.

So if you have two traffic managers (Might be Zeus or F5) sending requests to your webservers, forwarding from an internal network, the config might be this:

$wgUsePrivateIPs = true;
$wgSquidServersNoPurge = array( '172.1.1.1', '172.1.1.2' );

Véase también