All my clients connect except for my iOS clients.
Prior to adding the tls-auth inline key everything was working fine. Now the Openvpn client cannot connect. It gets as far as 152.00B in and out, then all packets stop. Eventually the connection sequence times out.
The tls-auth works fine on all other clients. The key was generated on the linux server using the command:
openvpn --genkey --secret ta.key
The contents of the key are copied and pasted inline between the <tls-auth> ... </tls-auth> tags.
The ovpn file looks like this:
=========ios.ovpn========
Code: Select all
######################
# OpenVPN 2.0 config file #
# Inline Certificate method #
######################
client
tun-mtu 1500
mssfix 1325
proto tcp
remote my_domain.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
# ca [inline]
# cert [inline]
# key [inline]
# tls-auth [inline]
ns-cert-type server
keepalive 10 900
inactive 3600
comp-lzo
verb 1
key-direction 1
<ca>
-----BEGIN CERTIFICATE-----
***
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
***
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
***
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
***
-----END OpenVPN Static key V1-----
</tls-auth>
Many thanks.