Skip to content

Instantly share code, notes, and snippets.

@Nimdis
Created April 22, 2016 05:32
Show Gist options
  • Save Nimdis/a3c0db16801cd6343bfa4690dd59b2de to your computer and use it in GitHub Desktop.
Save Nimdis/a3c0db16801cd6343bfa4690dd59b2de to your computer and use it in GitHub Desktop.
lxc port forwarding
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment