summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf36.in
blob: bc7d7c7b884508787d601b0526b5895dd7431810 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# test nat pools syntax

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

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