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

AES-NI and OpenVPN?

Scheduled Pinned Locked Moved Hardware
45 Posts 5 Posters 4.4k 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.
  • N
    N8LBV @N8LBV
    last edited by N8LBV Apr 28, 2023, 10:09 PM Apr 28, 2023, 10:07 PM

    Also on the PFSense dishboard page we see: AES-NI CPU Crypto: Yes (inactive)
    If that is not true, it really should be changed. 
    Or should say module not loaded.
    Or should say really is active but is not.
    Or is.
    Or is not
    Or "maybe it is".

    I feel more like I do now.

    J 1 Reply Last reply Apr 28, 2023, 11:10 PM Reply Quote 0
    • J
      JimBob Indiana @N8LBV
      last edited by Apr 28, 2023, 11:10 PM

      @n8lbv I don’t think it will show “Active” unless you are using it as in VPN, etc.

      If not using any of the Apps that use it means “Inactive” is correct.

      AFAIK

      N 1 Reply Last reply Apr 28, 2023, 11:36 PM Reply Quote 0
      • N
        N8LBV @JimBob Indiana
        last edited by Apr 28, 2023, 11:36 PM

        @jimbob-indiana Thanks!
        I will test that.
        Steve

        I feel more like I do now.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Apr 28, 2023, 11:40 PM

          The line in the system information widget currently shows if the CPU is reporting it supports AES-NI. It shows as active if the kernel module is loaded.

          N R 2 Replies Last reply Apr 29, 2023, 12:10 AM Reply Quote 1
          • N
            N8LBV @stephenw10
            last edited by N8LBV Apr 29, 2023, 12:10 AM Apr 29, 2023, 12:10 AM

            @stephenw10 Yep my testing shows same.
            Now for a repeat and continued confused person question...
            open VPN uses AES-NI whether you load the module or not?

            Openvpn uses module if module is loaded.

            Does openvpn use AES-NI in a different way if the module is loaded versus if the module is not loaded?

            Also openvpn client and server have their own option to or "disable "hardware crypto acceleration"

            I wonder if this could be made less confusing in the future once I understand it better.

            I hope you understand my confusion a bit and are not frustrated with me asking over & over.

            I feel more like I do now.

            S 1 Reply Last reply Apr 29, 2023, 12:32 PM Reply Quote 0
            • S
              stephenw10 Netgate Administrator @N8LBV
              last edited by Apr 29, 2023, 12:32 PM

              @n8lbv said in AES-NI and OpenVPN?:

              open VPN uses AES-NI whether you load the module or not?

              Correct. Because OpenSSL does, except in DCO mode.

              @n8lbv said in AES-NI and OpenVPN?:

              Openvpn uses module if module is loaded.

              No. Except in DCO mode.

              @n8lbv said in AES-NI and OpenVPN?:

              Does openvpn use AES-NI in a different way if the module is loaded versus if the module is not loaded?

              No. Not any longer. That used to be the case a number of versions back, like in 2.3.X

              Steve

              N 1 Reply Last reply Apr 29, 2023, 6:15 PM Reply Quote 0
              • N
                N8LBV @stephenw10
                last edited by Apr 29, 2023, 6:15 PM

                @stephenw10 Thanks! excellent clarifcations.
                -Steve

                I feel more like I do now.

                N 1 Reply Last reply Apr 29, 2023, 6:18 PM Reply Quote 0
                • N
                  N8LBV @N8LBV
                  last edited by Apr 29, 2023, 6:18 PM

                  Laptop single nic OpenVPN HTTP throughput test.
                  35Watt Laptop CPU from Jan 2009. NO-AES-NI.

                  Intel® Core™2 Duo Processor T6400
                  2M Cache, 2.00 GHz, 800 MHz FSB
                  c2.jpg

                  I feel more like I do now.

                  N 1 Reply Last reply Apr 29, 2023, 6:26 PM Reply Quote 0
                  • N
                    N8LBV @N8LBV
                    last edited by Apr 29, 2023, 6:26 PM

                    Same test through dual NAT no OpenVPN.
                    That early 2009 laptop (running PFsense) has a Broadcom NIC on the mainboard.
                    nat.jpg

                    I feel more like I do now.

                    1 Reply Last reply Reply Quote 0
                    • R
                      RobbieTT @stephenw10
                      last edited by Apr 29, 2023, 6:43 PM

                      @stephenw10 said in AES-NI and OpenVPN?:

                      The line in the system information widget currently shows if the CPU is reporting it supports AES-NI. It shows as active if the kernel module is loaded.

                      Just out of curiosity, why would the kernel module not be loaded?

                       2023-04-29 at 19.39.18.png

                      ☕️

                      J D 2 Replies Last reply Apr 29, 2023, 7:18 PM Reply Quote 0
                      • J
                        JimBob Indiana @RobbieTT
                        last edited by JimBob Indiana Apr 29, 2023, 7:25 PM Apr 29, 2023, 7:18 PM

                        @robbiett Good question. Mine since I can remember said “Inactive”. I played with the VPN configuration options yesterday and today, says “Active”.

                        I didn’t actually do a VPN.

                        CPU Type Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
                        Current: 2800 MHz, Max: 3601 MHz
                        8 CPUs: 1 package(s) x 4 core(s) x 2 hardware threads
                        AES-NI CPU Crypto: Yes (active)
                        QAT Crypto: No
                        Hardware crypto AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS

                        R D 2 Replies Last reply Apr 29, 2023, 8:03 PM Reply Quote 0
                        • R
                          RobbieTT @JimBob Indiana
                          last edited by Apr 29, 2023, 8:03 PM

                          @jimbob-indiana I had presumed (and we all know where assumptions lead) was that QAT was being preferred* over AES-NI; now I am not so sure.

                          ☕️


                          *As it is rather excellent

                          1 Reply Last reply Reply Quote 0
                          • D
                            Dobby_ @RobbieTT
                            last edited by Dobby_ Apr 29, 2023, 11:30 PM Apr 29, 2023, 11:14 PM

                            @robbiett

                            please have a look at the Intel QAT, because this is loaded instead of the AES-NI!!!! You can use AES-NI or Intel QAT
                            but not both!

                            1682793716026-2023-04-29-at-19.39.18.jpg

                            #~. @Dobby

                            Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                            PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                            PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                            R 1 Reply Last reply Apr 30, 2023, 9:36 AM Reply Quote 0
                            • D
                              Dobby_ @JimBob Indiana
                              last edited by Apr 29, 2023, 11:33 PM

                              @jimbob-indiana said in AES-NI and OpenVPN?:

                              Good question. Mine since I can remember said “Inactive”. I played with the VPN configuration options yesterday and today, says “Active”.

                              Mine fresh installed says "active" too!
                              You can see with no configured VPN actual!

                              AES-NI.jpg

                              #~. @Dobby

                              Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                              PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                              PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                              J 1 Reply Last reply Apr 30, 2023, 3:34 PM Reply Quote 1
                              • R
                                RobbieTT @Dobby_
                                last edited by Apr 30, 2023, 9:36 AM

                                @dobby_ said in AES-NI and OpenVPN?:

                                @robbiett

                                please have a look at the Intel QAT, because this is loaded instead of the AES-NI!!!! You can use AES-NI or Intel QAT
                                but not both!

                                Err, I did.

                                I literally stated my assumption that QAT was preferred over AES-NI and the graphic showing QAT (active) & AES-NI (inactive) is my own (!!!!...?).

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JimBob Indiana @Dobby_
                                  last edited by Apr 30, 2023, 3:34 PM

                                  @dobby_ I have no idea why mine said Inactive and now says Active. All I did was mess with the vpn stuff just to see what is required.

                                  D 1 Reply Last reply Apr 30, 2023, 5:58 PM Reply Quote 0
                                  • D
                                    Dobby_ @JimBob Indiana
                                    last edited by Apr 30, 2023, 5:58 PM

                                    @jimbob-indiana said in AES-NI and OpenVPN?:

                                    @dobby_ I have no idea why mine said Inactive and now says Active. All I did was mess with the vpn stuff just to see what is required.

                                    I was only changing the settings in the filed shown below
                                    in the picture (red arrow), after that the AES-NI was shown
                                    permanent as "active" and this also with no configured VPN! I was choosing both entries from the menue:
                                    AES-NI & CryptoDev

                                    So I think since that, the CryptoDev is taking contact to the
                                    AES-NI and there fore it will be announced as "active".

                                    AES_NI Cryptodev.jpg

                                    #~. @Dobby

                                    Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                                    PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                                    PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Apr 30, 2023, 7:49 PM

                                      The active/inactive label only indicates whether or not the module is loaded. Not whether it's actually in use.

                                      Technically you could load both modules but since both would attempt to register for the same crypto algorithms the result would be confusing. So the webgui only offers the choice to load one of them.

                                      R 1 Reply Last reply May 1, 2023, 12:01 PM Reply Quote 2
                                      • R
                                        RobbieTT @stephenw10
                                        last edited by May 1, 2023, 12:01 PM

                                        @stephenw10 Hey, an assumption turned out right! My journey into full pfSense nirvana continues. 😇

                                        1 Reply Last reply Reply Quote 1
                                        45 out of 45
                                        • First post
                                          45/45
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          This community forum collects and processes your personal information.
                                          consent.not_received