Cannot get my Ubuntu server online via Cloudflare?
I'm trying to get my Cloudflare server online. Via Cloudflare, I have added an A record to my public IP (which btw leads to my router on my network) and then in my modem, I set the Internal host IP address to my server's private IP which does open fine when connected to my network (ends in a one digit number btw).
Does anybody know why I could be getting the 522 issue?
3 Replies
Your A record must point to the server's public IP address, CF will proxy only http/https ports (https://developers.cloudflare.com/fundamentals/reference/network-ports/) to your IP.
If you want to expose your server's IP you can disable CF Proxy (cloud icon next to your DNS record), in that case all ports can be used.
Cloudflare Docs
Network ports · Cloudflare Fundamentals docs
Learn which network ports Cloudflare proxies by default and how to enable Cloudflare’s proxy for additional ports.
That’s what I’m doing
What happens if you visit the public IP directly? Is it using port 443?