blob: 7739ec0209b4fddb7aa944e09407d5321a4f1135 (
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
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
|