Last active
March 8, 2022 16:52
-
-
Save vpetrigo/035e6732b8c432bcc04a74bb9fbdc1a1 to your computer and use it in GitHub Desktop.
nft util masquerade rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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