[Worked around] OpenVPN Connect 3.0.3 != OpenVPN FreeBSD w/ OpenSSL
Posted: Fri Sep 13, 2019 11:53 am
I nave just discovered a problem (and a workaround). My setup:
OpenVPN 2.4.7 server running on FreeBSD 12.0-RELEASE-p10
OpenVPN Connect 3.0.3-2104 client running on IOS 12.4.1
The connect client would not establish a connection, the server log showed this, over and over again:
The client log shows this:
The workaround is to re-compile the openvpn server with mbed TLS:
Now OpenVPN Connect client for IOS works.
OpenVPN 2.4.7 server running on FreeBSD 12.0-RELEASE-p10
Code: Select all
216>openvpn --version
OpenVPN 2.4.7 amd64-portbld-freebsd12.0 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Sep 5 2019
library versions: OpenSSL 1.1.1a-freebsd 20 Nov 2018, LZO 2.10
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=no enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_management=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=no enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=yes enable_strict_options=no enable_systemd=no enable_werror=no enable_win32_dll=yes enable_x509_alt_username=no with_aix_soname=aix with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_sysroot=no
The connect client would not establish a connection, the server log showed this, over and over again:
Code: Select all
Sep 13 00:05:17 <daemon.notice> $HOSTNAME openvpn[1687]: TCP connection established with [AF_INET6]::ffff:$IP:61493
Sep 13 00:05:17 <daemon.notice> $HOSTNAME openvpn[1687]: $IP:61493 TLS: Initial packet from [AF_INET6]::ffff:$IP:61493, sid=53a5e20c d9b8bf94
Sep 13 00:05:17 <daemon.err> zephyr openvpn[1687]: $IP:61493 Connection reset, restarting [0]
Code: Select all
2019-09-09 09:08:00 Client exception in transport_recv_exclode: mbed TLS: SSL read error : SSL - The requested feature is not available
2019-09-09 09:08:00 Client terminated, restarting in 2000 ms...
Code: Select all
225>openvpn --version
OpenVPN 2.4.7 amd64-portbld-freebsd12.0 [SSL (mbed TLS)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Sep 13 2019
library versions: mbed TLS 2.16.2, LZO 2.10
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=no enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_management=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=no enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=yes enable_strict_options=no enable_systemd=no enable_werror=no enable_win32_dll=yes enable_x509_alt_username=no with_aix_soname=aix with_crypto_library=mbedtls with_gnu_ld=yes with_mem_check=no with_sysroot=no