babel-tester/firewall/nat.conf
Yohann D'ANELLO 4389fb0e6f 🎉 First working proof of concept
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-05-31 11:14:16 +00:00

17 lines
318 B
Plaintext
Executable File

#!/usr/sbin/nft -f
flush ruleset
table ip nat {
chain prerouting {
type nat hook prerouting priority 0; policy accept;
}
chain postrouting {
type nat hook postrouting priority 0; policy accept;
ip saddr 10.2.1.0/30 masquerade;
ip saddr 172.17.0.0/16 masquerade;
}
}