Skip to content

Instantly share code, notes, and snippets.

@vpetrigo
Last active March 8, 2022 16:52
Show Gist options
  • Save vpetrigo/035e6732b8c432bcc04a74bb9fbdc1a1 to your computer and use it in GitHub Desktop.
Save vpetrigo/035e6732b8c432bcc04a74bb9fbdc1a1 to your computer and use it in GitHub Desktop.
nft util masquerade rule
# eth0 interface to allow masquerading
nft add table ip nat
nft add 'chain ip nat postrouting { type nat hook postrouting priority 100 ; }'
nft add rule nat postrouting oif eth0 masquerade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment