Self-Hoster Combines mTLS with Cloudflare Tunnels for Secure Public Access
A Reddit user in the r/selfhosted community shares a new guide on securely exposing self-hosted applications to the public internet. The setup combines mutual TLS (mTLS) with Cloudflare Tunnels, adding a strong authentication layer on top of an already popular way to publish home-hosted services without opening ports on a home router.
The author notes there are enough moving parts in the configuration that a written walkthrough seemed useful. An earlier mTLS guide circulated in the community about a year ago, but the poster apparently felt an updated or more complete resource was warranted. With mTLS, both the client and the server present certificates, meaning only devices with valid client certificates can reach the protected services.
The combination of Cloudflare Tunnels and mTLS offers self-hosters a layered approach to security: the tunnel hides the origin server's location, while mutual certificate verification blocks unauthorized access even if the public endpoint is discovered. Readers interested in hardening their own homelab deployments may find the guide's step-by-step breakdown helpful for piecing together the individual components.