Skip to content

Instantly share code, notes, and snippets.

@siddhuwarrier
Last active September 14, 2018 12:00
Show Gist options
  • Save siddhuwarrier/6596356 to your computer and use it in GitHub Desktop.
Save siddhuwarrier/6596356 to your computer and use it in GitHub Desktop.
Port forward from port 9000 to port 80 on an Ubuntu machine using IPtables (exposing Sonar on port 80)
# 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