Skip to content

Instantly share code, notes, and snippets.

@dozoisch
Last active August 29, 2015 13:56
Show Gist options
  • Save dozoisch/8928125 to your computer and use it in GitHub Desktop.
Save dozoisch/8928125 to your computer and use it in GitHub Desktop.
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
sudo sh -c "iptables-save > /etc/iptables.rules"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment