summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-02-23 00:02:38 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-02-23 00:02:38 +0000
commit18277b31407af0b29950359c75fc613ef2fa4cbe (patch)
treed30a6bc2b42256a7809addb439ffc8b7f3a8b8b7 /regress
parentc48f01ef5174851b40a1d13344e85f48217c48ec (diff)
Test invalid conditions in rdr-anchor and binat-anchor.
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/pfctl/pfail24.in11
-rw-r--r--regress/sbin/pfctl/pfail24.ok12
2 files changed, 23 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pfail24.in b/regress/sbin/pfctl/pfail24.in
new file mode 100644
index 00000000000..dea06b53d9e
--- /dev/null
+++ b/regress/sbin/pfctl/pfail24.in
@@ -0,0 +1,11 @@
+rdr-anchor test1 proto udp from port 80 to any
+rdr-anchor test2 proto udp to port { 80, 22 }
+rdr-anchor test3 proto tcp from port www
+rdr-anchor test4 proto tcp from any to port { www, ssh }
+rdr-anchor test5 proto udp to port != 80
+rdr-anchor test6 proto tcp from any to port >= ssh
+binat-anchor test7 proto { tcp, udp }
+binat-anchor test8 from 127.0.0.1 to any
+binat-anchor test9 to localhost
+binat-anchor test10 from any port 23 to any
+binat-anchor test11 from any to port { telnet, ssh }
diff --git a/regress/sbin/pfctl/pfail24.ok b/regress/sbin/pfctl/pfail24.ok
new file mode 100644
index 00000000000..f12590db67c
--- /dev/null
+++ b/regress/sbin/pfctl/pfail24.ok
@@ -0,0 +1,12 @@
+stdin:1: source port parameter not supported in rdr-anchor
+stdin:2: destination port list expansion not supported in rdr-anchor
+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
+stdin:6: destination port operators not supported in rdr-anchor
+stdin:7: proto list expansion not supported in binat-anchor
+stdin:8: fromto parameter not supported in binat-anchor
+stdin:9: fromto parameter not supported in binat-anchor
+stdin:10: fromto parameter not supported in binat-anchor
+stdin:11: fromto parameter not supported in binat-anchor
+pfctl: Syntax error in file: pf rules not loaded