Skip to content

Instantly share code, notes, and snippets.

@nyrahul
Created March 4, 2018 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyrahul/646e025f26d85f1f050a01193dff2f5d to your computer and use it in GitHub Desktop.
Save nyrahul/646e025f26d85f1f050a01193dff2f5d to your computer and use it in GitHub Desktop.
ssh -L 4000:192.168.56.102:80 127.0.0.1
# 4000 = Remote port
# 192.168.50.102 = Remote IP
# 80 = Local port
# 127.0.0.1 = Local IP
What this means?
Whatever packets come to 127.0.0.1:80 forward it to 192.168.56.102:4000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment