- Create a table named nat with the ip address family:
nft add table ip nat
- Add the prerouting and postrouting chains to the table:
nft -- add chain ip nat prerouting { type nat hook prerouting priority -100 \; }
nft add table ip nat
nft -- add chain ip nat prerouting { type nat hook prerouting priority -100 \; }