Great work by Linmiao Xu:
SSH tunnels are encrypted TCP connections between SSH clients and servers that allows traffic entering one side of the tunnel to transparently exit through the other.
This page explains use cases and examples of SSH tunnels while visually presenting the traffic flows.
Also comes with the commands … handy!
A visual guide to SSH tunnels →
To make a local server available to the outside world you could use a service like
xip.io. Only problem is that
xip.io doesn’t play that nice with firewalls and stuff like that.
Recently I used
ngrok to solve just that. When started the app creates a tunnel to the
ngrok servers, and makes your local server accessible via a (temporary) public URL.
Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall.
Installation possible via Homebrew Cask:
brew cask install ngrok
ngrok – Public URLs for exposing your local web server →