Created
December 29, 2023 09:50
-
-
Save johanek/fcfa81e5b0c6d6ca8c0b7c79425d884e to your computer and use it in GitHub Desktop.
nftables nat tftp
This file contains 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
table ip nat { | |
chain prerouting { | |
type nat hook prerouting priority dstnat; policy accept; | |
} | |
chain postrouting { | |
type nat hook postrouting priority srcnat; policy accept; | |
oifname "eth0" masquerade | |
} | |
} |
This file contains 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
tftp helper: modprobe nf_nat_tftp | |
connection tracking: conntrack -L -o id,extended |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment