summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/pfctl/Makefile4
-rw-r--r--regress/sbin/pfctl/pf36.in17
-rw-r--r--regress/sbin/pfctl/pf36.ok14
3 files changed, 33 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index 99c9771e74f..8cf69711318 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.44 2002/11/27 19:00:21 henning Exp $
+# $OpenBSD: Makefile,v 1.45 2002/11/28 12:44:42 mcbride Exp $
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
+PFTESTS+=28 29 30 31 32 33 34 35 36
PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
PFSIMPLE=1 2
PFSETUP=1
diff --git a/regress/sbin/pfctl/pf36.in b/regress/sbin/pfctl/pf36.in
new file mode 100644
index 00000000000..7739ec0209b
--- /dev/null
+++ b/regress/sbin/pfctl/pf36.in
@@ -0,0 +1,17 @@
+# test nat pools syntax
+
+nat on lo0 from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 }
+nat on lo0 from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin
+nat on lo0 from any to 127.0.0.1 -> lo0/24 bitmask
+nat on lo0 from any to 127.0.0.1 -> lo0/24 random
+nat on lo0 from any to lo0 -> 127.0.0.1/24 source-hash 0x0123456789ABCDEF0123456789abcdef
+nat on lo0 from any to 127.0.0.1 -> lo0/24 source-hash foobarlicious
+nat on lo0 from any to 127.0.0.1 -> lo0/24 round-robin
+
+rdr on lo0 from any to lo0 -> { 127.0.0.1, 127.0.0.2 }
+rdr on lo0 from any to lo0 -> { 127.0.0.1, 127.0.0.2 } round-robin
+rdr on lo0 from any to lo0 -> 127.0.0.1/24 bitmask
+rdr on lo0 from any to lo0 -> 127.0.0.1/24 random
+rdr on lo0 from any to 127.0.0.1 -> lo0/24 source-hash 0x0123456789ABCDEF0123456789abcdef
+rdr on lo0 from any to lo0 -> 127.0.0.1/24 source-hash foobarlicious
+rdr on lo0 from any to lo0 -> 127.0.0.1/24 round-robin
diff --git a/regress/sbin/pfctl/pf36.ok b/regress/sbin/pfctl/pf36.ok
new file mode 100644
index 00000000000..9034890d0fd
--- /dev/null
+++ b/regress/sbin/pfctl/pf36.ok
@@ -0,0 +1,14 @@
+nat on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin
+nat on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin
+nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 bitmask
+nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 random
+nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x0123456789ABCDEF0123456789ABCDEF
+nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x93E3A84D77F522FDF7FD6C42B0D352FE
+nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 round-robin
+rdr on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin
+rdr on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin
+rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 bitmask
+rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 random
+rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x0123456789ABCDEF0123456789ABCDEF
+rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x93E3A84D77F522FDF7FD6C42B0D352FE
+rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 round-robin