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

    HAProxy - Ajuda com múltiplos sites HTTPS

    Scheduled Pinned Locked Moved Portuguese
    2 Posts 2 Posters 965 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.
    • S
      schimmelpfeng
      last edited by

      Boa tarde,

      Tenho o HAProxy rodando no meu PFSense redirecionando o trafego HTTP para os servidores da minha empresa normalmente.
      Mas quando tento fazer esse redirecionamento para sites HTTPS dentro da minha empresa, não funciona.
      Alguém já passou por isso?

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

        Sorry to answer in English. (google translate if needed, i did  ;) http://translate.google.com/translate?sl=en&tl=pt&u=https%3A%2F%2Fforum.pfsense.org%2Findex.php%3Ftopic%3D73681.0)

        When you need to use SSL and need to do 'smart' things with it you need at least the haproxy-devel package which contains haproxy1.5. As 1.4 does not have any ssl specific options.

        If you want to let haproxy listen on port 443 then you need to configure it with mode 'https' or use 'http' and configure ssl-offloading on the frontend. For the backend again there is a ssl checkbox to tell if the backend is speaking ssl or not.

        If you want to use mode 'https' and let haproxy move the traffic like plain tcp traffic you only have SNI available for making multiple sites available with acl's.
        If you use mode 'http' with ssl offloading, you have all host headers and other acl matching options available. But you need to configure the certificates to use on haproxy config pages(load them first in the certificate manager of pfSense).

        Hope this helps :).

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