Openvpn not connecting on android 5

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Rutherb
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 21, 2018 10:22 pm

Openvpn not connecting on android 5

Post by Rutherb » Wed Nov 21, 2018 10:39 pm

Hi,
I have been using openvpn connect for about 1 year successfully on Windows 10, iPhone 5 (iOS 10.3) and Samsung s3 (android 4.3). I recently got a Samsung j3 2016 running android 5.1.1. I installed the openvpn connect app on the j3 and installed the same profile I use on the Samsung s3 but when I try to connect the vpn on the j3 it just times out with message "server poll timeout, trying next remote entry...."
It is trying to connect to the correct dns on port 1194 via udp.

Does anyone know why I connect ok on my s3 using android 4.3 but not connect on my j3 using android 5.1.1 when both are using the same profile?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Openvpn not connecting on android 5

Post by TinCanTech » Wed Nov 21, 2018 11:58 pm

Your logs at verb 4 will have answers ..

Rutherb
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 21, 2018 10:22 pm

Re: Openvpn not connecting on android 5

Post by Rutherb » Thu Nov 22, 2018 10:22 am

Hi TinCanTech - I have set the logging to verb in the config files and re-ran the attempt to connect. When I try to connect using the J3 I get no logs in the /var/log/openvpn.log and the connection still times out. When I connect using the S3 the connection does work and I get the below logged in /var/log/openvpn.log - should I be looking at different logs to get info on the J3 issue?

Logs from successful connect with S3 (logs updated to remove ip addresses)

Thu Nov 22 10:01:33 2018 us=410390 MULTI: multi_create_instance called
Thu Nov 22 10:01:33 2018 us=411054 "ip address" Re-using SSL/TLS context
Thu Nov 22 10:01:33 2018 us=411650 "ip address" LZO compression initialized
Thu Nov 22 10:01:33 2018 us=414141 "ip address" Control Channel MTU parms [ L:1570 D:178 EF:78 EB:0 ET:0 EL:0 ]
Thu Nov 22 10:01:33 2018 us=414456 "ip address" Data Channel MTU parms [ L:1570 D:1450 EF:70 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Nov 22 10:01:33 2018 us=415264 "ip address" Local Options String: 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto UDPv4,comp$
Thu Nov 22 10:01:33 2018 us=415465 "ip address" Expected Remote Options String: 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto $
Thu Nov 22 10:01:33 2018 us=415845 "ip address" Local Options hash (VER=V4): '8a3b3cca'
Thu Nov 22 10:01:33 2018 us=416143 "ip address" Expected Remote Options hash (VER=V4): '73e43c96'
Thu Nov 22 10:01:33 2018 us=416577 "ip address" TLS: Initial packet from [AF_INET]"ip address", sid=07119c28 297e36a2
Thu Nov 22 10:01:34 2018 us=474787 "ip address" VERIFY OK: depth=1, CN=ChangeMe
Thu Nov 22 10:01:34 2018 us=478694 "ip address" VERIFY OK: depth=0, CN=brianandroid
Thu Nov 22 10:01:34 2018 us=775434 "ip address" Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Nov 22 10:01:34 2018 us=775810 "ip address"Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Nov 22 10:01:34 2018 us=776063 "ip address" Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Nov 22 10:01:34 2018 us=776312 "ip address" Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Nov 22 10:01:34 2018 us=791827 "ip address" Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit R$
Thu Nov 22 10:01:34 2018 us=792271 "ip address" [brianandroid] Peer Connection Initiated with [AF_INET]"ip address"
Thu Nov 22 10:01:34 2018 us=792787 brianandroid/"ip address" MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Thu Nov 22 10:01:34 2018 us=793430 brianandroid/"ip address" MULTI: Learn: 10.8.0.2 -> brianandroid/"ip address"
Thu Nov 22 10:01:34 2018 us=793656 brianandroid/"ip address" MULTI: primary virtual IP for brianandroid/"ip address": 10.8.$
Thu Nov 22 10:01:34 2018 us=794289 brianandroid/"ip address" PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 22 10:01:34 2018 us=794548 brianandroid/"ip address" send_push_reply(): safe_cap=940
Thu Nov 22 10:01:34 2018 us=794955 brianandroid/"ip address" SENT CONTROL [brianandroid]: 'PUSH_REPLY,route "ip address"
Thu Nov 22 10:02:54 2018 us=567791 brianandroid/"ip address" SIGTERM[soft,remote-exit] received, client-instance exiting
Thu Nov 22 10:04:10 2018 us=555433 MULTI: multi_create_instance called
Thu Nov 22 10:04:10 2018 us=556032 "ip address"Re-using SSL/TLS context
Thu Nov 22 10:04:10 2018 us=556303 "ip address" LZO compression initialized
Thu Nov 22 10:04:10 2018 us=557168 "ip address" Control Channel MTU parms [ L:1570 D:178 EF:78 EB:0 ET:0 EL:0 ]
Thu Nov 22 10:04:10 2018 us=557493 "ip address" Data Channel MTU parms [ L:1570 D:1450 EF:70 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Nov 22 10:04:10 2018 us=558009 "ip address" Local Options String: 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto UDPv4,comp$
Thu Nov 22 10:04:10 2018 us=558202 "ip address" Expected Remote Options String: 'V4,dev-type tun,link-mtu 1570,tun-mtu 1500,proto $
Thu Nov 22 10:04:10 2018 us=558514 "ip address" Local Options hash (VER=V4): '8a3b3cca'
Thu Nov 22 10:04:10 2018 us=558808 "ip address" Expected Remote Options hash (VER=V4): '73e43c96'
Thu Nov 22 10:04:10 2018 us=559320 "ip address" TLS: Initial packet from [AF_INET]"ip address", sid=80e9db55 30a3940f
Thu Nov 22 10:04:11 2018 us=770177 "ip address" VERIFY OK: depth=1, CN=ChangeMe
Thu Nov 22 10:04:11 2018 us=774138 "ip address" VERIFY OK: depth=0, CN=brianandroid
Thu Nov 22 10:04:12 2018 us=108298 "ip address" Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Nov 22 10:04:12 2018 us=108671 "ip address" Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Nov 22 10:04:12 2018 us=108894 "ip address" Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Thu Nov 22 10:04:12 2018 us=109136 "ip address" Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu Nov 22 10:04:12 2018 us=146079 "ip address" Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES256-GCM-SHA384, 2048 bit R$
Thu Nov 22 10:04:12 2018 us=146520 "ip address" [brianandroid] Peer Connection Initiated with [AF_INET]"ip address"
Thu Nov 22 10:04:12 2018 us=146921 brianandroid/"ip address" MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Thu Nov 22 10:04:12 2018 us=147535 brianandroid/"ip address" MULTI: Learn: 10.8.0.2 -> brianandroid/"ip address"
Thu Nov 22 10:04:12 2018 us=147763 brianandroid/"ip address" MULTI: primary virtual IP for brianandroid/"ip address"
Thu Nov 22 10:04:12 2018 us=173245 brianandroid/"ip address" PUSH: Received control message: 'PUSH_REQUEST'
Thu Nov 22 10:04:12 2018 us=173651 brianandroid/"ip address" send_push_reply(): safe_cap=940
Thu Nov 22 10:04:12 2018 us=174071 brianandroid/"ip address" SENT CONTROL [brianandroid]: 'PUSH_REPLY,route "ip address"
Thu Nov 22 10:05:54 2018 us=201438 brianandroid/"ip address" SIGTERM[soft,remote-exit] received, client-instance exiting

Rutherb
OpenVpn Newbie
Posts: 3
Joined: Wed Nov 21, 2018 10:22 pm

Re: Openvpn not connecting on android 5

Post by Rutherb » Fri Nov 23, 2018 1:47 pm

Resolved this thanks it was a simple mistake in transferring an incorrect version of the profile to the new phone :-(

Post Reply