xref: /openbsd/regress/sbin/pfctl/pf17.in (revision ec044821)
1c5efe8c0Skjell# test binat
2c5efe8c0Skjell
3*ec044821Sjsgmatch on lo0 from 192.168.1.1 to any binat-to 10.0.0.1
4*ec044821Sjsgmatch on lo0 proto tcp from 192.168.1.2 to any binat-to 10.0.0.2
5*ec044821Sjsgmatch on lo0 proto udp from 192.168.1.3 to any binat-to 10.0.0.3
6*ec044821Sjsgmatch on lo0 proto icmp from 192.168.1.4 to any binat-to 10.0.0.4
7c5efe8c0Skjell
8*ec044821Sjsgmatch on lo0 from 192.168.1.5 to 172.16.1.1 binat-to 10.0.0.5
9*ec044821Sjsgmatch on lo0 from 192.168.1.6 to 172.16.1.2/32 binat-to 10.0.0.6
10*ec044821Sjsgmatch on lo0 from 192.168.1.7 to 172.16.2.0/24 binat-to 10.0.0.7
11c5efe8c0Skjell
12*ec044821Sjsgmatch on lo0 from 192.168.2.0/24 to any binat-to 10.0.5.0/24
13*ec044821Sjsgmatch on lo0 from 192.168.2.0/28 to any binat-to 10.0.4.0/28
14*ec044821Sjsgmatch on lo0 from 192.168.2.0/30 to 192.168.3.1 binat-to 10.0.3.0/30
15dedd4759Shenning
16*ec044821Sjsgmatch on lo0 from 192.168.1.8 to ! 172.17.0.0/16 binat-to 10.0.0.8
1723026c3cScedric
18*ec044821Sjsgmatch on lo0 from 1.1.1.1 to no-route binat-to 2.2.2.2
19*ec044821Sjsgmatch on lo0 from (lo0:0) to 1.1.1.1 binat-to 2.2.2.2
20*ec044821Sjsgmatch on lo0 from (lo0:0) to 1.1.1.1 binat-to (lo1000000:0)
21*ec044821Sjsgmatch on lo0 inet from (lo0:0) to (lo1000000:0) binat-to (lo1000000:0)
22*ec044821Sjsgmatch on lo0 from 1.1.1.1 to <sometable> binat-to 2.2.2.2
23*ec044821Sjsgmatch on lo0 from 1.1.1.1 to !<sometable> binat-to 2.2.2.2
24*ec044821Sjsgmatch on lo0 from 1.1.1.1 to (lo1000000:0) binat-to 2.2.2.2
25*ec044821Sjsgmatch on lo0 from 1.1.1.1 to !(lo1000000:0) binat-to 2.2.2.2
26*ec044821Sjsgmatch on lo0 from (lo0:0) to <sometable> binat-to 2.2.2.2
2723026c3cScedric
28*ec044821Sjsgmatch on lo0 from ::1 to no-route binat-to ::2
29*ec044821Sjsgmatch on lo0 from (lo0:0) to ::1 binat-to ::2
30*ec044821Sjsgmatch on lo0 from (lo0:0) to ::1 binat-to (lo1000000:0)
31*ec044821Sjsgmatch on lo0 inet6 from (lo0:0) to (lo1000000:0) binat-to (lo1000000:0)
32*ec044821Sjsgmatch on lo0 from ::1 to <sometable> binat-to ::2
33*ec044821Sjsgmatch on lo0 from ::1 to !<sometable> binat-to ::2
34*ec044821Sjsgmatch on lo0 from ::1 to (lo1000000:0) binat-to ::2
35*ec044821Sjsgmatch on lo0 from ::1 to !(lo1000000:0) binat-to ::2
36*ec044821Sjsgmatch on lo0 from (lo0:0) to <sometable> binat-to ::2
3723026c3cScedric
38*ec044821Sjsgmatch on lo0 from ::1 to (lo0) binat-to ::1
39*ec044821Sjsgmatch on lo0 from ::1 to (lo0:0) binat-to ::1
40*ec044821Sjsgmatch on lo0 from ::1 to (lo0:peer) binat-to ::1
41*ec044821Sjsgmatch on lo0 from ::1 to (lo0:peer:0) binat-to ::1
42*ec044821Sjsgmatch on lo0 from ::1 to (lo0:broadcast) binat-to ::1
43*ec044821Sjsgmatch on lo0 from ::1 to (lo0:broadcast:0) binat-to ::1
44*ec044821Sjsgmatch on lo0 from ::1 to (lo0:network) binat-to ::1
45*ec044821Sjsgmatch on lo0 from ::1 to (lo0:network:0) binat-to ::1
46*ec044821Sjsgmatch on lo0 from ::1 to (lo0)/100 binat-to ::2
47*ec044821Sjsgmatch on lo0 from ::1 to (lo0:0)/100 binat-to ::2
48*ec044821Sjsgmatch on lo0 from ::1 to (lo0:peer)/100 binat-to ::2
49*ec044821Sjsgmatch on lo0 from ::1 to (lo0:peer:0)/100 binat-to ::2
506a0fcc9cScedric
51*ec044821Sjsgmatch on lo from (lo0:0) to ::1 binat-to ::2
52*ec044821Sjsgmatch on tun from (lo0:0) to ::1 binat-to ::2
53