[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pf + transparent proxy



On Sat, 2002-03-23 at 16:17, Chris Hedemark wrote:
> On Fri, 2002-03-22 at 22:27, Lionel wrote:
> > I actually use squid under OBsD3 and I would like to use pf to do
> > transparent proxy .
> > Is there a solution ?
> 
> It works fine in pf.  You just need to set up a filter rule in pf.conf
> to let http traffic out, and you need to set up a NAT rule in nat.conf
> to redirect all outbound http traffic to your squid port.
> 
> Squid itself needs to be set up as a transparent proxy.
> 
> Exact filter rules and squid configuration can be found in the mailing
> list archives.
> 
> -- 
> ***********************************************************
> | Rev. Chris Hedemark, DD
> | Hillsborough, NC
> | http://yonderway.com
> | GPG Public Key - http://yonderway.com/chris/hedemark.gpg
> ***********************************************************

Thanx !!
In fact my rule was ok under OBSD3 but I forgot to put these lines in my
squid.conf  :

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

now it work fine !

See ya,

Lionel