TinCanTech wrote
In this case vpn_gateway is the desired gateway (which is the default I believe)
Yes, it is, but other clients (Windows and Linux) can reach each other without such options.
TinCanTech wrote
Openvpn server and client log files at verb 4 ..
This is from server:
]
Mon Feb 5 18:04:14 2018 us=624315 MULTI: multi_create_instance called
Mon Feb 5 18:04:14 2018 us=624548 31.173.103.59:51418 Re-using SSL/TLS context
Mon Feb 5 18:04:14 2018 us=624741 31.173.103.59:51418 Control Channel MTU parms [ L:1621 D:1212 EF:38 EB:0 ET:0 EL:3 ]
Mon Feb 5 18:04:14 2018 us=624771 31.173.103.59:51418 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
Mon Feb 5 18:04:14 2018 us=624882 31.173.103.59:51418 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Mon Feb 5 18:04:14 2018 us=624979 31.173.103.59:51418 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Mon Feb 5 18:04:14 2018 us=625048 31.173.103.59:51418 TLS: Initial packet from [AF_INET]31.173.103.59:51418, sid=f1a15c1a 8f8284b9
Mon Feb 5 18:04:16 2018 us=98047 31.173.103.59:51418 VERIFY OK: depth=1, C=RU, ST=45, L=Kgn, O=XM, OU=XmUnit, CN=XM CA, name=EasyRSA, emailAddress=XXX@YYY.ZZ
Mon Feb 5 18:04:16 2018 us=98507 31.173.103.59:51418 VERIFY OK: depth=0, C=RU, ST=45, L=Kgn, O=XM, OU=XmUnit, CN=XXXX-cell, name=EasyRSA, emailAddress=XXX@YYY.ZZ
Mon Feb 5 18:04:16 2018 us=171519 31.173.103.59:51418 peer info: IV_GUI_VER=net.openvpn.connect.android_1.1.27-96
Mon Feb 5 18:04:16 2018 us=171808 31.173.103.59:51418 peer info: IV_VER=3.1.2
Mon Feb 5 18:04:16 2018 us=171926 31.173.103.59:51418 peer info: IV_PLAT=android
Mon Feb 5 18:04:16 2018 us=172047 31.173.103.59:51418 peer info: IV_NCP=2
Mon Feb 5 18:04:16 2018 us=172186 31.173.103.59:51418 peer info: IV_TCPNL=1
Mon Feb 5 18:04:16 2018 us=172309 31.173.103.59:51418 peer info: IV_PROTO=2
Mon Feb 5 18:04:16 2018 us=172457 31.173.103.59:51418 peer info: IV_IPv6=0
Mon Feb 5 18:04:16 2018 us=172574 31.173.103.59:51418 peer info: IV_AUTO_SESS=1
Mon Feb 5 18:04:16 2018 us=172694 31.173.103.59:51418 peer info: IV_BS64DL=1
Mon Feb 5 18:04:16 2018 us=237378 31.173.103.59:51418 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Mon Feb 5 18:04:16 2018 us=237658 31.173.103.59:51418 [XXXX-cell] Peer Connection Initiated with [AF_INET]31.173.103.59:51418
Mon Feb 5 18:04:16 2018 us=237845 XXXX-cell/31.173.103.59:51418 MULTI_sva: pool returned IPv4=10.89.222.4, IPv6=(Not enabled)
Mon Feb 5 18:04:16 2018 us=238010 XXXX-cell/31.173.103.59:51418 MULTI: Learn: 10.89.222.4 -> XXXX-cell/31.173.103.59:51418
Mon Feb 5 18:04:16 2018 us=238116 XXXX-cell/31.173.103.59:51418 MULTI: primary virtual IP for XXXX-cell/31.173.103.59:51418: 10.89.222.4
Mon Feb 5 18:04:16 2018 us=243507 XXXX-cell/31.173.103.59:51418 PUSH: Received control message: 'PUSH_REQUEST'
Mon Feb 5 18:04:16 2018 us=243756 XXXX-cell/31.173.103.59:51418 SENT CONTROL [XXXX-cell]: 'PUSH_REPLY,route-gateway 10.89.222.1,topology subnet,ping 10,ping-restart 120,ifconfig 10.89.222.4 255.255.255.0,peer-id 1,cipher AES-256-GCM' (status=1)
Mon Feb 5 18:04:16 2018 us=243939 XXXX-cell/31.173.103.59:51418 Data Channel: using negotiated cipher 'AES-256-GCM'
Mon Feb 5 18:04:16 2018 us=244113 XXXX-cell/31.173.103.59:51418 Data Channel MTU parms [ L:1549 D:1450 EF:49 EB:406 ET:0 EL:3 ]
Mon Feb 5 18:04:16 2018 us=244431 XXXX-cell/31.173.103.59:51418 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Mon Feb 5 18:04:16 2018 us=244567 XXXX-cell/31.173.103.59:51418 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
And from Android:
http://ibb.co/bLB7dx
http://ibb.co/jEezrH
http://ibb.co/ebv5WH
http://ibb.co/giYykc
http://ibb.co/mhhr5c
So, the Android system does not route even for the inner VPN address trough the tun interface.
This is the screenshot when I access the Internet via corporate WiFi, and we see that the phone tries to reach 10.89.222.1 (inner VPN server's address) through the default route, as I traceroute some Internet public address.
http://ibb.co/hLoWMH
But it has to reach it just in one hop, because this is the same network.
I'm absolutely sure this is an Android routing issue, not the OpenVPN Connect one. I just don't know how to solve it.