summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf17.in
blob: c593d5f8b8e9e96b027e27e54778eb2546a44d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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

binat on lo0 from 1.1.1.1 to no-route -> 2.2.2.2
binat on lo0 from (lo0) to 1.1.1.1 -> 2.2.2.2
binat on lo0 from (lo0) to 1.1.1.1 -> (lo1)
binat on lo0 inet from (lo0) to (lo1) -> (lo1)
binat on lo0 from 1.1.1.1 to <sometable> -> 2.2.2.2
binat on lo0 from 1.1.1.1 to !<sometable> -> 2.2.2.2
binat on lo0 from 1.1.1.1 to (lo1) -> 2.2.2.2
binat on lo0 from 1.1.1.1 to !(lo1) -> 2.2.2.2
binat on lo0 from (lo0) to <sometable> -> 2.2.2.2

binat on lo0 from ::1 to no-route -> ::2
binat on lo0 from (lo0) to ::1 -> ::2
binat on lo0 from (lo0) to ::1 -> (lo1)
binat on lo0 inet6 from (lo0) to (lo1) -> (lo1)
binat on lo0 from ::1 to <sometable> -> ::2
binat on lo0 from ::1 to !<sometable> -> ::2
binat on lo0 from ::1 to (lo1) -> ::2
binat on lo0 from ::1 to !(lo1) -> ::2
binat on lo0 from (lo0) to <sometable> -> ::2