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

OpenVPN recommended Data Encryption Algorithms when using SG-2100 appliance's crypto engine?

Scheduled Pinned Locked Moved OpenVPN
cryptographicsg2100openvpnsmidencryption
23 Posts 6 Posters 2.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.
  • J
    JonathanLee
    last edited by JonathanLee Jan 3, 2024, 5:27 AM Jan 2, 2024, 5:07 PM

    Hello fellow Netgate community,

    Can you please help?

    I am working on OpenVPN in pfSense. I used OpenVPN in our cybersecurity class in the past, and I thought why not test it out on pfSense for accessing my NAS as it worked great in class labs.

    Everything is working as expected, I thought maybe my 2100 can be more secure as it has that built in crypto chip on it. I followed a nice guide online to help me configure it.

    6af9cfde-fec7-4d9f-83e5-655a1a326908-image.png (Hardware Crypto)

    This setting is what I want to check in on. What is recommended for Data Encryption when using OpenVPN to access a private NAS?

    I can access everything I need right now however I want to utilize the Netgate SG-2100's Hardware crypto chip to start using the SMID instruction set to its fullest extent for security.

    I am currently using OpenVPN to access my NAS remotely it works great.

    What's recommended here to make it more secure?

    Keep in mind I want to use the Hardware Crypto, I do not want to avoid it as it is part of the 2100.

    Make sure to upvote

    M 1 Reply Last reply Jan 2, 2024, 5:21 PM Reply Quote 0
    • M
      mcury @JonathanLee
      last edited by Jan 2, 2024, 5:21 PM

      @JonathanLee I'm not sure if the SG-2100 uses the same chip for that purpose as the SG-3100.

      But, if that is the case, read here: https://forum.netgate.com/topic/171261/openvpn-and-sg-3100-crypto-support/11

      dead on arrival, nowhere to be found.

      J 1 Reply Last reply Jan 2, 2024, 5:36 PM Reply Quote 1
      • J
        JonathanLee @mcury
        last edited by Jan 2, 2024, 5:36 PM

        @mcury my OpenVPN lists the chip so it sees it, does your Sever profile list it too on the 3100?

        Make sure to upvote

        M 1 Reply Last reply Jan 2, 2024, 5:40 PM Reply Quote 0
        • M
          mcury @JonathanLee
          last edited by Jan 2, 2024, 5:40 PM

          @JonathanLee said in OpenVPN recommended Data Encryption Algorithms when using SG-2100 appliance's crypto engine?:

          my OpenVPN lists the chip so it sees it, does your Sever profile list it too on the 3100?

          Unfortunately I don't have the SG-3100 anymore.. Sold it to a friend who is loving it, that integrated switch is really nice and I miss that .. :)

          Here you can read more details about it:
          https://docs.netgate.com/pfsense/en/latest/config/advanced-misc.html#cryptographic-thermal-hardware

          It seems that it will use it automatically if it is supported, no need to select anything.

          dead on arrival, nowhere to be found.

          1 Reply Last reply Reply Quote 0
          • J
            JonathanLee
            last edited by Jan 2, 2024, 5:56 PM

            https://forums.openvpn.net/viewtopic.php?p=119900

            I posted here also to see what OpenVPN community says about the chips

            📨

            Make sure to upvote

            1 Reply Last reply Reply Quote 1
            • J
              jrey
              last edited by Jan 2, 2024, 6:07 PM

              @JonathanLee

              I got the impression from the discussion that was had here:

              https://forum.netgate.com/topic/184893/resolved-the-command-usr-local-sbin-ping-auth-s-etc-thoth-thothid-2-dev-null-returned-exit-code-127-the-output-was/49?_=1704212012655

              and specifically

              @stephenw10 said in Resolved: The command '/usr/local/sbin/ping-auth -s > /etc/thoth/thothid 2>/dev/null' returned exit code '127', the output was '':

              It is not. The current 2100s do not include it.

              that the newer (2100's) don't have the chip anymore and that "they" would prefer it just not be used. Hence the issue you saw when you installed to a fresh SSD the install didn't include "stuff".
              I have no background in the choice they made in this regard, but it likely boils down to simply a choice of don't support the chip even if the device has one. or dev speak support 1 code path, not 2.
              Did you ever get a comment on the redmine you opened?

              J 2 Replies Last reply Jan 2, 2024, 6:10 PM Reply Quote 0
              • J
                JonathanLee @jrey
                last edited by Jan 2, 2024, 6:10 PM

                @jrey My 2100 has it and in OpenVPN it sees it, the comments on the redmine is that the application that can read the chip id is no longer supported in 23.09 so they are going to remove the GUI window for it in future releases. Again my 2100 was purchased with it and it seems to be functional in that regard so I am a bit confused. Maybe going forward all 2100s will not support it.

                Make sure to upvote

                J 1 Reply Last reply Jan 2, 2024, 6:44 PM Reply Quote 0
                • J
                  JonathanLee @jrey
                  last edited by JonathanLee Jan 2, 2024, 6:25 PM Jan 2, 2024, 6:10 PM

                  @jrey haha didn't include "stuff"

                  Well it does after we fixed the missing file

                  Make sure to upvote

                  1 Reply Last reply Reply Quote 0
                  • J
                    jrey @JonathanLee
                    last edited by Jan 2, 2024, 6:44 PM

                    @JonathanLee said in OpenVPN recommended Data Encryption Algorithms when using SG-2100 appliance's crypto engine?:

                    application that can read the chip id is no longer supported

                    Yes, but i'd be betting that if this ^ "stuff" was removed this round, eventually so will support for the chip for those of us (you, me and others that still have the chip) vs. the newer 2100's that don't have it.

                    Certainly OpenVPN can see it now and the problem of it not being supported at all can be pushed down the road. (maybe even past the life of the equipment) That's all.

                    However, if they "wanted" the GUI to display the ID, the logic could have been added to "you Have one = display it" , "Not there = don't" but the choice was made to simply remove it for all fresh installs. Always step one in eventual feature removal.

                    J 1 Reply Last reply Jan 9, 2024, 4:29 AM Reply Quote 1
                    • J
                      JonathanLee @jrey
                      last edited by Jan 9, 2024, 4:29 AM

                      @jrey 23.09.01 does not see it in OpenVPN but it does see it in the menus and advance configuration, 23.05.01 listed it in openVPN

                      Make sure to upvote

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by Jan 11, 2024, 2:13 PM

                        FYI- The "thoth" chip on the 1100/2100 is not associated with cryprographic acceleration, it's for other operations such as authentication. Not quite the same as a TPM but closer to that than an accelerator.

                        The accelerator on the 2100 is SafeXcel.

                        DCO only supports ChaCha and AES-GCM, and the only one of those that the SafeXcel chip accelerates is AES-GCM, so remove ChaCha from the list on the server and it should be OK.

                        Though you may be better off disabling SafeXcel and enabling the newer IPsec-MB acceleration since (a) in most cases it's faster than crypto accelerator chips, and (b) it can accelerate both AES-GCM and ChaCha so you aren't limited in algorithm choices. Despite the name, IPsec-MB also accelerates OpenVPN DCO and WireGuard. See https://docs.netgate.com/pfsense/en/latest/hardware/cryptographic-accelerators.html#supported-devices

                        You can change that under System > Advanced on the Misc tab, enable IPsec-MB and disable SafeXcel and then reboot.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        M J 2 Replies Last reply Jan 11, 2024, 2:38 PM Reply Quote 2
                        • M
                          michmoor LAYER 8 Rebel Alliance @jimp
                          last edited by Jan 11, 2024, 2:38 PM

                          @jimp
                          curious for platforms that support QAT which is better? To enable IPsec-MB or to rely on QAT?
                          Im running an ovpn client privacy vpn and with DCO enabled im getting great speeds but i noticed wireguard has the edge in performance.

                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                          Routing: Juniper, Arista, Cisco
                          Switching: Juniper, Arista, Cisco
                          Wireless: Unifi, Aruba IAP
                          JNCIP,CCNP Enterprise

                          J 1 Reply Last reply Jan 11, 2024, 3:59 PM Reply Quote 1
                          • J
                            jimp Rebel Alliance Developer Netgate @michmoor
                            last edited by Jan 11, 2024, 3:59 PM

                            @michmoor said in OpenVPN recommended Data Encryption Algorithms when using SG-2100 appliance's crypto engine?:

                            @jimp
                            curious for platforms that support QAT which is better? To enable IPsec-MB or to rely on QAT?
                            Im running an ovpn client privacy vpn and with DCO enabled im getting great speeds but i noticed wireguard has the edge in performance.

                            I don't have any exact results handy (they may be posted on the shop somewhere) but in many cases IPsec-MB meets/exceeds the speed of QAT. There are some hints in the docs about using both together.

                            https://docs.netgate.com/pfsense/en/latest/config/advanced-misc.html

                            https://docs.netgate.com/pfsense/en/latest/hardware/cryptographic-accelerators.html#crypto-accel-tune-ipsec-mb

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            M 1 Reply Last reply Jan 11, 2024, 4:18 PM Reply Quote 1
                            • M
                              michmoor LAYER 8 Rebel Alliance @jimp
                              last edited by michmoor Jan 11, 2024, 4:18 PM Jan 11, 2024, 4:18 PM

                              @jimp
                              Ahh gotcha. Whats interesting is that IPsec MB works with chacha20.
                              In my use case it makes sense to actually enable MB as i get the best of both worlds - Support for both types of encryption (GCM/chacha) and the implicit support of WireGuard which QAT doesnt support (yet?!).
                              I need to do more testing but this is interesting.
                              For what its worth im testing on a 6100

                              Firewall: NetGate,Palo Alto-VM,Juniper SRX
                              Routing: Juniper, Arista, Cisco
                              Switching: Juniper, Arista, Cisco
                              Wireless: Unifi, Aruba IAP
                              JNCIP,CCNP Enterprise

                              J 1 Reply Last reply Jan 11, 2024, 4:23 PM Reply Quote 1
                              • J
                                jimp Rebel Alliance Developer Netgate @michmoor
                                last edited by Jan 11, 2024, 4:23 PM

                                @michmoor There are some newer QAT devices that support ChaCha but IIRC they are not yet widely available and even if they were, I don't think FreeBSD has drivers for them yet. But since IPsec-MB performs so well (and it really flies on the CPU in the 4200 with AVX2), there are even less reasons to lean on hardware QAT in the future for these sorts of roles.

                                But the hardware is always evolving, we try to keep on top of whatever is best as new things develop.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                J M 3 Replies Last reply Jan 11, 2024, 4:27 PM Reply Quote 1
                                • J
                                  JonathanLee @jimp
                                  last edited by JonathanLee Jan 11, 2024, 4:33 PM Jan 11, 2024, 4:27 PM

                                  @jimp I still can't get vmstat to show anything for OpenVPN on the SafeXcel chip use with IPsec-MB enabled, disabled ChaCha removed, added, DOC enabled, disabled, it shows this ID error.

                                  Is there something I am doing wrong? I think you told me it should be automatically used but its showing nothing for use and this ID error when I connect. I created a different post for that as that is issues not related to this post.

                                  dco_update_peer_stat: invalid peer ID 1 returned by kernel

                                  https://forum.netgate.com/topic/185411/23-09-01-hardware-crypto-showing-no-hardware-crypto-acceleration-for-system-with-crypto-chip-installed/

                                  I understand that it is automagic now but it still is having issues for my 2100 in 23.09.01

                                  Thanks

                                  Make sure to upvote

                                  J 1 Reply Last reply Jan 11, 2024, 4:54 PM Reply Quote 0
                                  • M
                                    michmoor LAYER 8 Rebel Alliance @jimp
                                    last edited by Jan 11, 2024, 4:37 PM

                                    @jimp
                                    Ive loaded IPsec MB, fresh reboot, and so far its about the same with QAT. Doesnt hurt to keep it enabled so i'll leave it.
                                    We know that DCO takes the load off the CPU but i just want to share my monitoring graph. Can you tell when DCO was enabled? haha

                                    c6212b28-3032-4b21-b638-0a5ba7f66dda-image.png

                                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                    Routing: Juniper, Arista, Cisco
                                    Switching: Juniper, Arista, Cisco
                                    Wireless: Unifi, Aruba IAP
                                    JNCIP,CCNP Enterprise

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      michmoor LAYER 8 Rebel Alliance @jimp
                                      last edited by Jan 11, 2024, 4:45 PM

                                      @jimp
                                      Internet line is 500/500 but ATT Fiber does over-provision.
                                      Here are the wireguard results with IPsec MB
                                      Im not complaining.

                                      55df50e0-db7f-4367-9ae9-8d96ea79369d-image.png

                                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                      Routing: Juniper, Arista, Cisco
                                      Switching: Juniper, Arista, Cisco
                                      Wireless: Unifi, Aruba IAP
                                      JNCIP,CCNP Enterprise

                                      1 Reply Last reply Reply Quote 1
                                      • J
                                        jimp Rebel Alliance Developer Netgate @JonathanLee
                                        last edited by Jan 11, 2024, 4:54 PM

                                        @JonathanLee said in OpenVPN recommended Data Encryption Algorithms when using SG-2100 appliance's crypto engine?:

                                        @jimp I still can't get vmstat to show anything for OpenVPN on the SafeXcel chip use with IPsec-MB enabled, disabled ChaCha removed, added, DOC enabled, disabled, it shows this ID error.

                                        ARM is not like x86, not everything shows up like interrupts, IIRC there is no visible way to tell that SafeXcel is being used except by secondary observations (e.g. improved encryption throughput when enabled vs disabled or lower CPU usage when enabled vs disabled).

                                        I'd keep that discussion going on your other thread since it's more relevant there. But if you can pass traffic, the error is probably not harmful. And you'll need to run performance tests with it enabled/disabled and measure at least CPU usage and throughput when testing. But again, do all that and post it in the other thread.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        J 1 Reply Last reply Jan 11, 2024, 5:23 PM Reply Quote 2
                                        • J
                                          JonathanLee @jimp
                                          last edited by Jan 11, 2024, 5:23 PM

                                          @jimp thanks I got it to show logs I posted everything in the other forum.

                                          Have a good one

                                          Make sure to upvote

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