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

TLS Encryption and Authentication not working. Authentication only, working fine

Scheduled Pinned Locked Moved OpenVPN
27 Posts 4 Posters 2.2k 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.
  • M
    maartenv
    last edited by Dec 16, 2020, 3:14 PM

    When I have in the openvpn server, TLS Key usage mode = with Authentication only, I can make a connection with pfSense.
    But when I just enable TLS Key usage mode = TLS Encryption and Authentication, I don't get a connection with pfsense.

    Anybody any idea what I am doing wrong?

    J 1 Reply Last reply Dec 16, 2020, 3:15 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @maartenv
      last edited by Dec 16, 2020, 3:15 PM

      @maartenv what client are you using?

      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

      M 1 Reply Last reply Dec 16, 2020, 3:17 PM Reply Quote 0
      • M
        maartenv @johnpoz
        last edited by Dec 16, 2020, 3:17 PM

        @johnpoz Most clients (Linux)

        J 1 Reply Last reply Dec 16, 2020, 3:23 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @maartenv
          last edited by Dec 16, 2020, 3:23 PM

          What is most clients? What is the specific version number? Did you adjust your client config to reflect the change in your server config?

          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

          M 1 Reply Last reply Dec 16, 2020, 3:33 PM Reply Quote 0
          • M
            maartenv @johnpoz
            last edited by Dec 16, 2020, 3:33 PM

            @johnpoz I Suppose I misunderstood your question about what Client I was using. My answer was "Most Clients" in the Client Export Window, under OpenVPN Clients. If you did not mean that, which client do you mean? The "user" as a client?

            While writing this answer I think I already see what I am doing wrong. I am using Authentication Only (No Cert).

            J 1 Reply Last reply Dec 16, 2020, 3:38 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @maartenv
              last edited by Dec 16, 2020, 3:38 PM

              What I mean by client is what version number of the client software is the user running? 2.4.x 2.3.x, 2.5

              There are multiple versions of the client - and a while back for example the client on ios did not support encryption - only auth.

              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

              M 1 Reply Last reply Dec 16, 2020, 3:40 PM Reply Quote 0
              • M
                maartenv @johnpoz
                last edited by Dec 16, 2020, 3:40 PM

                @johnpoz OpenVPN 2.4.7 x86_64-pc-linux-gnu.

                J 1 Reply Last reply Dec 16, 2020, 3:45 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @maartenv
                  last edited by Dec 16, 2020, 3:45 PM

                  Well that for sure is a dated client.. Almost 2 years old. But it should support encryption and auth..

                  You need to make sure your set in the client for "tls-crypt" and yes you have to have a tls key setup..

                  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

                  M 1 Reply Last reply Dec 16, 2020, 3:55 PM Reply Quote 0
                  • M
                    maartenv @johnpoz
                    last edited by maartenv Dec 16, 2020, 3:56 PM Dec 16, 2020, 3:55 PM

                    @johnpoz Yes I know it is outdated, though I am using Ubuntu 20.04 LTS. And I wanted to keep it like that because there is a chance that more users will try to login with an older OpenVPN version.

                    I remember that there should be a field that disables 2.5 requirements. But I forgot where and I can't find it anymore? Could you tell me?

                    And yes, I generated a TLS key

                    J M 2 Replies Last reply Dec 16, 2020, 3:58 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @maartenv
                      last edited by Dec 16, 2020, 3:58 PM

                      @maartenv that is in the client export util

                      checkbox.png

                      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

                      M 1 Reply Last reply Dec 16, 2020, 9:45 PM Reply Quote 0
                      • M
                        maartenv @maartenv
                        last edited by maartenv Dec 16, 2020, 4:09 PM Dec 16, 2020, 4:01 PM

                        @maartenv Thanks, I was afraid I forgot to set that, But I did. Openvpn 2.5 settings are not included.
                        Can it have something to do with the fact that I use Adaptive LZO Compression or the NCP Encryption Algorithms?

                        J 1 Reply Last reply Dec 16, 2020, 11:21 PM Reply Quote 0
                        • M
                          maartenv @johnpoz
                          last edited by Dec 16, 2020, 9:45 PM

                          @johnpoz It is still not working. I have setup OpenVPN completely new but still the same. Without encryption it is working fine, but not with encryption.
                          Can it have something to do with the NCP Encryption Algorithms?

                          When I look at the certifcates, the are exactly the same, the only difference is that <tls-auth> is changed in <tls-crypt> and that in the tls crypt file the line key-direction 1 disappeared.

                          But furthermore both Certivicates and OpenVPN static keys V1 are 100% identical

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @maartenv
                            last edited by johnpoz Dec 16, 2020, 11:22 PM Dec 16, 2020, 11:21 PM

                            @maartenv said in TLS Encryption and Authentication not working. Authentication only, working fine:

                            I use Adaptive LZO Compression

                            You understand that was compromised quite some time ago and should not be used..

                            What like 2 years ago
                            https://community.openvpn.net/openvpn/wiki/VORACLE

                            Post up your config.. I have no idea what else your doing.. To be honest you run through the wizard, and you have server up and running in like 2 minutes..

                            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

                            M 2 Replies Last reply Dec 16, 2020, 11:35 PM Reply Quote 0
                            • M
                              maartenv @johnpoz
                              last edited by Dec 16, 2020, 11:35 PM

                              @johnpoz Running the wizard again is exactly what I already did with for most the default settings, like Omit preference. Please give me 15 minutes, than I will upload the config.

                              1 Reply Last reply Reply Quote 0
                              • M
                                maartenv @johnpoz
                                last edited by Dec 17, 2020, 12:00 AM

                                @johnpoz The[0_1608162720468_OpenVPN.config.pdf](Uploading 100%) configOpenVPN.config.jpg OpenVPN.config-II.jpg

                                J 1 Reply Last reply Dec 17, 2020, 12:15 AM Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @maartenv
                                  last edited by johnpoz Dec 17, 2020, 12:21 AM Dec 17, 2020, 12:15 AM

                                  And what is not working? What does the log say on connection? Your not using encryption there your using just auth.

                                  Your not even using tls there.. And what are you using for auth? One sec an will post up mine

                                  here
                                  configsrv.png

                                  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

                                  M 1 Reply Last reply Dec 17, 2020, 12:20 AM Reply Quote 0
                                  • M
                                    maartenv @johnpoz
                                    last edited by Dec 17, 2020, 12:20 AM

                                    @johnpoz This is normally working. The problem is that when I set TLS Authentication to TLS Encryption and Authentication I don't get a connection anymore.

                                    J 1 Reply Last reply Dec 17, 2020, 12:23 AM Reply Quote 0
                                    • J
                                      johnpoz LAYER 8 Global Moderator @maartenv
                                      last edited by Dec 17, 2020, 12:23 AM

                                      Your not using TLS.. so how would it encrypt.. You just have user auth set, not remote (ssl/tls)

                                      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

                                      M 2 Replies Last reply Dec 17, 2020, 12:29 AM Reply Quote 0
                                      • M
                                        maartenv @johnpoz
                                        last edited by Dec 17, 2020, 12:29 AM

                                        @johnpoz You are right. Let me check again. I did that as well and also did not work, but I changed several other settings at the same time (stupid) and I had set it back to just the auth setting and now I forgot to enable SSL/TLS again.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          maartenv @johnpoz
                                          last edited by Dec 17, 2020, 12:40 AM

                                          @johnpoz Now I remember: In that case I could not create a new cert. Instead I got the message "If a client is missing from the list it is likely due to a CA mismatch between the OpnVPN server instance and the client certificate"

                                          JohnPoz, I appreciate your help quite a lot, but here (Amsterdam) it is 1.30 am and I have to get up early tomorrow morning.

                                          Tomorrow I will focus on that. Hope I can solve it then.

                                          J M 2 Replies Last reply Dec 17, 2020, 12:43 AM Reply Quote 0
                                          1 out of 27
                                          • First post
                                            1/27
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received