[Solved] error when connecting to vpn server
Posted: Wed Sep 18, 2013 10:41 am
Hiya,
I've been trying to use OpenVPN connect for iPhone but I'm running into an issue where OVPNC refuses to connect to my server; I do have OpenVPN for android and that works perfectly fine, and the same configurations are used between my windows and mac machines as well. To the point, here is the error log I'm getting from OVPNC:
2013-09-18 14:25:09 VERIFY OK: depth=1
cert. version : 3
serial number : BF:76:68:E4:74:0B:CC:D4
issuer name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, CN=Fort-Funston CA, emailAddress=me@myhost.mydomain
subject name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, CN=Fort-Funston CA, emailAddress=me@myhost.mydomain
issued on : 2010-09-08 17:36:53
expires on : 2020-09-05 17:36:53
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-09-18 14:25:11 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-09-18 14:25:11 Session is ACTIVE
2013-09-18 14:25:12 EVENT: GET_CONFIG
2013-09-18 14:25:12 Sending PUSH_REQUEST to server...
2013-09-18 14:25:12 OPTIONS:
0 [redirect-gateway] [def1]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [dhcp-option] [DNS] [8.8.4.4]
3 [route] [10.9.0.0] [255.255.255.0]
4 [topology] [net30]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [10.9.0.26] [255.255.255.252]
2013-09-18 14:25:12 LZO-ASYM init swap=0 asym=0
2013-09-18 14:25:12 EVENT: ASSIGN_IP
2013-09-18 14:25:12 TUN Error: tun_builder_error: ifconfig addresses are not in the same /30 subnet (topology net30)
2013-09-18 14:25:12 EVENT: TUN_SETUP_FAILED tun_builder_error: ifconfig addresses are not in the same /30 subnet (topology net30) [ERR]
2013-09-18 14:25:12 EVENT: DISCONNECTED
2013-09-18 14:25:12 Raw stats on disconnect:
BYTES_IN : 4607
BYTES_OUT : 3490
PACKETS_IN : 35
PACKETS_OUT : 35
TUN_SETUP_FAILED : 1
2013-09-18 14:25:12 Performance stats on disconnect:
CPU usage (microseconds): 192145
Network bytes per CPU second: 42140
Tunnel bytes per CPU second: 0
2013-09-18 14:25:12 ----- OpenVPN Stop -----
2013-09-18 14:25:12 EVENT: DISCONNECT_PENDING
My server conf is the following:
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
client-to-client
cipher BF-CBC
comp-lzo
server 10.9.0.0 255.255.255.0
#push "topology subnet"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
#route 192.168.1.0 255.255.255.0
max-clients 40
client-config-dir /etc/openvpn/ccd
crl-verify /etc/openvpn/easy-rsa/2.0/keys/crl.pem
user nobody
group nogroup
keepalive 10 120
status /etc/openvpn/log/faster-status.log
log /etc/openvpn/log/faster.log
verb 4
mute 20
and the conents of the ccd file that the common name referrers to is (i want my devices to be assigned static ips when connected):
ifconfig-push 10.9.0.26 255.255.255.0
Does anyone know what I'm doing wrong?
Any help would be appreciated.
Thank you all in advance.
I've been trying to use OpenVPN connect for iPhone but I'm running into an issue where OVPNC refuses to connect to my server; I do have OpenVPN for android and that works perfectly fine, and the same configurations are used between my windows and mac machines as well. To the point, here is the error log I'm getting from OVPNC:
2013-09-18 14:25:09 VERIFY OK: depth=1
cert. version : 3
serial number : BF:76:68:E4:74:0B:CC:D4
issuer name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, CN=Fort-Funston CA, emailAddress=me@myhost.mydomain
subject name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, CN=Fort-Funston CA, emailAddress=me@myhost.mydomain
issued on : 2010-09-08 17:36:53
expires on : 2020-09-05 17:36:53
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-09-18 14:25:11 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-09-18 14:25:11 Session is ACTIVE
2013-09-18 14:25:12 EVENT: GET_CONFIG
2013-09-18 14:25:12 Sending PUSH_REQUEST to server...
2013-09-18 14:25:12 OPTIONS:
0 [redirect-gateway] [def1]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [dhcp-option] [DNS] [8.8.4.4]
3 [route] [10.9.0.0] [255.255.255.0]
4 [topology] [net30]
5 [ping] [10]
6 [ping-restart] [120]
7 [ifconfig] [10.9.0.26] [255.255.255.252]
2013-09-18 14:25:12 LZO-ASYM init swap=0 asym=0
2013-09-18 14:25:12 EVENT: ASSIGN_IP
2013-09-18 14:25:12 TUN Error: tun_builder_error: ifconfig addresses are not in the same /30 subnet (topology net30)
2013-09-18 14:25:12 EVENT: TUN_SETUP_FAILED tun_builder_error: ifconfig addresses are not in the same /30 subnet (topology net30) [ERR]
2013-09-18 14:25:12 EVENT: DISCONNECTED
2013-09-18 14:25:12 Raw stats on disconnect:
BYTES_IN : 4607
BYTES_OUT : 3490
PACKETS_IN : 35
PACKETS_OUT : 35
TUN_SETUP_FAILED : 1
2013-09-18 14:25:12 Performance stats on disconnect:
CPU usage (microseconds): 192145
Network bytes per CPU second: 42140
Tunnel bytes per CPU second: 0
2013-09-18 14:25:12 ----- OpenVPN Stop -----
2013-09-18 14:25:12 EVENT: DISCONNECT_PENDING
My server conf is the following:
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
client-to-client
cipher BF-CBC
comp-lzo
server 10.9.0.0 255.255.255.0
#push "topology subnet"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
#route 192.168.1.0 255.255.255.0
max-clients 40
client-config-dir /etc/openvpn/ccd
crl-verify /etc/openvpn/easy-rsa/2.0/keys/crl.pem
user nobody
group nogroup
keepalive 10 120
status /etc/openvpn/log/faster-status.log
log /etc/openvpn/log/faster.log
verb 4
mute 20
and the conents of the ccd file that the common name referrers to is (i want my devices to be assigned static ips when connected):
ifconfig-push 10.9.0.26 255.255.255.0
Does anyone know what I'm doing wrong?
Any help would be appreciated.
Thank you all in advance.