How to do PAT based on source IP network and port ?

Thomas Elsgaard thomas.elsgaard at gmail.com
Sat Jul 17 22:04:36 UTC 2010


Hi

I am wondering how i can get pf to do a PAT based on source IP network?

Traffic from 10.5.1.0/24 towards UDP port 69 should be mapped to port
20000 instead of port 69
Traffic from 10.5.2.0/24 towards UDP port 69 should be mapped to port
20001 instead of port 69

Traffic is accessing a service on the same server where pf is running.

Is this possible with pf?

Thomas


More information about the freebsd-pf mailing list