Skip to content

Instantly share code, notes, and snippets.

@charud
Created August 4, 2012 22:32
Show Gist options
  • Save charud/3260379 to your computer and use it in GitHub Desktop.
Save charud/3260379 to your computer and use it in GitHub Desktop.
Forward port 80 to port 8080 with iptables
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment