summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-02-26 13:25:21 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-02-26 13:25:21 +0000
commit075abaeaa2c6654626c2dd93f04ddcbfc8389ac3 (patch)
treea0a387e0cf83fdcc1dc9d05c1e1509386367af96 /regress
parentfc54d591aed33bb3bcea4ad59f20e98d452463f0 (diff)
rdr-anchor: no src port, no dst port list expansion, no dst port operators
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pfail27.in5
-rw-r--r--regress/sbin/pfctl/pfail27.ok4
3 files changed, 11 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index c4e494cdfa0..b91a54fe8d7 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.97 2003/02/26 13:19:02 henning Exp $
+# $OpenBSD: Makefile,v 1.98 2003/02/26 13:25:20 henning Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -13,7 +13,7 @@
PFTESTS=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
PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
PFTESTS+=51 52 53 54 55 56 57
-PFFAIL=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
+PFFAIL=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
PFSIMPLE=1 2
PFSETUP=1 2 3
PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
diff --git a/regress/sbin/pfctl/pfail27.in b/regress/sbin/pfctl/pfail27.in
new file mode 100644
index 00000000000..01e82d1ec60
--- /dev/null
+++ b/regress/sbin/pfctl/pfail27.in
@@ -0,0 +1,5 @@
+# various anchor limitations
+
+rdr-anchor foo from 10/8 port 1024 to any
+rdr-anchor foo to 10/8 port { 80, 443 }
+rdr-anchor foo to 10/8 port 6000:7000
diff --git a/regress/sbin/pfctl/pfail27.ok b/regress/sbin/pfctl/pfail27.ok
new file mode 100644
index 00000000000..cee8451056d
--- /dev/null
+++ b/regress/sbin/pfctl/pfail27.ok
@@ -0,0 +1,4 @@
+stdin:3: source port parameter not supported in rdr-anchor
+stdin:4: destination port list expansion not supported in rdr-anchor
+stdin:5: destination port operators not supported in rdr-anchor
+pfctl: Syntax error in file: pf rules not loaded