diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2002-11-28 12:44:43 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2002-11-28 12:44:43 +0000 |
commit | b562d2aa5e0795844dec271b5951d2cfb4b70b05 (patch) | |
tree | dd70e8dc3f1d20e0840550500bfa5e637fd652b5 /regress | |
parent | 5d70fd749f43e3bf31f76b7d833124eb424ef784 (diff) |
add regression test for nat pools
ok henning@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf36.in | 17 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf36.ok | 14 |
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 |