Professional domain setup with Cloudflare protection for home servers
This guide walks you through setting up a professional custom domain for your home server using Cloudflare's proxy protection. You'll learn to hide your real IP address, implement enterprise-grade security, and create a robust hosting solution that rivals commercial providers.
In your Cloudflare DNS dashboard:
@
(this represents the root domain)XXX.XXX.XXX.XXX
(your current public IP)For services like lab.your-domain.com
:
lab
XXX.XXX.XXX.XXX
Configure UFW to deny direct access to your server:
Only allow Cloudflare's servers to access your web services:
Cloudflare IP ranges can change, so create an update script:
Look for any rules allowing SSH from "Anywhere" - these need to be removed.
If you see rules like "22/tcp ALLOW IN Anywhere", remove them:
Ensure SSH (port 22) is only allowed from specific IP ranges, not "Anywhere".
https://your-domain.com
in a browserWhat you've achieved:
your-domain.com
) hosted from homeAll traffic proxied through Cloudflare for maximum security.
You've successfully implemented a professional-grade hosting solution that rivals commercial providers. This setup demonstrates advanced skills in: