Connects and disconnects
Posted: Wed Apr 03, 2013 5:11 am
Hello,
I have setup OpenVPN on my iphone. It seems to connect fine from my iphone but then after about 10 secs it just restarts the connection. I am running OpenVPN on my DD-WRT router.
Here is my log from the iphone:
And here is the log from the Router:
Also this is my config for the client:
Any help would be greatly appreciated. I thought maybe it was the IOS. But I have also tried this on a laptop as well with the same keys etc and it does not seem to work.
Thanks very much!
I have setup OpenVPN on my iphone. It seems to connect fine from my iphone but then after about 10 secs it just restarts the connection. I am running OpenVPN on my DD-WRT router.
Here is my log from the iphone:
Code: Select all
2013-04-02 23:37:38 ----- OpenVPN Start -----
2013-04-02 23:37:38 LZO-ASYM init swap=0 asym=0
2013-04-02 23:37:38 EVENT: RESOLVE
2013-04-02 23:37:38 EVENT: WAIT
2013-04-02 23:37:38 Connecting to test.no-ip.org:1194 (193.325.252.67) via TCPv4
2013-04-02 23:37:38 EVENT: CONNECTING
2013-04-02 23:37:38 Tunnel Options:V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,keydir 1,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2013-04-02 23:37:38 Peer Info:
IV_VER=1.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2013-04-02 23:37:39 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=CA, ST=ON, L=Toronto, O=OpenVPN, OU=changeme, CN=OpenVPN-CA, 0x29=DD-WRT, emailAddress=test@gmail.com
subject name : C=CA, ST=ON, L=Toronto, O=OpenVPN, OU=DD-WRT, CN=server, 0x29=DD-WRT, emailAddress=test@gmail.com
issued on : 2013-02-22 18:19:32
expires on : 2023-02-20 18:19:32
signed using : RSA+MD5
RSA key size : 1024 bits
2013-04-02 23:37:39 VERIFY OK: depth=1
cert. version : 3
serial number : 87:2D:F1:A1:86:69:02:C5
issuer name : C=CA, ST=ON, L=Toronto, O=OpenVPN, OU=changeme, CN=OpenVPN-CA, 0x29=DD-WRT, emailAddress=test@gmail.com
subject name : C=CA, ST=ON, L=Toronto, O=OpenVPN, OU=changeme, CN=OpenVPN-CA, 0x29=DD-WRT, emailAddress=test@gmail.com
issued on : 2013-02-22 18:18:04
expires on : 2023-02-20 18:18:04
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-04-02 23:37:39 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-04-02 23:37:39 Session is ACTIVE
2013-04-02 23:37:40 EVENT: GET_CONFIG
2013-04-02 23:37:40 Sending PUSH_REQUEST to server...
2013-04-02 23:37:40 OPTIONS:
0 [route-gateway] [10.8.0.1]
1 [topology] [subnet]
2 [ping] [10]
3 [ping-restart] [120]
4 [socket-flags] [TCP_NODELAY]
5 [ifconfig] [10.8.0.2] [255.255.255.0]
2013-04-02 23:37:40 LZO-ASYM init swap=0 asym=0
2013-04-02 23:37:40 EVENT: ASSIGN_IP
2013-04-02 23:37:40 Connected via tun
2013-04-02 23:37:40 EVENT: CONNECTED @test.no-ip.org:1194 (193.325.252.67) via /TCPv4 on tun/10.8.0.2/
2013-04-02 23:37:48 TCP recv EOF
2013-04-02 23:37:48 Transport Error: Transport error on 'test.no-ip.org: NETWORK_EOF_ERROR
2013-04-02 23:37:48 Client terminated, restarting in 2...
Code: Select all
Serverlog 20130403 00:45:00 N client1/192.168.1.128:50960 Connection reset restarting [0]
20130403 00:45:00 client1/192.168.1.128:50960 SIGUSR1[soft connection-reset] received client-instance restarting
20130403 00:45:00 TCP/UDP: Closing socket
20130403 00:45:00 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:00 D MANAGEMENT: CMD 'status 2'
20130403 00:45:00 MANAGEMENT: Client disconnected
20130403 00:45:00 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:00 D MANAGEMENT: CMD 'log 500'
20130403 00:45:00 MANAGEMENT: Client disconnected
20130403 00:45:02 MULTI: multi_create_instance called
20130403 00:45:02 I Re-using SSL/TLS context
20130403 00:45:02 I LZO compression initialized
20130403 00:45:02 Control Channel MTU parms [ L:1556 D:140 EF:40 EB:0 ET:0 EL:0 ]
20130403 00:45:02 Data Channel MTU parms [ L:1556 D:1450 EF:56 EB:135 ET:0 EL:0 AF:3/1 ]
20130403 00:45:02 Local Options String: 'V4 dev-type tun link-mtu 1556 tun-mtu 1500 proto TCPv4_SERVER comp-lzo cipher AES-128-CBC auth MD5 keysize 128 key-method 2 tls-server'
20130403 00:45:02 Expected Remote Options String: 'V4 dev-type tun link-mtu 1556 tun-mtu 1500 proto TCPv4_CLIENT comp-lzo cipher AES-128-CBC auth MD5 keysize 128 key-method 2 tls-client'
20130403 00:45:02 Local Options hash (VER=V4): 'a4f12474'
20130403 00:45:02 Expected Remote Options hash (VER=V4): '619088b2'
20130403 00:45:02 I TCP connection established with 192.168.1.128:50961
20130403 00:45:02 Socket flags: TCP_NODELAY=1 succeeded
20130403 00:45:02 I TCPv4_SERVER link local: [undef]
20130403 00:45:02 I TCPv4_SERVER link remote: 192.168.1.128:50961
20130403 00:45:02 192.168.1.128:50961 TLS: Initial packet from 192.168.1.128:50961 sid=17c28997 385d87f5
20130403 00:45:03 192.168.1.128:50961 VERIFY OK: depth=1 /C=CA/ST=ON/L=Toronto/O=OpenVPN/OU=changeme/CN=OpenVPN-CA/name=DD-WRT/emailAddress=test@gmail.com
20130403 00:45:03 192.168.1.128:50961 VERIFY OK: depth=0 /C=CA/ST=ON/L=Toronto/O=OpenVPN/OU=DD-WRT/CN=client1/name=DD-WRT/emailAddress=test@gmail.com
20130403 00:45:03 W 192.168.1.128:50961 WARNING: 'link-mtu' is used inconsistently local='link-mtu 1556' remote='link-mtu 1560'
20130403 00:45:03 W 192.168.1.128:50961 WARNING: 'auth' is used inconsistently local='auth MD5' remote='auth SHA1'
20130403 00:45:03 W 192.168.1.128:50961 WARNING: 'keydir' is present in remote config but missing in local config remote='keydir 1'
20130403 00:45:03 192.168.1.128:50961 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
20130403 00:45:03 192.168.1.128:50961 Data Channel Encrypt: Using 128 bit message hash 'MD5' for HMAC authentication
20130403 00:45:03 192.168.1.128:50961 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
20130403 00:45:03 192.168.1.128:50961 NOTE: --mute triggered...
20130403 00:45:03 192.168.1.128:50961 2 variation(s) on previous 3 message(s) suppressed by --mute
20130403 00:45:03 I 192.168.1.128:50961 [client1] Peer Connection Initiated with 192.168.1.128:50961
20130403 00:45:03 client1/192.168.1.128:50961 MULTI: Learn: 10.8.0.2 -> client1/192.168.1.128:50961
20130403 00:45:03 client1/192.168.1.128:50961 MULTI: primary virtual IP for client1/192.168.1.128:50961: 10.8.0.2
20130403 00:45:03 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:03 D MANAGEMENT: CMD 'state'
20130403 00:45:03 MANAGEMENT: Client disconnected
20130403 00:45:03 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:03 D MANAGEMENT: CMD 'state'
20130403 00:45:03 MANAGEMENT: Client disconnected
20130403 00:45:03 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:03 D MANAGEMENT: CMD 'state'
20130403 00:45:03 MANAGEMENT: Client disconnected
20130403 00:45:04 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:04 D MANAGEMENT: CMD 'status 2'
20130403 00:45:04 MANAGEMENT: Client disconnected
20130403 00:45:04 MANAGEMENT: Client connected from 127.0.0.1:5002
20130403 00:45:04 D MANAGEMENT: CMD 'log 500'
19700101 00:00:00
And Here is the config for the router:client
dev tun
proto tcp
remote test.no-ip.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher AES-128-CBC
comp-lzo
verb 4
OpenVPN Server Enable
Start Type WAN Up
Config via GUI
Server mode Router (TUN)
Network 10.8.0.0
Netmask 255.255.255.0
Port 1194
Tunnel Protocol TCP
Encryption Cipher AES-128 CBC
Hash Algorithm MD5
Advanced Options Enable
TLS Cipher None
LZO Compression Yes
Allow Client to Client Enable
Allow duplicate cn
UDP tunnel MTU setting 1500
Any help would be greatly appreciated. I thought maybe it was the IOS. But I have also tried this on a laptop as well with the same keys etc and it does not seem to work.
Thanks very much!