Skip to content

Instantly share code, notes, and snippets.

@johanek
Created December 29, 2023 09:50
Show Gist options
  • Save johanek/fcfa81e5b0c6d6ca8c0b7c79425d884e to your computer and use it in GitHub Desktop.
Save johanek/fcfa81e5b0c6d6ca8c0b7c79425d884e to your computer and use it in GitHub Desktop.
nftables nat tftp
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
}
}
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