Hi everyone
Yesterday i rent a vps server first day i installed vpn on centos it worked perfectly but second day i changed os to ubuntu 12.04 then i installed open vpn again but now i can connect from my pc but i couldnt from my iphone 5s it gives connection timeout error. Can you help me?
Thanks for all replies and sorry for my bad english.
Connection Timeout Problem
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Connection Timeout Problem
post configs used and more important post logs.
Michael.
Michael.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Sun Mar 01, 2015 11:54 pm
Re: Connection Timeout Problem
2015-03-02 23:50:47 ----- OpenVPN Start -----
OpenVPN core 3.0 ios arm64 64-bit
2015-03-02 23:50:47 UNUSED OPTIONS
0 [setenv] [FORWARD_COMPATIBLE] [1]
3 [nobind]
16 [sndbuf] [100000]
17 [rcvbuf] [100000]
19 [verb] [3]
20 [setenv] [PUSH_PEER_INFO]
29 [CLI_PREF_ALLOW_WEB_IMPORT] [True]
30 [CLI_PREF_ENABLE_CONNECT] [True]
31 [CLI_PREF_ENABLE_XD_PROXY] [True]
32 [WSHOST] [188.166.10.242:443]
33 [WEB_CA_BUNDLE] [-----BEGIN CERTIFICATE----- MIIB9zCCAWCgAwIBAgIEVPNh5zANBgkqhkiG...]
34 [IS_OPENVPN_WEB_CA] [1]
35 [ORGANIZATION] [OpenVPN Technologies, Inc.]
2015-03-02 23:50:47 LZO-ASYM init swap=0 asym=1
2015-03-02 23:50:47 Comp-stub init swap=0
2015-03-02 23:50:47 EVENT: RESOLVE
2015-03-02 23:50:47 Contacting 188.166.10.242:1194 via UDP
2015-03-02 23:50:47 EVENT: WAIT
2015-03-02 23:50:47 SetTunnelSocket returned 1
2015-03-02 23:50:47 Connecting to 188.166.10.242:1194 (188.166.10.242) via UDPv4
2015-03-02 23:50:48 EVENT: CONNECTING
2015-03-02 23:51:27 Session invalidated: KEEPALIVE_TIMEOUT
2015-03-02 23:51:27 Client terminated, restarting in 2...
2015-03-02 23:51:29 EVENT: RECONNECTING
2015-03-02 23:51:29 LZO-ASYM init swap=0 asym=1
2015-03-02 23:51:29 Comp-stub init swap=0
2015-03-02 23:51:29 EVENT: RESOLVE
2015-03-02 23:51:29 Contacting 188.166.10.242:1194 via UDP
2015-03-02 23:51:29 EVENT: WAIT
2015-03-02 23:51:29 SetTunnelSocket returned 1
2015-03-02 23:51:29 Connecting to 188.166.10.242:1194 (188.166.10.242) via UDPv4
2015-03-02 23:51:29 EVENT: CONNECTING
2015-03-02 23:51:47 EVENT: CONNECTION_TIMEOUT [ERR]
2015-03-02 23:51:47 EVENT: DISCONNECTED
2015-03-02 23:51:47 Raw stats on disconnect:
BYTES_IN : 126
BYTES_OUT : 1218
PACKETS_IN : 9
PACKETS_OUT : 29
BUFFER_ERROR : 9
KEEPALIVE_TIMEOUT : 1
CONNECTION_TIMEOUT : 1
N_RECONNECT : 1
2015-03-02 23:51:47 Performance stats on disconnect:
CPU usage (microseconds): 23576
Network bytes per CPU second: 57007
Tunnel bytes per CPU second: 0
2015-03-02 23:51:47 EVENT: DISCONNECT_PENDING
2015-03-02 23:51:47 ----- OpenVPN Stop -----
This is log. Which configs did u mean
OpenVPN core 3.0 ios arm64 64-bit
2015-03-02 23:50:47 UNUSED OPTIONS
0 [setenv] [FORWARD_COMPATIBLE] [1]
3 [nobind]
16 [sndbuf] [100000]
17 [rcvbuf] [100000]
19 [verb] [3]
20 [setenv] [PUSH_PEER_INFO]
29 [CLI_PREF_ALLOW_WEB_IMPORT] [True]
30 [CLI_PREF_ENABLE_CONNECT] [True]
31 [CLI_PREF_ENABLE_XD_PROXY] [True]
32 [WSHOST] [188.166.10.242:443]
33 [WEB_CA_BUNDLE] [-----BEGIN CERTIFICATE----- MIIB9zCCAWCgAwIBAgIEVPNh5zANBgkqhkiG...]
34 [IS_OPENVPN_WEB_CA] [1]
35 [ORGANIZATION] [OpenVPN Technologies, Inc.]
2015-03-02 23:50:47 LZO-ASYM init swap=0 asym=1
2015-03-02 23:50:47 Comp-stub init swap=0
2015-03-02 23:50:47 EVENT: RESOLVE
2015-03-02 23:50:47 Contacting 188.166.10.242:1194 via UDP
2015-03-02 23:50:47 EVENT: WAIT
2015-03-02 23:50:47 SetTunnelSocket returned 1
2015-03-02 23:50:47 Connecting to 188.166.10.242:1194 (188.166.10.242) via UDPv4
2015-03-02 23:50:48 EVENT: CONNECTING
2015-03-02 23:51:27 Session invalidated: KEEPALIVE_TIMEOUT
2015-03-02 23:51:27 Client terminated, restarting in 2...
2015-03-02 23:51:29 EVENT: RECONNECTING
2015-03-02 23:51:29 LZO-ASYM init swap=0 asym=1
2015-03-02 23:51:29 Comp-stub init swap=0
2015-03-02 23:51:29 EVENT: RESOLVE
2015-03-02 23:51:29 Contacting 188.166.10.242:1194 via UDP
2015-03-02 23:51:29 EVENT: WAIT
2015-03-02 23:51:29 SetTunnelSocket returned 1
2015-03-02 23:51:29 Connecting to 188.166.10.242:1194 (188.166.10.242) via UDPv4
2015-03-02 23:51:29 EVENT: CONNECTING
2015-03-02 23:51:47 EVENT: CONNECTION_TIMEOUT [ERR]
2015-03-02 23:51:47 EVENT: DISCONNECTED
2015-03-02 23:51:47 Raw stats on disconnect:
BYTES_IN : 126
BYTES_OUT : 1218
PACKETS_IN : 9
PACKETS_OUT : 29
BUFFER_ERROR : 9
KEEPALIVE_TIMEOUT : 1
CONNECTION_TIMEOUT : 1
N_RECONNECT : 1
2015-03-02 23:51:47 Performance stats on disconnect:
CPU usage (microseconds): 23576
Network bytes per CPU second: 57007
Tunnel bytes per CPU second: 0
2015-03-02 23:51:47 EVENT: DISCONNECT_PENDING
2015-03-02 23:51:47 ----- OpenVPN Stop -----
This is log. Which configs did u mean
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Connection Timeout Problem
which version did you installed?didnt you configure it?i installed vpn on centos
please post server/clients configs and server logs
Michael.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Jul 16, 2015 8:58 pm
Re: Connection Timeout Problem
Same issue with same logs, and it is connecting perfectly under W7 with the same configuration files.
Environment iPad :
- OpenVPN 1.0.5
Environment W7:
- OpenVPN GUI v2.3.6
Certificates are verified OK serverside and cliente side. It is connected successfully.
Environment server on synology:
OpenVPN 2.3.6 armle-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jun 13 2015
library versions: OpenSSL 1.0.1p-fips 9 Jul 2015
Server config:
----------------
Client config:
---------------
client logs :
-------------
Is someone knows or has already seen this behavior on iPhone/ iPad ?
Thanks for your support.
Environment iPad :
- OpenVPN 1.0.5
Environment W7:
- OpenVPN GUI v2.3.6
Certificates are verified OK serverside and cliente side. It is connected successfully.
Environment server on synology:
OpenVPN 2.3.6 armle-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jun 13 2015
library versions: OpenSSL 1.0.1p-fips 9 Jul 2015
Server config:
----------------
Code: Select all
push "route 10.0.0.0 255.255.255.0"
push "route 10.8.0.0 255.255.255.0"
comp-lzo
dev tun
management 127.0.0.1 1195
server 10.8.0.0 255.255.255.0
tls-server
dh /var/packages/VPNCenter/target/etc/openvpn/keys/dh2048.pem
ca /var/packages/VPNCenter/target/etc/openvpn/keys/ca.crt
cert /var/packages/VPNCenter/target/etc/openvpn/keys/server.crt
key /var/packages/VPNCenter/target/etc/openvpn/keys/server.key
tls-auth /var/packages/VPNCenter/target/etc/openvpn/keys/ta.key 0
max-clients 5
comp-lzo
persist-tun
persist-key
client-to-client
cipher AES-256-CBC
auth SHA1
verb 4
log-append /var/log/openvpn.log
#keepalive 10 60
keepalive 60 400
reneg-sec 3600
proto tcp
plugin /var/packages/VPNCenter/target/lib/radiusplugin.so /var/packages/VPNCenter/target/etc/openvpn/radiusplugin.cnf
#client-cert-not-required
#username-as-common-name
#duplicate-cn
status /tmp/ovpn_status_2_result 30
status-version 2
proto tcp6-server
port 1194
---------------
Code: Select all
client
float
dev tun
remote mydomain
port 443
resolv-retry infinite
nobind
redirect-gateway
pull
proto tcp-client
script-security 2
tls-client
cipher AES-256-CBC
reneg-sec 3600
auth-user-pass
comp-lzo
verb 5
setenv CLIENT_CERT 0
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
</key>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-auth>
-------------
Code: Select all
2015-07-16 23:36:06 ----- OpenVPN Start ----- OpenVPN core 3.0 ios armv7a thumb2 32-bit
2015-07-16 23:36:06 UNUSED OPTIONS
5 [resolv-retry] [infinite]
6 [nobind]
8 [pull]
10 [script-security] [2]
11 [tls-client]
16 [verb] [5]
17 [setenv] [CLIENT_CERT] [0]
19 [cert] [-----BEGIN CERTIFICATE----- MIIHHjCCBgagAwIBAgIDDjW3MA0GCSqGSIb3...]
2015-07-16 23:36:06 LZO-ASYM init swap=0 asym=0
2015-07-16 23:36:06 EVENT: RESOLVE
2015-07-16 23:36:06 Contacting xxx.xxx.xxx.xxx:443 via TCP
2015-07-16 23:36:06 EVENT: WAIT
2015-07-16 23:36:06 SetTunnelSocket returned 1
2015-07-16 23:36:06 Connecting to mydomain.com:443 (xxx.xxx.xxx.xxx) via TCPv4
2015-07-16 23:36:06 EVENT: CONNECTING
2015-07-16 23:36:46 Session invalidated: KEEPALIVE_TIMEOUT
2015-07-16 23:36:46 Client terminated, restarting in 2...
2015-07-16 23:36:48 EVENT: RECONNECTING
2015-07-16 23:36:48 LZO-ASYM init swap=0 asym=0
2015-07-16 23:36:48 EVENT: RESOLVE
2015-07-16 23:36:48 Contacting xxx.xxx.xxx.xxx:443 via TCP
2015-07-16 23:36:48 EVENT: WAIT
2015-07-16 23:36:48 SetTunnelSocket returned 1
2015-07-16 23:36:55 Connecting to mydomain.com:443 (xxx.xxx.xxx.xxx) via TCPv4
2015-07-16 23:36:55 EVENT: CONNECTING
2015-07-16 23:37:06 EVENT: CONNECTION_TIMEOUT [ERR]
2015-07-16 23:37:06 EVENT: DISCONNECTED
2015-07-16 23:37:06 Raw stats on disconnect:
BYTES_IN : 304
BYTES_OUT : 304
PACKETS_IN : 4
PACKETS_OUT : 6
REPLAY_ERROR : 2
KEEPALIVE_TIMEOUT : 1
CONNECTION_TIMEOUT : 1
N_RECONNECT : 1
PKTID_TCP_OUT_OF_SEQ : 2
2015-07-16 23:37:06 Performance stats on disconnect:
CPU usage (microseconds): 36289
Network bytes per CPU second: 16754
Tunnel bytes per CPU second: 0
2015-07-16 23:37:06 EVENT: DISCONNECT_PENDING
2015-07-16 23:37:06 ----- OpenVPN Stop -----
Thanks for your support.
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Connection Timeout Problem
your config posted2015-03-02 23:50:47 Contacting 188.166.10.242:1194 via UDP
are you using tcp or udp?proto tcp-client
in the second logs it reports tcp....
how are you trying to connect? while in the same lan?
Michael.