Developer Hosts Personal Website for Free Using Cloudflare Tunnel Behind CGNAT
A developer successfully self-hosted a website from a personal server sitting behind Carrier-Grade NAT (CGNAT) without paying for cloud hosting. The solution involved using Cloudflare Tunnel, which routes incoming internet traffic through an outbound connection the server itself initiates to Cloudflare, bypassing CGNAT restrictions. The setup relied heavily on Docker to manage components including Cloudflare Tunnel, Nginx, and PostgreSQL. A temporary Cloudflare-provided URL confirmed the site was publicly accessible, though the developer noted a custom domain would be needed for a permanent, controllable address. Throughout the project, the developer gained hands-on experience with Linux, Docker, networking, SSH, and Cloudflare — all without spending money on hosting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in