Hmmm... I think the problem is even bigger.
I tested the server again with protocol TCP. I thought this worked well on my iPhone with 4g cellular. When the connection is made, I go to
http://whatsmyip.org and see the IP adres of my iPhone, not the IP adres at home, where my server is.
I made a port forwarding rule (1191 to 192.168.1.1 = my router), no change.
This isn't good, right?
OPENVPN LOG:
2016-01-09 11:37:12 ----- OpenVPN Start -----
OpenVPN core 3.0 ios arm64 64-bit
2016-01-09 11:37:12 UNUSED OPTIONS
6 [keepalive] [15] [60]
12 [resolv-retry] [infinite]
13 [nobind]
2016-01-09 11:37:12 LZO-ASYM init swap=0 asym=0
2016-01-09 11:37:12 EVENT: RESOLVE
2016-01-09 11:37:13 Contacting 12.34.567.89:1194 via TCP
2016-01-09 11:37:13 EVENT: WAIT
2016-01-09 11:37:13 SetTunnelSocket returned 1
2016-01-09 11:37:13 Connecting to blablabla.net:1194 (12.34.567.89) via TCPv4
2016-01-09 11:37:13 EVENT: CONNECTING
2016-01-09 11:37:13 Tunnel Options:V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2016-01-09 11:37:13 Creds: Username/Password
2016-01-09 11:37:13 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 1.0.5-177
IV_VER=3.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2016-01-09 11:37:13 VERIFY OK: depth=1
cert. version : 3
serial number : D4:6D:B4:6D:05:FF:47:1E
issuer name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC68U, emailAddress=
me@myhost.mydomain
subject name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC68U, emailAddress=
me@myhost.mydomain
issued on : 2016-01-04 19:38:18
expires on : 2026-01-01 19:38:18
signed using : RSA with SHA1
RSA key size : 1024 bits
basic constraints : CA=true
2016-01-09 11:37:13 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC68U, emailAddress=
me@myhost.mydomain
subject name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC68U, emailAddress=
me@myhost.mydomain
issued on : 2016-01-04 19:38:20
expires on : 2026-01-01 19:38:20
signed using : RSA with SHA1
RSA key size : 1024 bits
basic constraints : CA=false
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2016-01-09 11:37:14 SSL Handshake: TLSv1.0/TLS-DHE-RSA-WITH-AES-256-CBC-SHA
2016-01-09 11:37:14 Session is ACTIVE
2016-01-09 11:37:14 EVENT: GET_CONFIG
2016-01-09 11:37:14 Sending PUSH_REQUEST to server...
2016-01-09 11:37:14 OPTIONS:
0 [route] [192.168.1.0] [255.255.255.0]
1 [route] [10.8.0.1]
2 [topology] [net30]
3 [ping] [15]
4 [ping-restart] [60]
5 [ifconfig] [10.8.0.6] [10.8.0.5]
2016-01-09 11:37:14 LZO-ASYM init swap=0 asym=0
2016-01-09 11:37:14 EVENT: ASSIGN_IP
2016-01-09 11:37:14 Connected via tun
2016-01-09 11:37:14 EVENT: CONNECTED
bla@blablabla.net:1194 (12.34.567.89) via /TCPv4 on tun/10.8.0.6/
2016-01-09 11:37:14 SetStatus Connected
2016-01-09 11:37:23 TUN reset routes
2016-01-09 11:37:23 EVENT: DISCONNECTED
2016-01-09 11:37:23 Raw stats on disconnect:
BYTES_IN : 3836
BYTES_OUT : 2822
PACKETS_IN : 22
PACKETS_OUT : 39
2016-01-09 11:37:23 Performance stats on disconnect:
CPU usage (microseconds): 243570
Network bytes per CPU second: 27335
Tunnel bytes per CPU second: 0
2016-01-09 11:37:23 ----- OpenVPN Stop -----