]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf.data.pre
Add spoof_client_ip access control
authorSteve Hill <steve@opendium.com>
Mon, 13 May 2013 03:57:03 +0000 (21:57 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 May 2013 03:57:03 +0000 (21:57 -0600)
commit0d901ef43d218267e44c578fa2f67634de00663c
treea7a9090cfec3b493b5afce17ae03a176e2652030
parent691f66c0713464ce29d5c41234f36b6a4092e9f7
Add spoof_client_ip access control

... to control whether TPROXY requests have their source IP address
spoofed by Squid.  The ACL defaults to allow (i.e. the current
behaviour), but using an ACL that results in a deny result will
disable spoofing for that request.

Example config to disable spoofing for all requests:
    spoof_client_ip deny all

Also, polish the TPROXY related flags:

1. The flags.spoofClientIp flag was a general "this is a TPROXY
   request" flag, which was a bit confusing given the name of the
   flag.  So the flags.spoofClientIp flag now only indicates
   whether we want to spoof the source IP or not.

2. The flags.interceptTproxy is added to flag whether the request
   was received on a "tproxy" port or not.
13 files changed:
src/HttpRequest.cc
src/RequestFlags.h
src/SquidConfig.h
src/acl/DestinationIp.cc
src/auth/Acl.cc
src/cache_cf.cc
src/cf.data.pre
src/client_side.cc
src/client_side_request.cc
src/format/Format.cc
src/forward.cc
src/peer_select.cc
src/tunnel.cc