View Single Post
  #1   (View Single Post)  
Old 29th March 2010
jhp jhp is offline
Real Name: John
New User
Join Date: Mar 2010
Location: Derbyshire, UK
Posts: 5
Default Simple pf ruleset

Hi Everyone

I'm new to FreeBSD and am attempting to set up pf rules which will allow all traffic through a gateway machine, and redirect port 80 requests for transparent squid proxying.

This is my pf.conf, a very simple one, but for some reason it doesn't seem to be redirecting, does anyone have any idea why?

## Definitions

## Redirect WWW traffic to local cache
rdr on $int_if proto tcp from $lan to any port www -> port 3128

## No restrictions on Loopback Interface
pass in quick on lo0 all
pass out quick on lo0 all

## No restrictions on Inside LAN Interface for private network
pass out quick on $int_if all
pass in quick on $int_if all

## No restrictions on WAN Interface
pass out quick on $ext_if all
pass in quick on $ext_if all
I'm using FBSD 6.1-Release.


Reply With Quote