View Single Post
  #3   (View Single Post)  
Old 30th March 2010
jhp jhp is offline
Real Name: John
New User
Join Date: Mar 2010
Location: Derbyshire, UK
Posts: 5

Ahhhhh. Point 3. I'd loaded the module but not enabled it.

FWIW I had to modify the pf rules slightly to get it working, the one posted didn't redirect.

## Definitions

## No restrictions on Loopback Interface
## No restrictions on WAN Interface
set skip on { lo0, $ext_if }

## Redirect WWW traffic to local cache
rdr on $int_if inet proto tcp from $int_if:network to any port www -> port 3128
pass in on $int_if inet proto tcp from any to port 3128 keep state
pass out on $ext_if inet proto tcp from any to any port www keep state

## No restrictions on Inside LAN Interface for private network
pass out quick on $int_if all
pass in quick on $int_if all
Thanks for your help!
Reply With Quote