Skip to content

Instantly share code, notes, and snippets.

@freebeans
Created August 27, 2018 13:38
Show Gist options
  • Save freebeans/d923d44d2303fa78c64302c763bf629e to your computer and use it in GitHub Desktop.
Save freebeans/d923d44d2303fa78c64302c763bf629e to your computer and use it in GitHub Desktop.
Re-route incoming requests on port 80 to port 8080 (or any other)
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment