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

    haproxy not responding

    Scheduled Pinned Locked Moved Cache/Proxy
    10 Posts 2 Posters 355 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.
    • T
      toddehb
      last edited by toddehb

      Hi,

      watched Lawrence's Video on YT on how to setup haproxy. No chance. My Pfssense is in Datacneter with public an private IP. Private IP is connected to the actual backend Server with Apache2, Postfix etc. Before haproy tunred on I used NAT to reach Apache2 on port 443. For testing I turned NAT off. Here are my settings:

      acme.png

      settings.png

      frontend.png

      backend.png

      stats.png

      fw_rule3333.png

      ping.png

      ping_from_client.png

      browser.png

      Apache2 has Let's encrypt cert attached. I have no clue what is going wrong. Apache logs just show this:

      apache_access_log.png

      Please help me out. Thanks.

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

        @toddehb
        Did you add the SSL certificate to the frontend?

        Then type "https://" in the browsers address line in front of the host name.

        T 1 Reply Last reply Reply Quote 0
        • T
          toddehb @viragomann
          last edited by

          @viragomann

          Yes, cert from acme is in frontend and https is implied resp. explicitly written. Tried several browsers, same result.

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

            @toddehb
            I've no doubt, that your browser tries to connect to the URL you've entered. But did you enter it correctly?

            T 1 Reply Last reply Reply Quote 0
            • T
              toddehb @viragomann
              last edited by

              @viragomann said in haproxy not responding:

              @toddehb
              I've no doubt, that your browser tries to connect to the URL you've entered. But did you enter it correctly?

              😉 absolutely

              1 Reply Last reply Reply Quote 0
              • T
                toddehb
                last edited by

                I played arround with frontend settings

                b939e856-329a-4644-83fb-ea5da501f4ed-grafik.png

                Just changed to "Host matches" Now my browser is giving me this:

                4ed530c8-619d-4183-a7cf-1fdc5454fd64-grafik.png

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

                  @toddehb
                  Means, HAproxy has no idea, what to do with your request.

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    toddehb @viragomann
                    last edited by

                    @viragomann said in haproxy not responding:

                    @toddehb
                    Means, HAproxy has no idea, what to do with your request.

                    I got it working when setting "use default" backend. Looks like haproxy has problem with the match parameters.

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

                      @toddehb said in haproxy not responding:

                      Looks like haproxy has problem with the match parameters.

                      Which one?

                      "host starts with" and "host matches" are different conditions. The first expects the beginning part of the host name, the latter the whole.

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        toddehb @viragomann
                        last edited by

                        @viragomann

                        "Host Matches" in my Case works only when also setting to "use defaults"

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