Skip to content

Instantly share code, notes, and snippets.

@migounette
Created April 23, 2024 10:23
Show Gist options
  • Save migounette/d84977ea06dda4088336bb7f2ef92084 to your computer and use it in GitHub Desktop.
Save migounette/d84977ea06dda4088336bb7f2ef92084 to your computer and use it in GitHub Desktop.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment