]> git.ipfire.org Git - thirdparty/squid.git/commit
Add TPROXY support for OpenBSD
authorMarios Makassikis <mmakassikis@gmail.com>
Fri, 29 Mar 2013 05:48:19 +0000 (23:48 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 Mar 2013 05:48:19 +0000 (23:48 -0600)
commit1125ea7b227dd6350e04e2a4e3ee8b63766a7e88
treeee76f705cdc3ecac6b08175adba800274fe42925
parent86e04dd564ee58dc3a5d72da99489518b5497ca3
Add TPROXY support for OpenBSD

This adds support for the OpenBSD 'divert' target in PF which presents
the client and remote IPs directly to Squid in accept() parameters
the way Linux TPROXY target does.

It also adds support for the SO_BINDANY option on outgoing traffic for
client IP address spoofing which completes teh TPROXY behaviour.

To enable these features Squid is configured the same as Linux TPROXY:
  http_port 1234 tproxy
src/comm.cc
src/ip/Intercept.cc
src/ip/Intercept.h