Re: [squid-users] FreeBSD

From: John Hay <jhay_at_meraka.org.za>
Date: Thu, 15 Aug 2013 08:18:21 +0200

On Wed, Aug 14, 2013 at 10:13:13PM -0300, Reginaldo Giovane Guaitanele wrote:
> 2013/8/14 Amos Jeffries <squid3_at_treenet.co.nz>:
> > On 2013-08-14 13:21, Reginaldo Giovane Guaitanele wrote:
> >>
> >> N?o estou conseguindo usar o tproxy no freebsd.
> >>
> >> alguem sabe quais regras usar no ipfw ou pf pra funcionar com tproxy?
> >
> >
> > TPROXY on FreeBSD requires Squid-3.4 beta version and IPFW tool (FreeBSD
> > version of PF does not support TPROXY).
> > I'm not sure which rules IPFW requires, TPROXY implementations tend to use
> > the wording "divert" to describe it separately from NAT 'redirect'/'forward'
> > rules.
> >
> > Amos
> >
>
> I have already compiled Squid-3.4 beta on Freebsd 9.1 with support TPROXY.
> But still do not know how to divert traffic to the squid with IPFW.

What is different between TPROXY and --enable-ipfw-transparent or TP_IPFW
as it is called in the FreeBSD port Makefile? I have been using this via
the "Enable transparent proxying with IPFW" option in the FreeBSD Makefile
for years. The version of squid I'm currently using is 3.2.5 and in its
config I use:

http_port 127.0.0.1:3000 transparent

and then in ipfw I use

${fwcmd} add 11300 fwd 127.0.0.1,3000 tcp from 10.0.0.0/8 to any 80

John

-- 
John Hay -- jhay_at_meraka.csir.co.za / jhay_at_FreeBSD.org
Received on Thu Aug 15 2013 - 06:18:28 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 15 2013 - 12:00:24 MDT