summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf66.in
blob: 1be348f9503054bad75e6779cb7c1cdc3430ddb2 (plain)
1
2
3
4
5
6
7
8
9
10
# test specified nat translation ports

nat on lo0 from 192.168.1.1 to any -> 10.0.0.1 port 500
nat on lo0 proto tcp from 192.168.1.2 to any -> 10.0.0.2 port 1000:5000
nat on lo0 proto udp from 192.168.1.3 to any -> 10.0.0.3 port 5000:1000
nat on lo0 proto udp from 192.168.1.4 to any -> 10.0.0.4 port 50000:50000
nat on lo0 proto tcp from 192.168.1.2 to any -> 10.0.0.2 port www:5000
nat on lo0 proto udp from 192.168.1.3 to any -> 10.0.0.3 port 5000:www