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

    2.4.5 export ovpn 2.3 config bug

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 1.7k 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.
    • P
      pukoid
      last edited by

      Hello!
      Running openvpn at port 443 tcp.
      Updated 2.4.4 to 2.4.5-RELEASE. And faced a bug when exporting 7z-sfx installer for older OSes.
      In 2.4.4 connection string was "remote 1.2.3.4 443 tcp-client" in 2.4.5 "remote 1.2.3.4 443 tcp4".
      Openvpn client 2.3 for XP and Vista do not recognize option "tcp4" and fails to connect. Need to edit config.
      Openvpn client 2.4 works normally.

      1 Reply Last reply Reply Quote 0
      • P
        pukoid
        last edited by

        Example:
        Bad 2.3 command:

        c:\work\vpn-install-2.3.18-I002-i686\bin>openvpn.exe --dev tap --client --tls-client --auth-user-pass --capath "c:\Program Files\OpenVPN\config\gw-pfs-TCP4-443-xxx-vpn-ca.crt" --remote 1.2.3.4 443 tcp4
        Options error: remote: bad protocol associated with host 81.1.214.195: 'tcp4'
        Use --help for more information.
        

        Correct 2.3 command:

        c:\work\vpn-install-2.3.18-I002-i686\bin>openvpn.exe --dev tap --client --tls-client --auth-user-pass --capath "c:\Program Files\OpenVPN\config\gw-pfs-TCP4-443-xxx-vpn-ca.crt" --remote 1.2.3.4 443 tcp-client
        Tue Jun 02 12:47:48 2020 OpenVPN 2.3.18 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Oct 26 2017
        Tue Jun 02 12:47:48 2020 Windows version 6.1 (Windows 7) 64bit
        Tue Jun 02 12:47:48 2020 library versions: OpenSSL 1.0.2l  25 May 2017, LZO 2.10
        Enter Auth Username:Tue Jun 02 12:47:50 2020 ERROR: Auth username is empty
        

        2.4 works fine with tcp4:

        c:\work\vpn-install-2.4.8-I602-Win7\bin>openvpn.exe --dev tap --client --tls-client --auth-user-pass --capath "c:\Program Files\OpenVPN\config\gw-pfs-TCP4-443-xxx-vpn-ca.crt" --remote 1.2.3.4 443 tcp4
        Tue Jun 02 12:41:51 2020 OpenVPN 2.4.8 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 31 2019
        Tue Jun 02 12:41:51 2020 Windows version 6.1 (Windows 7) 64bit
        Tue Jun 02 12:41:51 2020 library versions: OpenSSL 1.1.0l  10 Sep 2019, LZO 2.10
        Enter Auth Username:Enter Auth Password:
        
        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by Gertjan

          Bug ?
          2.4.5 included this :

          9c46ac88-aada-4595-9add-3473f673f8a6-image.png

          Among other, the protocol type is now present on the "remote" client line like udp4, tcp6 etc?.

          So, if you export for old (OpenVPN2.3 and lower) installation, check !
          Or edit / correct your dot opvn files.

          edit : the issue shouldn't really exist .... because it needs you to maintain old OpenVPN client version on PC's.
          And these were called back for security issues, and comfort of use - the new logo - new possibilities, etc etc....

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

          P 1 Reply Last reply Reply Quote 0
          • P
            pukoid @Gertjan
            last edited by

            @Gertjan This checkbox was checked during setup and is checked now.
            In Pfsense 2.4.4 remote string was ending with "tcp-client" in 2.4.5 become "tcp4".

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

              Because OpenVPN 2.4 use the [proto(col)] as a choice.

              proto indicates the protocol to use when connecting with the remote, and may be “tcp” or “udp”.
              For forcing IPv4 or IPv6 connection suffix tcp or udp with 4/6 like udp4/udp6/tcp4/tcp6.
              

              OpenVPN 2.3 clients won't understand this [proto(col)] option.
              OpenVPN 2.4 clients do ....

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

              P 1 Reply Last reply Reply Quote 0
              • P
                pukoid @Gertjan
                last edited by

                @Gertjan Updated OpenvpnClientExport package and checkbox works fine now. Dumb me.

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