pf Transparent Proxy Return
Lawrence Farr
freebsd-isp at epcdirect.co.uk
Wed Feb 23 16:34:03 GMT 2005
> -----Original Message-----
> From: owner-freebsd-pf at freebsd.org
> [mailto:owner-freebsd-pf at freebsd.org] On Behalf Of Jason Hunt
> Sent: 23 February 2005 15:31
> To: freebsd-pf at freebsd.org
> Cc: pf at 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
More information about the freebsd-pf
mailing list