Network security#14
Zero Trust: Cloudflare Tunnel & Access
My self-hosted services published without a single inbound port: an outbound tunnel to Cloudflare, and an identity check in front of every admin interface.
Year2026
RoleArchitecture & migration
- 0 inbound ports
- Identity before access
- WAF + rate limiting
Problem
Publishing a service hosted at home meant forwarding port 443 to the reverse proxy: the public address stayed a direct target for scanners, and admin interfaces were only protected by their own password.
Solution
A cloudflared connector, in a container, opens an outbound connection to Cloudflare, which routes each hostname straight to its service. Cloudflare Access requires authentication before reaching sensitive interfaces, with a public exception limited to the bare minimum. The WAF blocks known scan paths and rate-limits login pages. The port 443 forward is closed.
Outcome
No inbound port left for published services, a verified identity in front of every admin interface, and attacks stop at Cloudflare instead of reaching home.
000
inbound ports for services
222
barriers: identity, then service
Key steps
- 01
Inventory of published services and who needs to reach them
- 02
cloudflared connector in a container: outbound connection only
- 03
Tunnel routes: one hostname, one service
- 04
Access policies on admin interfaces, minimal public exception
- 05
WAF rules (scan paths) and rate limiting on login pages
- 06
Port 443 forward closed, then tested from 4G
In the notebook
Stack
Cloudflare TunnelCloudflare AccessWAFDockerTLS Full (strict)