Re: Upgrade to OpenVPN 1.2.5 (iOS): issues
Posted: Tue Jan 09, 2018 10:29 am
And ad also support for elliptic curve
Community Support Forum
https://forums.openvpn.net/
could you please the logs of the non-working attempts to iOS @ openvpn . net please?GainfulShrimp wrote: ↑Tue Jan 09, 2018 10:35 amI'm still struggling to get all of my ovpn profiles working in 1.2.5 though... it seems really flaky. Sometimes a given ovpn will work from the app, sometimes it will instantly change to 'disconnected' - yet the same ovpn will work from Settings > VPN. Other times, the reverse will be true.
With the previous version of OpenVPN Connect, I could use any of my three profiles easily and reliably, from either the app or via Settings > VPN.
Thanks ordex. With trepidation, I've just retried this and I've realised I'm experiencing the same issue as seanob mentioned earlier:
I use three ovpn profiles and - now that they're successfully setup in the app - I can only successfully switch between them using Settings > VPN.seanob wrote: ↑Tue Jan 09, 2018 4:31 amI did notice when switching between my VPN servers in the app, that I got the “OpenVPN profile is not selected”. I had to go to the iOS VPN settings and choose the server from there, then return back to the OpenVPN app and connect. Never had to do that with previous versions so not sure if that is a bug or by design in the latest version.
Confirmed. Correct.ordex wrote: ↑Tue Jan 09, 2018 4:54 amJust rephrasing with my own words to make sure I understood:
1. you enter a password and save it
2. you click on the connect button
3. the connection starts and the profile gets connected
4. even though the point above is true, the connect button remains grey and on the left
Could you confirm if the above is correct?
Thanks a lot
Are these profile imported via mobileconfig or via .ovpn files? Were they ported from the old version or did you install them after the upgrade?GainfulShrimp wrote: ↑Tue Jan 09, 2018 11:32 amThanks ordex. With trepidation, I've just retried this and I've realised I'm experiencing the same issue as seanob mentioned earlier:I use three ovpn profiles and - now that they're successfully setup in the app - I can only successfully switch between them using Settings > VPN.seanob wrote: ↑Tue Jan 09, 2018 4:31 amI did notice when switching between my VPN servers in the app, that I got the “OpenVPN profile is not selected”. I had to go to the iOS VPN settings and choose the server from there, then return back to the OpenVPN app and connect. Never had to do that with previous versions so not sure if that is a bug or by design in the latest version.
Hi, we are currently working with Apple to see what are our options in terms of importing certificates via mobileconfig profiles. Unfortunately the new API is much more stringent and doe snot allow direct access to the iOS keychain. As soon as we will get an answer, we will follow up on this too.kaloprominat wrote: ↑Tue Jan 09, 2018 2:18 pmHi, everybody! Just want to point app maintainers to that fact, that with this update our corporate mobile ios VPN became broken.
We're using MDM server to push .mobileconfig profiles with certificate and vpn setting for OpenVPN Connect. It's a custom SSL VPN with identifier "net.openvpn.OpenVPN-Connect.vpnplugin". We've got our MDM installation of ~1,5K mobile devices so far, and every device get its own configuration with unique certificate from MDM "over the air". So, after upgrade to version 1.2.5 it doesn't work anymore. And as far as i understand, with all changes in new version, it would not work anymore that way. We're unable to manually import 1,5K unique certificates into all devices. Please, consider our needs. Such huge and backward incompatible changes breaks our mobile VPN.
after importing the profile, if it is missing the cert/key entries, the app will show a line called "Certificated" right above the status. If you click that line, it will open the certificate list.agelwarg wrote: ↑Tue Jan 09, 2018 11:44 amI had a working mobileconfig deployed profile with connect on demand. After upgrading to 1.2.5, that stopped working. I followed the instructions to separately add my p12 cert via an .ovpn12 extension, and now I can see the cert in the OpenVPN app. However, it still won't connect and I see no logs (on either side). I'm not sure where / how I am supposed to reference this certificate in the (openvpn connect) config because I had previously bundled the cert along with the config when building the mobileconfig profile through the Apple Configurator AND selected it.
This is what happens when going into airplane mode when connected to a server through UDP and disabling airplane mode again.Robyn wrote: ↑Tue Jan 09, 2018 11:34 amThe biggest issue for me in this release (compared to 1.1.1) is that the Network State Detection system does not work anymore. Previously, when switching networks or enabling / disabling airplane mode would result in a succesful reconnection attempt (OpenVPN would simply pause the connection during network changes).
Now, when using a UDP connection and the network state changes, this results in a disconnect. When using a TCP connection, the connection does not pause and when iOS reestablishes the network connection, OpenVPN shows that it is connected but internet connectivity is effectively lost (iOS still shows all the indicators and the VPN symbol).
Code: Select all
2018-01-09 16:00:29 UDP send error: SYSTEM/Can't assign requested address
2018-01-09 16:00:29 Transport Error: EADDRNOTAVAIL: Can't assign requested address
2018-01-09 16:00:29 EVENT: TRANSPORT_ERROR EADDRNOTAVAIL: Can't assign requested address [ERR]
2018-01-09 16:00:29 Client terminated, restarting in 5000 ms...
2018-01-09 16:00:29 Raw stats on disconnect:
BYTES_IN : 26478
BYTES_OUT : 13793
PACKETS_IN : 92
PACKETS_OUT : 114
TUN_BYTES_IN : 10231
TUN_BYTES_OUT : 23391
TUN_PACKETS_IN : 106
TUN_PACKETS_OUT : 83
NETWORK_SEND_ERROR : 1
TRANSPORT_ERROR : 1
Thanks for the log. I am opening an internal ticket with this information.Robyn wrote: ↑Tue Jan 09, 2018 3:06 pmThis is what happens when going into airplane mode when connected to a server through UDP and disabling airplane mode again.Robyn wrote: ↑Tue Jan 09, 2018 11:34 amThe biggest issue for me in this release (compared to 1.1.1) is that the Network State Detection system does not work anymore. Previously, when switching networks or enabling / disabling airplane mode would result in a succesful reconnection attempt (OpenVPN would simply pause the connection during network changes).
Now, when using a UDP connection and the network state changes, this results in a disconnect. When using a TCP connection, the connection does not pause and when iOS reestablishes the network connection, OpenVPN shows that it is connected but internet connectivity is effectively lost (iOS still shows all the indicators and the VPN symbol).
In other words, disabling airplane mode does not lead to reconnecting. When changing from Wifi to mobile, the error is line-by-line the same.
Code: Select all
2018-01-09 16:00:29 UDP send error: SYSTEM/Can't assign requested address 2018-01-09 16:00:29 Transport Error: EADDRNOTAVAIL: Can't assign requested address 2018-01-09 16:00:29 EVENT: TRANSPORT_ERROR EADDRNOTAVAIL: Can't assign requested address [ERR] 2018-01-09 16:00:29 Client terminated, restarting in 5000 ms... 2018-01-09 16:00:29 Raw stats on disconnect: BYTES_IN : 26478 BYTES_OUT : 13793 PACKETS_IN : 92 PACKETS_OUT : 114 TUN_BYTES_IN : 10231 TUN_BYTES_OUT : 23391 TUN_PACKETS_IN : 106 TUN_PACKETS_OUT : 83 NETWORK_SEND_ERROR : 1 TRANSPORT_ERROR : 1
Can't you just revert to using the old API, which worked? Because the API itself has not changed, only the OpenVPN client. So, somewhere down the line of several updates, you changed something. And this made the app unable to get the cert from the keychain. So, if you would just revert back to the old model of retrieving the cert from the keychain, it should work again.ordex wrote: ↑Tue Jan 09, 2018 2:20 pmHi, we are currently working with Apple to see what are our options in terms of importing certificates via mobileconfig profiles. Unfortunately the new API is much more stringent and doe snot allow direct access to the iOS keychain. As soon as we will get an answer, we will follow up on this too.kaloprominat wrote: ↑Tue Jan 09, 2018 2:18 pmHi, everybody! Just want to point app maintainers to that fact, that with this update our corporate mobile ios VPN became broken.
We're using MDM server to push .mobileconfig profiles with certificate and vpn setting for OpenVPN Connect. It's a custom SSL VPN with identifier "net.openvpn.OpenVPN-Connect.vpnplugin". We've got our MDM installation of ~1,5K mobile devices so far, and every device get its own configuration with unique certificate from MDM "over the air". So, after upgrade to version 1.2.5 it doesn't work anymore. And as far as i understand, with all changes in new version, it would not work anymore that way. We're unable to manually import 1,5K unique certificates into all devices. Please, consider our needs. Such huge and backward incompatible changes breaks our mobile VPN.
I suspect the API is being deprecated hence the change to the new public one being required. I'll check my Apple Developer notes later today and see what I can find out, but I strongly suspect that's the reason.Can't you just revert to using the old API, which worked? Because the API itself has not changed, only the OpenVPN client
It clearly wasn't QA'ed. If it was, the QA Director needs to be made redundant after this shambles. This is possibly one of the worst App upgrades I have witnessed in 10 years of iOS development.Also, why was this issue not found during Q/A?