Skip to content

Instantly share code, notes, and snippets.

@jahewson
Created November 17, 2011 19:13
Show Gist options
  • Save jahewson/1374131 to your computer and use it in GitHub Desktop.
Save jahewson/1374131 to your computer and use it in GitHub Desktop.
Linux kernel firewall: forward port 80 to port 8080
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