Deployment Presets
Cloudflare Authenticated Origin Pulls & Strict TLS in CloudPanel
Lock down CloudPanel Nginx ports 80/443 against origin IP bypass using Cloudflare Authenticated Origin Pull certificates and real_ip restoration.
mTLS Origin Verification · Zero IP Bypass · Real Visitor IP Logs
Stopping Direct-to-Origin DDoS & Scanner Probes
Attackers frequently scan IPv4 ranges to hit origin servers directly, bypassing Cloudflare WAF rules. Enabling ssl_client_certificate with Cloudflare Origin Pull CA forces Nginx to reject unauthenticated TLS handshakes.
Restoring Visitor IPs Before Varnish & PHP
Include updated Cloudflare CIDR ranges via set_real_ip_from in /etc/nginx/conf.d/cloudflare.conf so rate limits and WooCommerce geolocation see the client IP instead of edge proxy IPs.
Measured Parameters & CloudPanel Stack Directives
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| Origin Pull mTLS | ssl_verify_client on (CF CA PEM) | Drops direct HTTP/S traffic hitting your VPS IP without Cloudflare |
| TLS Mode | Full (Strict) + 15-Yr Origin Cert | Eliminates Let's Encrypt renewal races behind Cloudflare proxy |
| Real IP Restore | CF-Connecting-IP + set_real_ip_from | Ensures Fail2ban and Nginx logs record actual visitor IPs |
| Firewall Rules | Allow CF IPv4/v6 on 443; lock 8443 | Restricts CloudPanel admin port 8443 exclusively to operator VPN/IP |