Skip to content

Instantly share code, notes, and snippets.

@anubhavsinha
Created August 5, 2015 18:57
Show Gist options
  • Save anubhavsinha/1064afb82077c180953f to your computer and use it in GitHub Desktop.
Save anubhavsinha/1064afb82077c180953f to your computer and use it in GitHub Desktop.
port forwarding using iptables
sudo iptables -t nat -A PREROUTING -p tcp --dport 3000 -j DNAT --to-destination 172.17.20.158:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment