Skip to content

Instantly share code, notes, and snippets.

@rgbkrk
Created October 31, 2013 21:42
Show Gist options
  • Save rgbkrk/7257691 to your computer and use it in GitHub Desktop.
Save rgbkrk/7257691 to your computer and use it in GitHub Desktop.
Forward a port to port 80 using iptables
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000
iptables-save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment