Skip to content

Instantly share code, notes, and snippets.

@JensVerneuer
Created April 20, 2017 11:34
Show Gist options
  • Select an option

  • Save JensVerneuer/e9ec4b6b666767d3771bb09a2ae9a98e to your computer and use it in GitHub Desktop.

Select an option

Save JensVerneuer/e9ec4b6b666767d3771bb09a2ae9a98e to your computer and use it in GitHub Desktop.
reroute port 9000 to 80 using iptables
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 9000
iptables-save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment