I have a machine on DigitalOcean with a firewall set to allow connections only on ports 443 and 22 from specific IP addresses. The connection on port 443 leads to my Zabbix web page. After transferring my domain to Cloudflare and enabling the Cloudflare proxy feature, my website stopped working, even though I was connecting from an IP address on the allowlist. When I disable the proxy, the website works fine again. I tried adding Cloudflare’s IP addresses to the allowlist for ports 80 and 443, but the issue persists. Could you please help me understand what might be causing this issue and suggest possible solutions? I appreciate your assistance. Thank you.
What steps have you taken to resolve the issue?
I added Cloudflare’s IPv4 addresses to the inbound allowlist for ports 80 and 443 on my machine.
What feature, service or problem is this related to?
This would be a lot easier if you shared the error message you see when opening your website via Cloudflare. “Stopped working” is not a helpful description of the problem.
Thank you for your reply. I will pay more attention to this part. I noticed that the status code is 301, and there are continuous redirect requests, causing the browser to display “too many redirects,” but in fact, the redirection is not successful.
I checked my nginx configuration, and only port 80 should be redirected to 443.
Thank you for your reply. I also tried adding IPv6 to my inbound allowlist. Despite adding both rules for ports 80 and 443, it still shows that the webpage cannot function properly and displays “doubun.cc redirected you too many times. Please try deleting your cookies. ERR_TOO_MANY_REDIRECTS.”