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

    [SOLVED] HAProxy Deleting ACL on modify - Bug or am I missing something?

    Scheduled Pinned Locked Moved pfSense Packages
    15 Posts 2 Posters 1.9k 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.
    • P
      PiBa @coatmaker618
      last edited by

      @coatmaker618
      'ssl/https' is also a TCP kinda frontend, when looking from haproxy.cfg config perspective, so the host header cannot be inspected there..

      1- why not use type 'HTTP'? Seems to me it fits the http traffic requirement nicely ;).

      2- For SSL its impossible to see the host-header as that header is part of the HTTP-protocol-level-traffic which is encrypted, meaning you cannot read it unless you decrypt it, which needs the certificates and negotiated keys there. You can usually use SNI to point traffic for different domain-names to different servers though..

      1 Reply Last reply Reply Quote 0
      • C
        coatmaker618
        last edited by coatmaker618

        @PiBa the part that concerned me about type "HTTP" is that it's listed as "HTTP/HTTPS (offloading" and it's that offloading that I'm concerned about. If that's misguided I will happily change it.

        When you say "For SSL its impossible to see the host-header as that header is part of the HTTP-protocol-level-traffic which is encrypted, meaning you cannot read it unless you decrypt it"

        Ok then maybe Host-Header isn't the right requirement if that requires decryption? I may well be saying the wrong things as I'm mostly clueless >_> But surely the internet somehow knows to route HTTPS traffic so there must be some way I can forward/route/direct/whatever HTTPS request based on the subdomain in the requested URL without HAProxy needing to have the cert.

        P 1 Reply Last reply Reply Quote 0
        • P
          PiBa @coatmaker618
          last edited by

          @coatmaker618

          I understood your first frontend listens on :80 ? If so type 'HTTP/HTTP(offloading)' would be the correct choice.

          For your second frontend on :443, you can use 'SNI' meaning use the acl choice for "Server Name Indication".

          C 1 Reply Last reply Reply Quote 1
          • C
            coatmaker618 @PiBa
            last edited by coatmaker618

            @PiBa said in HAProxy Deleting ACL on modify - Bug or am I missing something?:

            I understood your first frontend listens on :80 ? If so type 'HTTP/HTTP(offloading)' would be the correct choice.

            BAM! Nailed it (for HTTP)! I need to add a 2nd server to be 100% sure but this seems to work perfectly right now :) Thank you :)

            @PiBa said in HAProxy Deleting ACL on modify - Bug or am I missing something?:

            For your second frontend on :443, you can use 'SNI' meaning use the acl choice for "Server Name Indication".
            As for HTTPS, not so much. First question, should that be set to offloading too or keep it at https?

            Second Question (assuming https NOT offloading for 1st question): The only SNI options I see are "SNI TLS extension". If I go for matched/contains how much of a full URL does that include?

            P 1 Reply Last reply Reply Quote 0
            • P
              PiBa @coatmaker618
              last edited by

              @coatmaker618
              The SNI TLS extension only contains the hostname, and sometimes the port.. so 'www.domain.tld' or 'www.domain.tld:443' could be send in there depending on the client and actual port used..

              C 1 Reply Last reply Reply Quote 0
              • C
                coatmaker618 @PiBa
                last edited by coatmaker618

                @PiBa that was my guess, but that's strange. Because typing in the FQDN (https://subdomain.mydomain.com) takes me to an apache landing page (which is correct, though admittedly not unique). But typing in (https://subdomain.mydomain.com/folder) seems to hang.....

                update: Chrome reports "ERR_EMPTY_RESPONSE"

                P 1 Reply Last reply Reply Quote 0
                • P
                  PiBa @coatmaker618
                  last edited by

                  @coatmaker618
                  Hmm thats a bit strange.. can you check in chrome developer network window the network-requests and check the 'preserve log' checkbox..
                  I wonder if perhaps its sending a redirect for your folder request to some unexpected (direct) location.?.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    coatmaker618
                    last edited by coatmaker618

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • C
                      coatmaker618 @PiBa
                      last edited by

                      @PiBa I PMed you. Check that & we'll go from there.

                      1 Reply Last reply Reply Quote 0
                      • C
                        coatmaker618
                        last edited by

                        It's working!! Everything above was enough to get HAProxy working. The rest was issues with the services (moving around on the network was part of the issue, but not all of it).

                        @PiBa THANK YOU!!!!

                        1 Reply Last reply Reply Quote 0
                        • C
                          coatmaker618
                          last edited by

                          Now, final order of business, is there a "mark as solved" button or do I just rename the topic to include the word solved?

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            PiBa @coatmaker618
                            last edited by

                            @coatmaker618
                            Indeed just rename the topic. There is no 'solved' button.

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