Sharing port forwarding within local network
For security, other computers in local network are unable to access the port forwarding created on your Mac by default. But sometimes you may want to share the tunnels within trusted network.
In the command line era, you could achieve this with the “ -g” flag or bind to all interface (0.0.0.0) explicitly:
ssh -g -D 7070 firstname.lastname@example.org # or ssh -L 0.0.0.0:8080:localhost:8080 email@example.com
While in SSH Tunnel, you can simply set "bind_address" to asterisk mark "*", tells SSH Tunnel bound to all network interfaces of this Mac:
Then all other computers in the same network could use your tunnels through the LAN address or hostname (Yangs-Macbook.local in my case).
⚠️ Use this feature carefully, and make sure you are in trusted network.