summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-02-24 10:51:38 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-02-24 10:51:38 +0000
commit3d47a6020c360bdd1ceaa003abf7d23056528146 (patch)
treebe93bbbacc3d999992f4266ed8f8380c04f10ca3 /regress/sbin/pfctl
parent1d5023621f45107cbffde1c11d88874f1da20a70 (diff)
More illegal table constructs.
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/pfail19.in9
-rw-r--r--regress/sbin/pfctl/pfail19.ok6
2 files changed, 13 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/pfail19.in b/regress/sbin/pfctl/pfail19.in
index 79c6d0ca4e0..1d5ed147d6a 100644
--- a/regress/sbin/pfctl/pfail19.in
+++ b/regress/sbin/pfctl/pfail19.in
@@ -1,3 +1,8 @@
-# redirect to table not supported
-
+# invalid table constructs
rdr on lo0 from any to any -> <sometable>
+nat on lo0 from any to any -> <sometable>
+binat on lo0 from 1.1.1.1 to any -> <sometable>
+binat on lo0 from <sometable> to any -> 1.1.1.1
+pass in dup-to (lo0 <sometable>) all
+pass in route-to (lo0 <sometable>) all
+pass in reply-to (lo0 <sometable>) all
diff --git a/regress/sbin/pfctl/pfail19.ok b/regress/sbin/pfctl/pfail19.ok
index 9c95ad5f28d..03e3fc02e4b 100644
--- a/regress/sbin/pfctl/pfail19.ok
+++ b/regress/sbin/pfctl/pfail19.ok
@@ -1,2 +1,8 @@
+stdin:2: invalid use of table <sometable> as the redirection address of a translation rule
stdin:3: invalid use of table <sometable> as the redirection address of a translation rule
+stdin:4: invalid use of table <sometable> as the redirect address of a binat rule
+stdin:5: invalid use of table <sometable> as the source address of a binat rule
+stdin:6: invalid use of table <sometable> in a route expression
+stdin:7: invalid use of table <sometable> in a route expression
+stdin:8: invalid use of table <sometable> in a route expression
pfctl: Syntax error in file: pf rules not loaded