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

    consider configure haproxy to preffer hardware cryptos?

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 2 Posters 683 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
      planetinse
      last edited by planetinse

      Is is possible to get haproxy "preffer" or enforce negotiation of hardware supported cryptos only - or is it a waste of time?

      I have a LOT of SNI rules / offloading of TLS traffic and these is supported by my server according to pfsense

      Hardware crypto ;
      AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS

      or is even HAproxy using this?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @planetinse
        last edited by

        Yes you can configure what ciphers haproxy offers if your doing ssl offload..

        https://www.haproxy.com/documentation/aloha/latest/traffic-management/lb-layer7/tls/

        There is for sure reasons to offer specific ciphers over other ciphers.. Set min tls level, etc. Not sure if hardware crypto your box supports is going to make any real difference... Unless your serving up a lot of traffic?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        P 1 Reply Last reply Reply Quote 0
        • P
          planetinse @johnpoz
          last edited by planetinse

          @johnpoz starting to see high cpu usage so just thinking of what options do I have, seems haproxy is a single cpu/single thread thing (if you want it to work stable) so scaling with more cpu is'nt going to help me.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @planetinse
            last edited by

            @planetinse I have mine set for security reasons.. And you can verify with say https://www.ssllabs.com/ssltest/

            Keep in mind getting too restrictive on the ciphers that can be used - could cause issues with some clients..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            P 1 Reply Last reply Reply Quote 0
            • P
              planetinse @johnpoz
              last edited by

              @johnpoz Yes i have that approach so far to to get A rating, but was considering to reduce them to the hardware supported ones only.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @planetinse
                last edited by johnpoz

                Well you could give it a shot, and see if you have any issues reported by clients..

                Yeah I went through the whole security thing awhile back, there is a thread around here about it somewhere - wanted to get A+, and discovered that if you only allow for tls 1.3, that ssllabs will only give you a A vs A+ ;)

                edit: here is that thread
                https://forum.netgate.com/topic/162125/get-a-on-ssl-labs-test

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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