Files
dsfin-ansible/roles/ap/files/nft-rules-nat
2019-10-04 13:36:01 -04:00

7 lines
241 B
Bash

#!/bin/bash
nft add table ip nat
nft add chain ip nat prerouting { type nat hook prerouting priority 0 \; }
nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; }
nft add rule nat postrouting oifname eth0 masquerade