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

    SG-1000 Hardware Crypto Acceleration - Not clear how to enable

    Scheduled Pinned Locked Moved Hardware
    10 Posts 7 Posters 3.8k 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.
    • G
      gsiemon
      last edited by

      If I understand correctly, the SG-1000 has a hardware crypto accelerator on the board.  I've recently received my unit and have been setting up a Site to Site OpenVPN connection to another pfSense box.

      Under System -> Advanced - Miscellaneous the only option under Cryptographic Acceleration is AES-NI (which isn't an option for this hardware).

      Under the Cryptographic Settings - Hardware Crypto section in the OpenVPN Server/Client settings the only option is No Hardware Crypto Acceleration.

      Is the SG-1000 Hardware Accelerator enabled out of the box without having to do anything further or is this a bug/feature still to be implemented?

      1 Reply Last reply Reply Quote 0
      • chrismacmahonC
        chrismacmahon
        last edited by

        OpenVPN would not be able to utilize crypto hardware.

        Need help fast? Our support is available 24/7 https://www.netgate.com/support/

        Do Not PM For Help!

        1 Reply Last reply Reply Quote 0
        • V
          VAMike
          last edited by

          @chrismacmahon:

          OpenVPN would not be able to utilize crypto hardware.

          Why? It certainly does on x86.

          1 Reply Last reply Reply Quote 0
          • chrismacmahonC
            chrismacmahon
            last edited by

            https://forum.pfsense.org/index.php?topic=107329.0  It looks like it was discussed here.

            Need help fast? Our support is available 24/7 https://www.netgate.com/support/

            Do Not PM For Help!

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Beyond that, there's no driver for the accelerator.

              1 Reply Last reply Reply Quote 0
              • V
                VAMike
                last edited by

                @chrismacmahon:

                https://forum.pfsense.org/index.php?topic=107329.0  It looks like it was discussed here.

                That is a very meandering and internally contradictory thread. Bottom line: crypto acceleration does work with openvpn. In most cases on modern x86 hardware it uses AES-NI and works best with no cryptodev module loaded. But for other accelerators it will use whatever cryptodev module is loaded or another engine if compiled into openssl. In most cases on modern x86 hardware the AES-NI is faster than whatever crypto card was cool 5 years ago, so there's no point in doing this.

                None of this makes any assertion of whether crypto acceleration is working on the SG-1000, only that there's no reason it wouldn't work in openvpn if built for the platform.

                1 Reply Last reply Reply Quote 0
                • PippinP
                  Pippin
                  last edited by

                  Informational:
                  http://processors.wiki.ti.com/index.php/AM335x_Crypto_Performance

                  I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                  Halton Arp

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    There's no FreeBSD driver for the crypto hardware yet so it's not used in the current 2.4 snaps.
                    That does mean there is scope for significant improvement in a future update.  ;)

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • G
                      gsiemon
                      last edited by

                      @stephenw10:

                      There's no FreeBSD driver for the crypto hardware yet so it's not used in the current 2.4 snaps.
                      That does mean there is scope for significant improvement in a future update.  ;)

                      Steve

                      Raised a feature request in redmine:  https://redmine.pfsense.org/issues/7212

                      1 Reply Last reply Reply Quote 0
                      • J
                        jwt Netgate
                        last edited by

                        @chrismacmahon:

                        OpenVPN would not be able to utilize crypto hardware.

                        Actually, for the transforms that the crypto supports, it could, via the cryptdev driver.

                        Of course, now you're making 3-4 round trips to the kernel, per packet.

                        Two for OpenVPN, because tun/tap.
                        One or two more for AES and, if you have it enabled, SHA or MD5 as authentication.

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