Client connects, but no ping and no servers reachable (iOS)
Posted: Mon Jan 21, 2013 10:59 am
As there is no specific iOS forum (yet), I post my question here.
I am able to connect to our company openvpn server, but I can't reach any servers in our network.
When I try to ping the client ip, I see the Bytes In counter in the Connection Details counting up.
Colleagues use the Android Version of OpenVPN Connect successfully.
Their devices are pingable.
Below I pasted the log. I anonymized only a few things. And also the
config (anonymized more)
Thanks for your help,
best regards,
Stefan
log:
2013-01-17 17:10:29 Session invalidated
2013-01-17 17:10:29 Client terminated, restarting in 2...
2013-01-17 17:10:31 EVENT: RECONNECTING
2013-01-17 17:10:31 LZO-ASYM init swap=0 asym=0
2013-01-17 17:10:31 EVENT: RESOLVE
2013-01-17 17:10:32 EVENT: WAIT
2013-01-17 17:10:32 Connecting to server.domain.com:1196 (a.b.c.d)
via UDPv4
2013-01-17 17:10:32 EVENT: CONNECTING
2013-01-17 17:10:32 Tunnel Options:V4,dev-type tun,link-mtu 1542,tun-mtu
1500,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize
128,tls-auth,key-method 2,tls-client
2013-01-17 17:10:32 Peer Info:
IV_VER=1.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2013-01-17 17:10:33 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
subject name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=mobilevpn, 0x29=mobilevpn, emailAddress=linux_admin@domain.com
issued on : 2012-10-09 15:33:54
expires on : 2022-10-07 15:33:54
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-01-17 17:10:33 VERIFY OK: depth=1
cert. version : 3
serial number : AE:B8:03:AE:99:91:D6:34
issuer name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
subject name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
issued on : 2012-10-09 15:32:37
expires on : 2022-10-07 15:32:37
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-01-17 17:10:33 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-01-17 17:10:33 Session is ACTIVE
2013-01-17 17:10:34 EVENT: GET_CONFIG
2013-01-17 17:10:34 Sending PUSH_REQUEST to server...
2013-01-17 17:10:34 OPTIONS:
0 [route] [172.16.0.0] [255.240.0.0]
1 [route] [192.168.8.0] [255.255.252.0]
2 [route] [192.168.12.0] [255.255.255.0]
3 [route] [192.168.13.0] [255.255.255.0]
4 [route] [192.168.14.0] [255.255.255.0]
5 [route] [192.168.15.0] [255.255.255.0]
6 [dhcp-option] [DNS] [192.168.10.254]
7 [dhcp-option] [DOMAIN] [local.domain.com]
8 [route] [192.168.13.0] [255.255.255.0]
9 [topology] [net30]
10 [ping] [10]
11 [ping-restart] [120]
12 [ifconfig] [192.168.13.22] [192.168.13.21]
2013-01-17 17:10:34 LZO-ASYM init swap=0 asym=0
2013-01-17 17:10:34 EVENT: ASSIGN_IP
2013-01-17 17:10:35 Connected via tun
2013-01-17 17:10:35 EVENT: CONNECTED @server.domain.com:1196 (X.X.X.X)
via /UDPv4 on tun/192.168.13.22/
config:
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote server.domain.com 1196
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody
# Try to preserve some state across restarts.
persist-key
persist-tun
persist-remote-ip
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
management-query-proxy
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
<ca>
-----BEGIN CERTIFICATE-----
XXXX
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
xxx
-----BEGIN CERTIFICATE-----
XXX
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
XXX
-----END PRIVATE KEY-----
</key>
# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
;ns-cert-type server
# If a tls-auth key is used on the server
# then every client must also have the key.
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
XXX
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
tun-mtu 1500
fragment 1300
mssfix
I am able to connect to our company openvpn server, but I can't reach any servers in our network.
When I try to ping the client ip, I see the Bytes In counter in the Connection Details counting up.
Colleagues use the Android Version of OpenVPN Connect successfully.
Their devices are pingable.
Below I pasted the log. I anonymized only a few things. And also the
config (anonymized more)
Thanks for your help,
best regards,
Stefan
log:
2013-01-17 17:10:29 Session invalidated
2013-01-17 17:10:29 Client terminated, restarting in 2...
2013-01-17 17:10:31 EVENT: RECONNECTING
2013-01-17 17:10:31 LZO-ASYM init swap=0 asym=0
2013-01-17 17:10:31 EVENT: RESOLVE
2013-01-17 17:10:32 EVENT: WAIT
2013-01-17 17:10:32 Connecting to server.domain.com:1196 (a.b.c.d)
via UDPv4
2013-01-17 17:10:32 EVENT: CONNECTING
2013-01-17 17:10:32 Tunnel Options:V4,dev-type tun,link-mtu 1542,tun-mtu
1500,proto UDPv4,comp-lzo,keydir 1,cipher BF-CBC,auth SHA1,keysize
128,tls-auth,key-method 2,tls-client
2013-01-17 17:10:32 Peer Info:
IV_VER=1.0
IV_PLAT=ios
IV_NCP=1
IV_LZO=1
2013-01-17 17:10:33 VERIFY OK: depth=0
cert. version : 3
serial number : 01
issuer name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
subject name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=mobilevpn, 0x29=mobilevpn, emailAddress=linux_admin@domain.com
issued on : 2012-10-09 15:33:54
expires on : 2022-10-07 15:33:54
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-01-17 17:10:33 VERIFY OK: depth=1
cert. version : 3
serial number : AE:B8:03:AE:99:91:D6:34
issuer name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
subject name : C=DE, ST=BA, L=location, O=organization, OU=Mobiles,
CN=organization CA, 0x29=Mobilevpn, emailAddress=linux_admin@domain.com
issued on : 2012-10-09 15:32:37
expires on : 2022-10-07 15:32:37
signed using : RSA+SHA1
RSA key size : 1024 bits
2013-01-17 17:10:33 SSL Handshake: TLSv1.0/SSL-EDH-RSA-AES-256-SHA
2013-01-17 17:10:33 Session is ACTIVE
2013-01-17 17:10:34 EVENT: GET_CONFIG
2013-01-17 17:10:34 Sending PUSH_REQUEST to server...
2013-01-17 17:10:34 OPTIONS:
0 [route] [172.16.0.0] [255.240.0.0]
1 [route] [192.168.8.0] [255.255.252.0]
2 [route] [192.168.12.0] [255.255.255.0]
3 [route] [192.168.13.0] [255.255.255.0]
4 [route] [192.168.14.0] [255.255.255.0]
5 [route] [192.168.15.0] [255.255.255.0]
6 [dhcp-option] [DNS] [192.168.10.254]
7 [dhcp-option] [DOMAIN] [local.domain.com]
8 [route] [192.168.13.0] [255.255.255.0]
9 [topology] [net30]
10 [ping] [10]
11 [ping-restart] [120]
12 [ifconfig] [192.168.13.22] [192.168.13.21]
2013-01-17 17:10:34 LZO-ASYM init swap=0 asym=0
2013-01-17 17:10:34 EVENT: ASSIGN_IP
2013-01-17 17:10:35 Connected via tun
2013-01-17 17:10:35 EVENT: CONNECTED @server.domain.com:1196 (X.X.X.X)
via /UDPv4 on tun/192.168.13.22/
config:
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
# Use the same setting as you are using on
# the server.
# On most systems, the VPN will not function
# unless you partially or fully disable
# the firewall for the TUN/TAP interface.
;dev tap
dev tun
# Windows needs the TAP-Win32 adapter name
# from the Network Connections panel
# if you have more than one. On XP SP2,
# you may need to disable the firewall
# for the TAP adapter.
;dev-node MyTap
# Are we connecting to a TCP or
# UDP server? Use the same setting as
# on the server.
;proto tcp
proto udp
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote server.domain.com 1196
# Choose a random host from the remote
# list for load-balancing. Otherwise
# try hosts in the order specified.
;remote-random
# Keep trying indefinitely to resolve the
# host name of the OpenVPN server. Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite
# Most clients don't need to bind to
# a specific local port number.
nobind
# Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody
# Try to preserve some state across restarts.
persist-key
persist-tun
persist-remote-ip
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
management-query-proxy
# Wireless networks often produce a lot
# of duplicate packets. Set this flag
# to silence duplicate packet warnings.
;mute-replay-warnings
# SSL/TLS parms.
# See the server config file for more
# description. It's best to use
# a separate .crt/.key file pair
# for each client. A single ca
# file can be used for all clients.
<ca>
-----BEGIN CERTIFICATE-----
XXXX
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
xxx
-----BEGIN CERTIFICATE-----
XXX
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
XXX
-----END PRIVATE KEY-----
</key>
# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server". This is an
# important precaution to protect against
# a potential attack discussed here:
# http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server". The build-key-server
# script in the easy-rsa folder will do this.
;ns-cert-type server
# If a tls-auth key is used on the server
# then every client must also have the key.
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
XXX
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
# Select a cryptographic cipher.
# If the cipher option is used on the server
# then you must also specify it here.
;cipher x
# Enable compression on the VPN link.
# Don't enable this unless it is also
# enabled in the server config file.
comp-lzo
# Set log file verbosity.
verb 3
# Silence repeating messages
;mute 20
tun-mtu 1500
fragment 1300
mssfix