blob: 586f5c3f27235de10cded1d62761ad357bc89892 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
RULESET="
table inet statelessnat {
chain prerouting {
type filter hook prerouting priority -100;
ip daddr set numgen inc mod 16 map { 0-7 : 10.0.1.1, 8- 15 : 10.0.1.2 }
}
chain postrouting {
type filter hook postrouting priority 100
}
}"
exec $NFT -f - <<< "$RULESET"
|