Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2005 16:34:02 -0000
From:      "Lawrence Farr" <freebsd-isp@epcdirect.co.uk>
To:        "'Jason Hunt'" <jhunt@niicommunications.com>, <freebsd-pf@freebsd.org>
Subject:   RE: pf Transparent Proxy Return
Message-ID:  <20050223163402.03A6667824@gunfright.epcdirect.co.uk>
In-Reply-To: <BE41FDDF.1D2B7%jhunt@niicommunications.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 

> -----Original Message-----
> From: owner-freebsd-pf@freebsd.org 
> [mailto:owner-freebsd-pf@freebsd.org] On Behalf Of Jason Hunt
> Sent: 23 February 2005 15:31
> To: freebsd-pf@freebsd.org
> Cc: pf@freebsd.org
> Subject: pf Transparent Proxy Return
> 
> Greetings,
> 
> Pretty new to pf, but was wondering how it would be possible 
> to redirect
> traffic to a specific site back to port 80 instead of going 
> through 3128.
> 
> 
> Using iptables, it is pretty much like so:
> 
> $IPTABLES -t nat -I PREROUTING -p tcp --dport 80 -d 
> x.x.x.x/32 -j RETURN
> 

Hi Jason,

I think you mean like this:

 rdr on $int_if proto tcp from <inets> to !<noproxy> port www -> $http_proxy
port 3128 

where <inets> are the hosts that you want redirected, <noproxy>
are the destinations you don't want proxied.


Hope this helps



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050223163402.03A6667824>