summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-01-09 11:52:31 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-01-09 11:52:31 +0000
commit179a9b9fa1673d6b98fbfc4c467487bb14441fa3 (patch)
treed7ec732701e96efad7dc2c05671f9aea651f8c79 /regress/sbin
parent24c495a51bf0769c932f77a566a88fb4369beeff (diff)
Add tests for 'no' translation rules and 'label' in filter rules.
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/binat1.in1
-rw-r--r--regress/sbin/pfctl/binat1.ok17
-rw-r--r--regress/sbin/pfctl/pf1.in2
-rw-r--r--regress/sbin/pfctl/pf1.ok2
4 files changed, 12 insertions, 10 deletions
diff --git a/regress/sbin/pfctl/binat1.in b/regress/sbin/pfctl/binat1.in
index 49e9eb0ecab..443600305c2 100644
--- a/regress/sbin/pfctl/binat1.in
+++ b/regress/sbin/pfctl/binat1.in
@@ -1,5 +1,6 @@
# 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
diff --git a/regress/sbin/pfctl/binat1.ok b/regress/sbin/pfctl/binat1.ok
index 576b6255446..b7f5dc330e7 100644
--- a/regress/sbin/pfctl/binat1.ok
+++ b/regress/sbin/pfctl/binat1.ok
@@ -1,8 +1,9 @@
-@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/32 -> 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.1.8 to ! 172.17.0.0/16 -> 10.0.0.8
+no binat on lo0 from 192.168.1.1 to 10.1.2.3/32
+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/32 -> 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.1.8 to ! 172.17.0.0/16 -> 10.0.0.8
diff --git a/regress/sbin/pfctl/pf1.in b/regress/sbin/pfctl/pf1.in
index 27f1072e11b..07235eb0fdf 100644
--- a/regress/sbin/pfctl/pf1.in
+++ b/regress/sbin/pfctl/pf1.in
@@ -1,6 +1,6 @@
pass in all
pass in from any to any
-pass in proto tcp from any port <= 1024 to any
+pass in proto tcp from any port <= 1024 to any label foo_bar
pass in proto tcp from any to any port = 25
pass in proto tcp from 10.0.0.0/8 port > 1024 to ! 10.1.2.3 port != 22
pass in proto igmp from 10.0.0.0/8 to 10.1.1.1 allow-opts
diff --git a/regress/sbin/pfctl/pf1.ok b/regress/sbin/pfctl/pf1.ok
index 72307aa068e..b3f7245d057 100644
--- a/regress/sbin/pfctl/pf1.ok
+++ b/regress/sbin/pfctl/pf1.ok
@@ -1,6 +1,6 @@
@0 pass in all
@0 pass in all
-@0 pass in proto tcp from any port <= 1024 to any
+@0 pass in proto tcp from any port <= 1024 to any label foo_bar
@0 pass in proto tcp from any to any port = smtp
@0 pass in inet proto tcp from 10.0.0.0/8 port > 1024 to ! 10.1.2.3/32 port != ssh
@0 pass in inet proto igmp from 10.0.0.0/8 to 10.1.1.1/32 allow-opts