TinCanTech wrote: ↑Mon May 07, 2018 3:35 pm
Can you give full details of your device ? iOS Versions, device name/version etc .. as much detail as you can find. I do not know enough about iOS to identify what you are using but it is possible some incompatibility or even bug has got into openvpn .. This is why we need as much detail as you can give
Here are the infos of one of the iOS devices:
Code: Select all
Operating System:
- system: iOS 11.3.1
- system build: 15E302
- multitasking support: Yes
- kernel: Darwin 17.5.0
Device Information:
- device: iPad Air 2
- device ID: iPad5,4
- model: J82AP
- name: iPad
- hostname: iPad
CPU Information:
- CPU model: Apple A8X
- GPU model: PowerVR G6850
- motion coprocessor: M8
- core number: 3
- CPU architecture: 64-bit
- CPU frequency: 1500 MHz
- TB frequency: 24 MHz
- L1 cache size: 64 KB
- L1D cache size: 64 KB
- L2 cache size: 2048 KB
- byteorder: 1234
- cacheline: 64
Hardware Features:
- display resolution: 2048 x 1536
- pixel density: 264 ppi
- battery voltage: 3.75 V
- battery capacity: 7340 mAh
- rear camera: 8 MP
- front camera: 1.2 MP
- touchscreen: Yes
- microphone: Yes
- speaker: Yes
- wi-fi: Yes
- bluetooth: Yes
- nfc: No
- accelerometer: Yes
- gyroscopic sensor: Yes
- ambient light sensor: Yes
- proximity sensor: No
- fingerprint sensor: Yes
- magnetometer: Yes
- barometer: Yes
- phone: No
- GPS: Yes
TinCanTech wrote: ↑Mon May 07, 2018 3:35 pm
Also, please try a --
proto tcp tunnel, the result of that can give some very useful indicators ..
Unfortunately I can't do that at the moment since I have to ask the network admin to configure the network's firewall to allow tcp traffic for OpenVPN.
TinCanTech wrote: ↑Mon May 07, 2018 3:35 pm
Edit: Also, just an idea .. can you try running the server on a Linux PC .. not your ARM Raspberry Pi.
(alternatively, I could give you a temporary account on my system)
I spend half of the day to try out a few things:
- I set up an Ubuntu 18.04 LTS (Bionic Beaver) server on a local VM in my LAN (Virtual Box, OpenVPN version 2.4.4)
- I cloned the Raspberry server's SSD to setup an exact clone in my own LAN
In both cases the only things I changed was the IP addresses of the machines and I commented out the
push "route...." and
route statements in the server's config:
Code: Select all
proto udp
port 1194
dev tun
server 10.205.76.0 255.255.255.0
topology subnet
persist-key
persist-tun
keepalive 10 60
#duplicate-cn
#ccd-exclusive
user nobody
group nogroup
daemon
verb 4
tls-version-min 1.2
cipher AES-256-CBC
auth SHA256
remote-cert-tls client
management 127.0.0.1 5555
client-config-dir /etc/openvpn/ccd
tls-auth /etc/openvpn/keys/ta.key 0
dh /etc/openvpn/keys/dh2048.pem
pkcs12 /etc/openvpn/keys/OpenVPN_PAW_Server.p12
crl-verify /etc/openvpn/keys/OpenVPN_PAW_CRL.pem
#push "route 192.168.193.0 255.255.255.0"
#route 192.168.0.0 255.255.255.0
#client-connect /etc/openvpn/statuschange.sh
#client-disconnect /etc/openvpn/statuschange.sh
#script-security 2
In both cases I had NO errors at all when connecting with the iOS devices. I also never had any problems when connecting with a Windows Notebook (WLAN, 4G).
Thus my conclusions are (unfortunately contradictory):
- There must be a problem "in between", eg. concerning the routers on the way. Since the problem exists no matter what connection I use (4G, WLAN), it could be a problem on the server side. Is it possible that a router causes the problem? QoS? Firewall? I don't know...
- The problem does not occur on a Windows Notebook (WLAN and 4G). Thus I still think it is a problem concerning the iOS App?!
As I said: the main problem is the crashing app since I cannot see the log files!
Here is a complete log of a session with the local Raspberry server and one of the iOS devices:
Code: Select all
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: MULTI: multi_create_instance called
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Re-using SSL/TLS context
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Control Channel MTU parms [ L:1621 D:1172 EF:78 EB:0 ET:0 EL:3 ]
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1569,tun-mtu 1500,proto
UDPv4,keydir 0,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-server'
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1569,tun-mtu 1
500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA256,keysize 256,tls-auth,key-method 2,tls-client'
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 TLS: Initial packet from [AF_INET]192.168.0.143:52227, sid=f30ac251 100c2e74
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 VERIFY OK: depth=1, C=DE, ST=RLP, L=Sprendlingen, O=Praxis am Wißberg, OU=IT, CN=
OpenVPN_PAW_CA, emailAddress=paw@fenta.org
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Validating certificate key usage
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 ++ Certificate has key usage 0080, expects 0080
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 VERIFY KU OK
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Validating certificate extended key usage
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 ++ Certificate has EKU (str) TLS Web Client Authentication, expects TLS Web Clien
t Authentication
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 VERIFY EKU OK
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 VERIFY OK: depth=0, C=DE, ST=RLP, L=Sprendlingen, O=Praxis am Wißberg, OU=IT, CN=
OpenVPN_PAW_ts, emailAddress=paw@fenta.org
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_GUI_VER=net.openvpn.connect.ios_1.2.9-0
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_VER=3.2
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_PLAT=ios
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_NCP=2
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_TCPNL=1
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_PROTO=2
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 peer info: IV_AUTO_SESS=1
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384, 2048 bi
t RSA
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: 192.168.0.143:52227 [OpenVPN_PAW_ts] Peer Connection Initiated with [AF_INET]192.168.0.143:52227
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 MULTI_sva: pool returned IPv4=10.205.76.2, IPv6=(Not enabled)
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 MULTI: Learn: 10.205.76.2 -> OpenVPN_PAW_ts/192.168.0.143:52227
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 MULTI: primary virtual IP for OpenVPN_PAW_ts/192.168.0.143:52227:
10.205.76.2
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 PUSH: Received control message: 'PUSH_REQUEST'
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 SENT CONTROL [OpenVPN_PAW_ts]: 'PUSH_REPLY,route-gateway 10.205.76
.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.205.76.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' (status=1)
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 Data Channel MTU parms [ L:1549 D:1450 EF:49 EB:406 ET:0 EL:3 ]
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 Data Channel Encrypt: Cipher 'AES-256-GCM' initialized with 256 bi
t key
May 10 12:50:04 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 Data Channel Decrypt: Cipher 'AES-256-GCM' initialized with 256 bi
t key
May 10 12:50:27 openvpn ovpn-OpenVPN_PAW_Server_udp[355]: OpenVPN_PAW_ts/192.168.0.143:52227 SIGTERM[soft,remote-exit] received, client-instance exiting
Is there anything else I can do to help to find the problem?