RVECJSCXEUZCWVBR 0 Posted ... Hi all,I've been trying to set up VPN on Demand for a while now and it's still not working. I've used this guide for the config http://simonguest.com/2013/03/22/on-demand-vpn-using-openvpn-for-ios (I can only access this through archive.org), as well as https://www.derman.com/blogs/iOS-OpenVPN-OnDemand-Setup. And keep on getting ca certificate as undefined errors.[spoiler]2016-12-28 23:42:54 ----- OpenVPN Start -----OpenVPN core 3.0.11 ios arm64 64-bit built on Apr 15 2016 14:13:502016-12-28 23:42:54 Keychain Cert Extraction: 1 certificate(s) found2016-12-28 23:42:54 Frame=512/2048/512 mssfix-ctrl=12502016-12-28 23:42:54 EVENT: CORE_ERROR PolarSSL: ca certificate is undefined [ERR]2016-12-28 23:42:54 Raw stats on disconnect:2016-12-28 23:42:54 Performance stats on disconnect: CPU usage (microseconds): 5590 Network bytes per CPU second: 0 Tunnel bytes per CPU second: 02016-12-28 23:42:54 EVENT: DISCONNECT_PENDING2016-12-28 23:42:54 ----- OpenVPN Stop -----[/spoiler] So I tried to leave the ca certificate in the .ovpn file by editing with textedit and leaving the ca out of the .mobileconfig and this was my error insted [spoiler]2016-12-28 23:39:01 ----- OpenVPN Start -----OpenVPN core 3.0.11 ios arm64 64-bit built on Apr 15 2016 14:13:502016-12-28 23:39:01 Keychain Cert Extraction: 1 certificate(s) found2016-12-28 23:39:01 Frame=512/2048/512 mssfix-ctrl=12502016-12-28 23:39:01 UNUSED OPTIONS4 [resolv-retry] [infinite]5 [nobind]6 [persist-key]7 [persist-tun]11 [verb] [3]13 [pkcs12] [airvpn.p12]2016-12-28 23:39:01 EVENT: RESOLVE2016-12-28 23:39:01 Contacting 213.152.161.34:443 via TCP2016-12-28 23:39:01 EVENT: WAIT2016-12-28 23:39:01 SetTunnelSocket returned 12016-12-28 23:39:01 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv42016-12-28 23:39:01 TCP recv EOF2016-12-28 23:39:01 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR2016-12-28 23:39:01 EVENT: TRANSPORT_ERROR Transport error on '213.152.161.34: NETWORK_EOF_ERROR [ERR]2016-12-28 23:39:01 Client terminated, restarting in 5...2016-12-28 23:39:01 NET Internet:ReachableViaWiFi/-R t------2016-12-28 23:39:01 NET WiFi:ReachableViaWiFi/-R t-----d2016-12-28 23:39:04 RECONNECT TEST: ReachableViaWiFi2016-12-28 23:39:06 EVENT: RECONNECTING2016-12-28 23:39:06 Contacting 213.152.161.34:443 via TCP2016-12-28 23:39:06 EVENT: WAIT2016-12-28 23:39:06 SetTunnelSocket returned 12016-12-28 23:39:06 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv42016-12-28 23:39:06 TCP recv EOF2016-12-28 23:39:06 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR2016-12-28 23:39:06 EVENT: TRANSPORT_ERROR Transport error on '213.152.161.34: NETWORK_EOF_ERROR [ERR]2016-12-28 23:39:06 Client terminated, restarting in 5...2016-12-28 23:39:09 RECONNECT TEST: ReachableViaWiFi2016-12-28 23:39:11 EVENT: RECONNECTING2016-12-28 23:39:11 Contacting 213.152.161.34:443 via TCP2016-12-28 23:39:11 EVENT: WAIT2016-12-28 23:39:11 SetTunnelSocket returned 12016-12-28 23:39:11 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv42016-12-28 23:39:11 TCP recv EOF2016-12-28 23:39:11 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR2016-12-28 23:39:11 EVENT: TRANSPORT_ERROR Transport error on '213.152.161.34: NETWORK_EOF_ERROR [ERR]2016-12-28 23:39:11 Client terminated, restarting in 5...2016-12-28 23:39:13 EVENT: DISCONNECTED2016-12-28 23:39:13 Raw stats on disconnect: BYTES_OUT : 48 PACKETS_OUT : 3 NETWORK_EOF_ERROR : 3 TRANSPORT_ERROR : 3 N_RECONNECT : 22016-12-28 23:39:13 Performance stats on disconnect: CPU usage (microseconds): 15125 Network bytes per CPU second: 3173 Tunnel bytes per CPU second: 02016-12-28 23:39:13 ----- OpenVPN Stop -----[/spoiler] Thanks, any help would be appreciated. Share this post Link to post
LZ1 672 Posted ... Hello! I'm not sure why you want to set that up, but just in case, there's other guides for iOS if you need it . Although VPN on Demand does sound nifty. Your links didn't work for me either sadly. Hide LZ1's signature Hide all signatures Hi there, are you new to AirVPN? Many of your questions are already answered in this guide. You may also read the Eddie Android FAQ. Moderators do not speak on behalf of AirVPN. Only the Official Staff account does. Please also do not run Tor Exit Servers behind AirVPN, thank you. Did you make a guide or how-to for something? Then contact me to get it listed in my new user guide's Guides Section, so that the community can find it more easily. Share this post Link to post
RVECJSCXEUZCWVBR 0 Posted ... Thanks, I've already used those settings and it did reduce my number of disconnections but I would still get Auth errors. It seems to be switching from Wi-Fi to mobile data, and it becomes even more of a problem when I have 2 other connections running. I remember an old post here that was takling about it, iOS would have 2 connections running for both Wi-Fi and Mobile which can cause a max connections issue. When OpenVPN disconnects there is no way of automaticaly reconnecting unless you use VPNonDemand and certificates. Thanks. Share this post Link to post
Keksjdjdke 35 Posted ... (edited) I managed to get openvpn connect on iOS to stay connected to the airvpn servers. Here are my ovpn settings I use. Added "remote-random" thank you giganerd.clientdev tunproto udpremote-randomremote 173.234.159.194 443 udpremote 199.241.146.178 443 udpremote 104.129.24.154 443 udpremote 199.241.147.34 443 udpremote 46.21.151.106 443 udpremote 107.183.238.178 443 udpremote 23.88.114.42 443 udpremote 23.88.114.50 443 udpremote 173.44.55.178 443 udpremote 149.255.33.154 443 udpremote 198.98.113.154 443 udpremote 64.120.44.138 443 udpremote 104.129.24.178 443 udpremote 96.47.229.58 443 udpremote 173.44.55.154 443 udpremote 198.203.28.42 443 udpremote 23.88.99.194 443 udpremote 104.243.24.235 443 udpremote 199.241.146.162 443 udpremote 94.100.23.162 443 udpremote 104.129.24.186 443 udpremote 107.183.238.194 443 udpremote 107.183.238.186 443 udpremote 46.21.154.82 443 udpremote 71.19.252.31 443 udpremote 71.19.252.26 443 udpremote 71.19.252.21 443 udpremote 71.19.249.195 443 udpremote 199.19.94.132 443 udpremote 184.75.221.2 443 udpremote 199.19.94.61 443 udpremote 199.19.95.187 443 udpremote 104.254.90.250 443 udpremote 104.254.90.242 443 udpremote 199.21.149.44 443 udpremote 104.254.90.234 443 udpremote 184.75.214.162 443 udpremote 184.75.223.234 443 udpremote 184.75.221.210 443 udpremote 184.75.221.162 443 udpremote 184.75.221.170 443 udpremote 104.254.90.202 443 udpremote 199.19.94.12 443 udpremote 184.75.221.202 443 udpremote 162.219.176.2 443 udpremote 184.75.223.210 443 udp resolv-retry 1ping-restart 10nobindpersist-keypersist-tunremote-cert-tls servercipher AES-256-CBCcomp-lzo noverb 3explicit-exit-notify 5ping-restart 5 key-direction 1And here is a photo of the openvpn settings I use. "these are located under iOS settings" try to copy theses settings to your iOS device to see if it fixes your problem. Edited ... by Keksjdjdke 1 LZ1 reacted to this Share this post Link to post
OpenSourcerer 1435 Posted ... You forgot a remote-random, otherwise you will be always connected to the first IP and only if it fails OpenVPN will move on to the second. 1 Keksjdjdke reacted to this Hide OpenSourcerer's signature Hide all signatures NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT. LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too! Want to contact me directly? All relevant methods are on my About me page. Share this post Link to post
Keksjdjdke 35 Posted ... You forgot a remote-random, otherwise you will be always connected to the first IP and only if it fails OpenVPN will move on to the second. Would this be correct? If not where do I add remote-random?clientdev tunproto udpremote-randomremote 173.234.159.194 443 udpremote 199.241.146.178 443 udpremote 104.129.24.154 443 udpremote 199.241.147.34 443 udpremote 46.21.151.106 443 udpremote 107.183.238.178 443 udpremote 23.88.114.42 443 udpremote 23.88.114.50 443 udpremote 173.44.55.178 443 udpremote 149.255.33.154 443 udpremote 198.98.113.154 443 udpremote 64.120.44.138 443 udpremote 104.129.24.178 443 udpremote 96.47.229.58 443 udpremote 173.44.55.154 443 udpremote 198.203.28.42 443 udpremote 23.88.99.194 443 udpremote 104.243.24.235 443 udpremote 199.241.146.162 443 udpremote 94.100.23.162 443 udpremote 104.129.24.186 443 udpremote 107.183.238.194 443 udpremote 107.183.238.186 443 udpremote 46.21.154.82 443 udp resolv-retry 1ping-restart 10nobindpersist-keypersist-tunremote-cert-tls servercipher AES-256-CBCcomp-lzo noverb 3explicit-exit-notify 5ping-restart 5 key-direction 1 Share this post Link to post
OpenSourcerer 1435 Posted ... Yes, that is correct. 1 Keksjdjdke reacted to this Hide OpenSourcerer's signature Hide all signatures NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT. LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too! Want to contact me directly? All relevant methods are on my About me page. Share this post Link to post
Keksjdjdke 35 Posted ... Thank you giganerd, please recommend any more improvements if you can find any. Thanks Share this post Link to post