Apex › Security & web

SSH tunneling & port forwarding (-L / -R / -D)

The tunnel forms everyone confuses. A forward is named for where the listening port opens: -L on your machine (the far end makes the last hop — reach a service the server can see but you can’t); -R on the server (a reverse tunnel that publishes your local app); -D a local SOCKS proxy. Pick a goal and a flag and watch the listener open on one side, the hop path through the encrypted channel, and whether it works — pick the wrong flag and the listener lands on the wrong side.

More in Security & web