I have been working this for a while now and the following .ovpn file is the closest I've come to getting things to connect. My vpn server connects desktop clients just fine. I ran into trouble when I tried to configure OpenVPN Connect on Android. It is supposed to be a simple username/password authentication to a local server. The purpose of all this is to understand OpenVPN more and not for production use.
When I attempt to connect i get a timeout. logs just show that it is attempting to connet to the server ip. I can ping the server just fine from the Android device and I can even get the vpn to work on my desktop.
Is there a way to use the same configuration used by the desktop on my Android?
What is wrong with my configuration that I am overlooking?
##############################################
# User client-side OpenVPN 2.0 config file.
# for connecting to multi-client server.
##############################################
# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client
dev tun
proto udp
# The hostname/IP and port of the server.
remote 192.168.101.203 1194
# 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
# Try to preserve some state across restarts.
persist-key
persist-tun
# Certificate Authority
# ca ca.crt
# Username/Password authentication is used on the server
auth-user-pass
# 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
# Set log file verbosity.
verb 3
<ca>
-----BEGIN CERTIFICATE-----
crazy stuff goes here.
-----END CERTIFICATE-----
</ca>