Skip to content

Instantly share code, notes, and snippets.

@zikosw
Created August 20, 2015 16:04
Show Gist options
  • Select an option

  • Save zikosw/7451b4227d31408779e8 to your computer and use it in GitHub Desktop.

Select an option

Save zikosw/7451b4227d31408779e8 to your computer and use it in GitHub Desktop.
sudo iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
sudo iptables -A FORWARD -i eth1 -o eth0 -m state -–state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment