Security

Cloudflared - Expose local services through an outbound tunnel

securityself-hostednetworkingtunnel

Port forwarding is the usual answer to remote access, and also the thing you forget to lock down. Cloudflared connects outward to Cloudflare’s edge, then routes requests back to a local service over that tunnel. No inbound port has to be opened on the router, and access rules can sit in front of the hostname. It works well for a dashboard on a home server, a staging site, or a service behind a restrictive ISP. You still need to decide who can reach the hostname; an unauthenticated tunnel is simply a public site with extra steps. Configuration lives in a small config file and a tunnel credential, so backups matter. For one or two services, it removes a lot of router fiddling.

Links

Alternatives

  • Tailscale Funnel: Good for sharing a device on your tailnet publicly, with a different setup and model.
  • ngrok: Very convenient for temporary URLs, closed source with paid plans for stable hostnames.
  • frp: Flexible reverse proxy with many transport options, but you run the server side yourself.
  • WireGuard: Better for private access to a whole network than publishing one web app.