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.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.
    • M
      maartenv @johnpoz
      last edited by

      @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).

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

        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.8, 24.11

        M 1 Reply Last reply Reply Quote 0
        • M
          maartenv @johnpoz
          last edited by

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

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

            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.8, 24.11

            M 1 Reply Last reply Reply Quote 0
            • M
              maartenv @johnpoz
              last edited by maartenv

              @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

              johnpozJ M 2 Replies Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @maartenv
                last edited by

                @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.8, 24.11

                M 1 Reply Last reply Reply Quote 0
                • M
                  maartenv @maartenv
                  last edited by maartenv

                  @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?

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • M
                    maartenv @johnpoz
                    last edited by

                    @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
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @maartenv
                      last edited by johnpoz

                      @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.8, 24.11

                      M 2 Replies Last reply Reply Quote 0
                      • M
                        maartenv @johnpoz
                        last edited by

                        @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

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

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

                            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.8, 24.11

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              maartenv @johnpoz
                              last edited by

                              @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.

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

                                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.8, 24.11

                                M 2 Replies Last reply Reply Quote 0
                                • M
                                  maartenv @johnpoz
                                  last edited by

                                  @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

                                    @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.

                                    johnpozJ M 2 Replies Last reply Reply Quote 0
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @maartenv
                                      last edited by

                                      The wizard walks you through creating a CA and server cert.

                                      Then just create a user cert from that CA.

                                      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.8, 24.11

                                      M 1 Reply Last reply Reply Quote 1
                                      • M
                                        maartenv @johnpoz
                                        last edited by

                                        @johnpoz I have been focusing on the wrong subject all the time. At a certain point you get too tired trying to solve a problem that you lose oversight. I had several certs for testing and probably used the wrong one. I will change that tomorrow and I am convinced that that probably is the problem.

                                        Thanks a lot with your help and I will let you know if this indeed was the problem.

                                        Have a nice day.

                                        GertjanG 1 Reply Last reply Reply Quote 0
                                        • GertjanG
                                          Gertjan @maartenv
                                          last edited by

                                          @maartenv : before redo your VPN setup : take the Youtube -> Netgate -> OpenVPN videos.
                                          Zeker weten dat je al je vragen beantwoordt krijgt ;)

                                          No "help me" PM's please. Use the forum, the community will thank you.
                                          Edit : and where are the logs ??

                                          M 1 Reply Last reply Reply Quote 1
                                          • M
                                            maartenv @Gertjan
                                            last edited by

                                            @gertjan Dank je voor de tip, probleem is inmiddels opgelost

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