Skip to content

Instantly share code, notes, and snippets.

@pedropapa
Created February 16, 2017 19:47
Show Gist options
  • Save pedropapa/20f1e5a7569b844b06fb9c496815b053 to your computer and use it in GitHub Desktop.
Save pedropapa/20f1e5a7569b844b06fb9c496815b053 to your computer and use it in GitHub Desktop.
Redirect lan port to internal IP (macOS)
1. Go to system preferences > sharing.
2. Enable remote login.
3. Execute the following command on terminal: ssh -L lan_ip:lan_port:redirect_ip:redirect_port -N 127.0.0.1
4. Example: ssh -L 192.168.200.120:10000:mma-hmg:80 -N 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment