Subject: Re: real transparent proxy
To: Hubert Feyrer <hubert@feyrer.de>
From: Darren Reed <darrenr@netbsd.org>
List: tech-net
Date: 12/29/2007 23:45:22
Hubert Feyrer wrote:
> On Thu, 20 Dec 2007, Alan Barrett wrote:
>>> please do know anybody solution under NetBSD for use squid as real
>>> tproxy?
>>
>> You need packet redirection stuff (ipf(4) or pf(4)) to intercept
>> the packets and redirect them to a port on localhost where squid is
>> listening, and you need squid.conf stuff to make squid do the right
>> thing.
>>
>> This message may be helpful, but the information
>> there is probably incomplete or wrong in minor ways:
>> <http://mail-index.netbsd.org/tech-net/2007/07/05/0009.html>.
> 
> for IPfilter, see:
> http://www.feyrer.de/NetBSD/blog.html/nb_20060728_1138.html

Also, look at:

usr/src/dist/ipf/samples/proxy.c
usr/src/dist/ipf/samples/relay.c

Darren