From 2306892e8c735d33a8ee0268bfc4acd1ab4a3e46 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 2 Sep 2009 17:25:47 +0000 Subject: convert a bunch of rdr/nat rules to the new syntax Things still need to be changed for route-to/binat/command line options among other things. ok henning --- regress/sbin/pfctl/pf36.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'regress/sbin/pfctl/pf36.in') diff --git a/regress/sbin/pfctl/pf36.in b/regress/sbin/pfctl/pf36.in index 7071f843847..bc7d7c7b884 100644 --- a/regress/sbin/pfctl/pf36.in +++ b/regress/sbin/pfctl/pf36.in @@ -1,17 +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 static-port -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 +match out on lo0 from any to 127.0.0.1 nat-to { 127.0.0.1, 127.0.0.2 } +match out on lo0 from any to 127.0.0.1 nat-to { 127.0.0.1, 127.0.0.2 } round-robin +match out on lo0 from any to 127.0.0.1 nat-to lo0/24 bitmask static-port +match out on lo0 from any to 127.0.0.1 nat-to lo0/24 random +match out on lo0 from any to lo0 nat-to 127.0.0.1/24 source-hash 0x0123456789ABCDEF0123456789abcdef +match out on lo0 from any to 127.0.0.1 nat-to lo0/24 source-hash foobarlicious +match out on lo0 from any to 127.0.0.1 nat-to 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 +match in on lo0 from any to lo0 rdr-to { 127.0.0.1, 127.0.0.2 } +match in on lo0 from any to lo0 rdr-to { 127.0.0.1, 127.0.0.2 } round-robin +match in on lo0 from any to lo0 rdr-to 127.0.0.1/24 bitmask +match in on lo0 from any to lo0 rdr-to 127.0.0.1/24 random +match in on lo0 from any to 127.0.0.1 rdr-to lo0/24 source-hash 0x0123456789ABCDEF0123456789abcdef +match in on lo0 from any to lo0 rdr-to 127.0.0.1/24 source-hash foobarlicious +match in on lo0 from any to lo0 rdr-to 127.0.0.1/24 round-robin -- cgit v1.2.3