Shaf Lab

Secure tunnels

Outbound connections that expose a local service without opening inbound ports.

A secure tunnel exposes a local service through an outbound, encrypted connection so you do not have to open an inbound port on the public internet. Cloudflare Tunnel is a well-known example: a process on your machine connects out to the edge, and the edge presents a hostname that routes back to you. This is a comfortable way to show a preview, reach a home lab, or put an internal tool behind a real URL.

The tunnel should be authenticated at the edge and limited to the service you meant to publish. A tunnel that forwards your entire machine is a liability. Pair it with an access policy, short-lived credentials, and a hostname you can revoke.

Tunnels are not a full private network. If many machines need to talk to each other, a mesh VPN may be the better shape. If you only have one origin and a set of users, a tunnel plus identity is often simpler.

Treat the connector as production software: it should start on boot if the service is meant to stay up, log failures, and be easy to rotate. A tunnel that only works when your laptop lid is open is a demo, not a path.