summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf17.in
blob: 9bd1072ddf0c0e228f5e8189f85ce382042fb1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# test binat

no binat on lo0 from 192.168.1.1 to 10.1.2.3
binat on lo0 from 192.168.1.1 to any -> 10.0.0.1
binat on lo0 proto tcp from 192.168.1.2 to any -> 10.0.0.2
binat on lo0 proto udp from 192.168.1.3 to any -> 10.0.0.3
binat on lo0 proto icmp from 192.168.1.4 to any -> 10.0.0.4

binat on lo0 from 192.168.1.5 to 172.16.1.1 -> 10.0.0.5
binat on lo0 from 192.168.1.6 to 172.16.1.2/32 -> 10.0.0.6
binat on lo0 from 192.168.1.7 to 172.16.2.0/24 -> 10.0.0.7

binat on lo0 from 192.168.2.0/24 to any -> 10.0.5.0/24
binat on lo0 from 192.168.2.0/28 to any -> 10.0.4.0/28
binat on lo0 from 192.168.2.0/30 to 192.168.3.1 -> 10.0.3.0/30

binat on lo0 from 192.168.1.8 to ! 172.17.0.0/16 -> 10.0.0.8