Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense + HAProxy + Cloudflare: getting 522&503 errors and DNS host override not working

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 485 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cribbageSTARSHIP
      last edited by

      Good day,

      ​

      I'm having having a hell of a time getting my setup to work. I was able to get to nextcloud when I used cloudflare tunnels, but I had to switch from their tunnels as they have a max file upload size of 100mb. So since I use pfsense I might as well use HAPoxy and use that much like I used to use NginX and Lets Encrypt.

      ​

      I'm pulling out my hair here. If I set my SSL/TLS encryption mode on cloudflare to Flexible and go to my https dot com I get a "Connection timed out Error code 522". If I set the SSL/TLS encryption mode on cloudflare to Full it says "503 Service Unavailable. No server is available to handle this request."

      ​

      If I use my local ip I can access this just fine.

      ​

      -My DNS host override is not working either. Using the dig command returns the cloudflare server ip rather than the local server ip ive set.
      -I had switched from ISC to Kea due to the warning, but switched back this morning after reading this
      -Under diagnostics, the DNS lookup returned an A record for the local IP of my nextcloud machine. ping and traceroute also returned a connection to that local server.

      ​

      I've used the following videos:

      Raid Owl

      Lawrence systems

      ​

      Please Help

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @cribbageSTARSHIP
        last edited by

        @cribbageSTARSHIP said in Pfsense + HAProxy + Cloudflare: getting 522&503 errors and DNS host override not working:

        I'm pulling out my hair here. If I set my SSL/TLS encryption mode on cloudflare to Flexible and go to my https dot com I get a "Connection timed out Error code 522". If I set the SSL/TLS encryption mode on cloudflare to Full it says "503 Service Unavailable. No server is available to handle this request."

        If these settings have any impact on the connection, I assume that it still goes over Cloudflare.

        Consider the DNS cache.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.