possibility to send xforwardedfor

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 13 years ago
parent ce734daf14
commit 5cdd0d42a6
  1. 16
      root/etc/e-smith/templates/etc/squid/squid.conf/96xForwardedFor

@ -1,6 +1,18 @@
{
my $fwd = $squid{'XForwardedFor'} || 'no';
unless ($fwd =~ m/^yes|enabled|on|1$/i){
$OUT .=<<"EOF";
acl localhost src 127.0.0.1
follow_x_forwarded_for allow localhost
forwarded_for off
header_access X-Forwarded-For deny all
EOF
}
else{
$OUT .= '';
}
}

Loading…
Cancel
Save