Cloudflare Tunnel
Cloudflare Tunnel is a free service that allows you to expose your local server to the internet, without having to expose your local IP address.
Additionally, it provides some protection against DDoS attacks, and allows you to use Cloudflare's other services like Access.
Setup
Make sure that you have a domain name that you can manage with Cloudflare.
From your cloudflare dashboard, navigate to
Zero Trust > Networks > TunnelsClick on
Create a tunnel, and select theClouflaredoptionFollow the intructions to install cloudflared, and create a connector on your device.
Add a hostname for your apex domain (ex:
example.com), and usehttp://localhost:7777as the origin service.
Do the same for your wildcard domain (ex:
*.example.com). You'll need to then go to the DNS configuration of your domain, and add aCNAMErecord for your wildcard hostname, with a target of<tunnel-id>.cfargotunnel.com.
Add a new
CNAMErecord for your wildcard hostname, with a target of<tunnel-id>.cfargotunnel.com.
