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

Torsten Kersandt torsten at cnc-london.net
Sat Jul 17 22:10:39 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
_______________________________________________
freebsd-pf at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-pf

To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"



HI 

I think that's a easier one

rdr pass on $ext_if proto udp from any to $ext_if port 20000 -> 127.0.0.1
port 69





More information about the freebsd-pf mailing list