Cloudflare and HAProxy, 522 error - how solve this?
-
So all is up and running, but when my domains get resolved, I get the Cloudflare IP for where my services and that is not correct.
I am using proxied dns, to add a layer of security. I have found lots of solutions but I am not sure that none of them are for my issue (adding all CF IPs, and adding that to a frontend).So what am I trying to do?
browser -> service.domain.io -> Cloudlfare
Cloudflare -> finds domain -> returns Cloudflare IPMy service is not at that IP... how do I get this to work?
-
@swemattias said in Cloudflare and HAProxy, 522 error - how solve this?:
So all is up and running, but when my domains get resolved, I get the Cloudflare IP for where my services and that is not correct.
So your Cloudflare DNS is configured the CF proxy.
Configure it to point to your IP.
That's not something, which can be solved on pfSense. -
@viragomann I must have not made what I wrote Crystal clear.
Pfsense + haproxy is working, haproxy has my true wan ip but when it tries to send it to CF it gets the proxied ip back.Or the error is Connection time out, 522. When trying to reach a service.