summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-10-14 12:59:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-10-14 12:59:10 +0000
commita8ab16cd8c9e42f285ffda9418546711ee901f98 (patch)
tree94df36d1c92010e886332f1b622560ff04a55637 /regress/sbin/pfctl
parentddf9a76a6ac99f77e2d616c4494271e8414a7c68 (diff)
test binat netblocks
from ryan
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/pf17.in4
-rw-r--r--regress/sbin/pfctl/pf17.ok3
2 files changed, 7 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pf17.in b/regress/sbin/pfctl/pf17.in
index 443600305c2..9bd1072ddf0 100644
--- a/regress/sbin/pfctl/pf17.in
+++ b/regress/sbin/pfctl/pf17.in
@@ -10,4 +10,8 @@ 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
diff --git a/regress/sbin/pfctl/pf17.ok b/regress/sbin/pfctl/pf17.ok
index 6ef8dfeef33..b2176ea1a58 100644
--- a/regress/sbin/pfctl/pf17.ok
+++ b/regress/sbin/pfctl/pf17.ok
@@ -6,4 +6,7 @@ binat on lo0 inet proto icmp from 192.168.1.4 to any -> 10.0.0.4
binat on lo0 inet from 192.168.1.5 to 172.16.1.1 -> 10.0.0.5
binat on lo0 inet from 192.168.1.6 to 172.16.1.2 -> 10.0.0.6
binat on lo0 inet from 192.168.1.7 to 172.16.2.0/24 -> 10.0.0.7
+binat on lo0 inet from 192.168.2.0/24 to any -> 10.0.5.0/24
+binat on lo0 inet from 192.168.2.0/28 to any -> 10.0.4.0/28
+binat on lo0 inet from 192.168.2.0/30 to 192.168.3.1 -> 10.0.3.0/30
binat on lo0 inet from 192.168.1.8 to ! 172.17.0.0/16 -> 10.0.0.8