summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/rdr1.in
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sbin/pfctl/rdr1.in')
-rw-r--r--regress/sbin/pfctl/rdr1.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/regress/sbin/pfctl/rdr1.in b/regress/sbin/pfctl/rdr1.in
index 1eb062750cd..2a261c24d9c 100644
--- a/regress/sbin/pfctl/rdr1.in
+++ b/regress/sbin/pfctl/rdr1.in
@@ -1 +1,9 @@
-rdr on ne0 proto tcp from any to 1.2.3.4/32 port 2222 -> 10.0.0.10 port 22
+EVIL = "lo0"
+GOOD = "{ lo0, lo1 }"
+GOOD_NET = "{ 127.0.0.0/24, 10.0.1.0/24 }"
+DEST_NET = "{ 1.2.3.4/25, 2.4.6.8/30 }"
+
+rdr on lo0 proto tcp from any to 1.2.3.4/32 port 2222 -> 10.0.0.10 port 22
+
+# Test list processing
+rdr on $GOOD proto tcp from $GOOD_NET to $DEST_NET port 21 -> 127.0.0.1 port 8021