summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pfail49.in
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-01-27 15:30:36 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-01-27 15:30:36 +0000
commitdb2e8509fd98c86caac96035652519f2d162f283 (patch)
treecf2c450fd27063a3610a0829c35567d866eb39c1 /regress/sbin/pfctl/pfail49.in
parent711496cca72868b66c8a2e3b107af235e483e5ab (diff)
dynamic interface names must start with a letter. catches the nonsensical
"(10.1.2.3)" that results from a simple typo like "$(ext_ip)" instead of "$(ext_if)".
Diffstat (limited to 'regress/sbin/pfctl/pfail49.in')
-rw-r--r--regress/sbin/pfctl/pfail49.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pfail49.in b/regress/sbin/pfctl/pfail49.in
new file mode 100644
index 00000000000..c5556e71f30
--- /dev/null
+++ b/regress/sbin/pfctl/pfail49.in
@@ -0,0 +1,10 @@
+# dynamic interfaces need not exist at load-time, but names must start
+# with a letter. catches common macro typo cases of ($ext_ip) vs. ($ext_if)
+
+nat on lo0 from any to any -> (lo0)
+nat on lo0 from any to any -> (lo0:0)
+nat on lo0 from any to any -> (nonexistant0)
+nat on lo0 from any to any -> (nonexistant0:0)
+nat on lo0 from any to any -> (10.1.2.3)
+nat on lo0 from any to any -> (10.1.2.3:0)
+