blob: 7071f84384745149d4c86652491f7ef9320e8354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
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
|