Jump to content
Not connected, Your IP: 18.117.75.53

Recommended Posts

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:50
2016-12-28 23:42:54 Keychain Cert Extraction: 1 certificate(s) found
2016-12-28 23:42:54 Frame=512/2048/512 mssfix-ctrl=1250
2016-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: 0
2016-12-28 23:42:54 EVENT: DISCONNECT_PENDING
2016-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:50
2016-12-28 23:39:01 Keychain Cert Extraction: 1 certificate(s) found
2016-12-28 23:39:01 Frame=512/2048/512 mssfix-ctrl=1250
2016-12-28 23:39:01 UNUSED OPTIONS
4 [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: RESOLVE
2016-12-28 23:39:01 Contacting 213.152.161.34:443 via TCP
2016-12-28 23:39:01 EVENT: WAIT
2016-12-28 23:39:01 SetTunnelSocket returned 1
2016-12-28 23:39:01 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv4
2016-12-28 23:39:01 TCP recv EOF
2016-12-28 23:39:01 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR
2016-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-----d
2016-12-28 23:39:04 RECONNECT TEST: ReachableViaWiFi
2016-12-28 23:39:06 EVENT: RECONNECTING
2016-12-28 23:39:06 Contacting 213.152.161.34:443 via TCP
2016-12-28 23:39:06 EVENT: WAIT
2016-12-28 23:39:06 SetTunnelSocket returned 1
2016-12-28 23:39:06 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv4
2016-12-28 23:39:06 TCP recv EOF
2016-12-28 23:39:06 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR
2016-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: ReachableViaWiFi
2016-12-28 23:39:11 EVENT: RECONNECTING
2016-12-28 23:39:11 Contacting 213.152.161.34:443 via TCP
2016-12-28 23:39:11 EVENT: WAIT
2016-12-28 23:39:11 SetTunnelSocket returned 1
2016-12-28 23:39:11 Connecting to [213.152.161.34]:443 (213.152.161.34) via TCPv4
2016-12-28 23:39:11 TCP recv EOF
2016-12-28 23:39:11 Transport Error: Transport error on '213.152.161.34: NETWORK_EOF_ERROR
2016-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: DISCONNECTED
2016-12-28 23:39:13 Raw stats on disconnect:
  BYTES_OUT : 48
  PACKETS_OUT : 3
  NETWORK_EOF_ERROR : 3
  TRANSPORT_ERROR : 3
  N_RECONNECT : 2
2016-12-28 23:39:13 Performance stats on disconnect:
  CPU usage (microseconds): 15125
  Network bytes per CPU second: 3173
  Tunnel bytes per CPU second: 0
2016-12-28 23:39:13 ----- OpenVPN Stop -----
[/spoiler]

 

Thanks, any help would be appreciated.

Share this post


Link to post

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.


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

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

client
dev tun
proto udp
remote-random
remote 173.234.159.194 443 udp
remote 199.241.146.178 443 udp
remote 104.129.24.154 443 udp
remote 199.241.147.34 443 udp
remote 46.21.151.106 443 udp
remote 107.183.238.178 443 udp
remote 23.88.114.42 443 udp
remote 23.88.114.50 443 udp
remote 173.44.55.178 443 udp
remote 149.255.33.154 443 udp
remote 198.98.113.154 443 udp
remote 64.120.44.138 443 udp
remote 104.129.24.178 443 udp
remote 96.47.229.58 443 udp
remote 173.44.55.154 443 udp
remote 198.203.28.42 443 udp
remote 23.88.99.194 443 udp
remote 104.243.24.235 443 udp
remote 199.241.146.162 443 udp
remote 94.100.23.162 443 udp
remote 104.129.24.186 443 udp
remote 107.183.238.194 443 udp
remote 107.183.238.186 443 udp
remote 46.21.154.82 443 udp
remote 71.19.252.31 443 udp
remote 71.19.252.26 443 udp
remote 71.19.252.21 443 udp
remote 71.19.249.195 443 udp
remote 199.19.94.132 443 udp
remote 184.75.221.2 443 udp
remote 199.19.94.61 443 udp
remote 199.19.95.187 443 udp
remote 104.254.90.250 443 udp
remote 104.254.90.242 443 udp
remote 199.21.149.44 443 udp
remote 104.254.90.234 443 udp
remote 184.75.214.162 443 udp
remote 184.75.223.234 443 udp
remote 184.75.221.210 443 udp
remote 184.75.221.162 443 udp
remote 184.75.221.170 443 udp
remote 104.254.90.202 443 udp
remote 199.19.94.12 443 udp
remote 184.75.221.202 443 udp
remote 162.219.176.2 443 udp
remote 184.75.223.210 443 udp
 
 
resolv-retry 1
ping-restart 10
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo no
verb 3
explicit-exit-notify 5
ping-restart 5
 
key-direction 1
And 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

Share this post


Link to post

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.


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

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?

client
dev tun
proto udp
remote-random
remote 173.234.159.194 443 udp
remote 199.241.146.178 443 udp
remote 104.129.24.154 443 udp
remote 199.241.147.34 443 udp
remote 46.21.151.106 443 udp
remote 107.183.238.178 443 udp
remote 23.88.114.42 443 udp
remote 23.88.114.50 443 udp
remote 173.44.55.178 443 udp
remote 149.255.33.154 443 udp
remote 198.98.113.154 443 udp
remote 64.120.44.138 443 udp
remote 104.129.24.178 443 udp
remote 96.47.229.58 443 udp
remote 173.44.55.154 443 udp
remote 198.203.28.42 443 udp
remote 23.88.99.194 443 udp
remote 104.243.24.235 443 udp
remote 199.241.146.162 443 udp
remote 94.100.23.162 443 udp
remote 104.129.24.186 443 udp
remote 107.183.238.194 443 udp
remote 107.183.238.186 443 udp
remote 46.21.154.82 443 udp
 
resolv-retry 1
ping-restart 10
nobind
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
comp-lzo no
verb 3
explicit-exit-notify 5
ping-restart 5
 
key-direction 1

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...