PF rdr from one port to another

Roger Miranda (Digital Relay) rmiranda at digitalrelay.ca
Wed Dec 6 07:16:45 PST 2006


Hey Everyone, First time poster here.

I have a freebsd 6.1 setup with if_bridge. Two nics.
I am running squid on the bridge itself.

I having some issues doing the routing with PF.
i have:

rdr on $int_if inet proto tcp from $net to any port www -> $proxy port 3128
pass in log all keep state
pass out log all keep state

Now fromt the workstation I type in "http://slashdot.org" and it see pass 
through squid, but now it is trying to connect to "http://slashdot.org:3128"

is there anyone to repackage to packet to force port 80 instead of 3128

Thanks
Roger




More information about the freebsd-pf mailing list