Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks for the guide, Jacob.
I am having issues connecting clients to the openvpn server. I have checked that the necessary udp ports are open and forwarded. Do you have any suggestions on what else I can try? Unfortunately the documentation for CentOS 7 is pretty limited. Thanks!
Here are the errors: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) TLS Error: TLS handshake failed WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
A suggestion: .ovpn files support inline certificates and keys. Instead of having to mess around with multiple files and multiple paths, you can just copy and paste everything from -----BEGIN {CERTIFICATE,RSA PRIVATE KEY}----- to -----END {CERTIFICATE,RSA PRIVATE KEY}----- in between tags for each one: <ca> for the CA public key, <cert> for the server or client’s public key, <key> for the server or client’s private key, and <tls-auth> for the static key if you’re using it.
That way, you can have it all packaged up nicely in one .ovpn file instead of having 3-4 files. Makes it a lot easier to use the OpenVPN for Android client, too.
can two users connect at the same time ? and instead of .key file can there be an option for username & password ?
I followed this and installed successfully, but when i start openvpn i don’t have internet access. why is this?
Thanks for the guide! I think the first line of the .ovpn file shouldn’t be in red, though. I used a unique name for my client, but using that name as the first line didn’t work. When I changed the first line back to “client”, it worked fine. I might be missing something, though.
There appears to be some confusion here. You say change KEY_CN in /etc/openvpn/easy-rsa/vars but the comments within the file say only uncomment this if you wish to use the same common name for all clients. The advice would appear to be that it is better to have a separate name and key pair for each client. Which is correct, please?
Hey, thanks for the tutorial. I seem to be having a problem though. I am unable to connect to the server from the client. It simply times out. I assume it’s some sort of firewall rule that is blocking it. However, when I run a “nmap -sU -p 1194” i get a “1194/udp open|filtered openvpn” so it seems to be open. When I run a “systemctl status openvpn@server.service” I get: openvpn@server.service - OpenVPN Robust And Highly Flexible Tunneling Application On server
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled)
Active: active (running) since Wed 2015-01-14 18:26:05 UTC; 1h 31min ago
Process: 7020 ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf (code=exited, status=0/SUCCESS)
Main PID: 7027 (openvpn)
CGroup: /system.slice/system-openvpn.slice/openvpn@server.service
└─7027 /usr/sbin/openvpn --daemon --writepid /var/run/openvpn/server.pid --cd /etc/openvpn/ --co...
Jan 14 18:26:05 <REDACTED>.net systemd[1]: Started OpenVPN Robust And Highly Flexible Tunneli...er.
Hint: Some lines were ellipsized, use -l to show in full.
It appears to be up and running. I tried it both from my phone (which has no firewalls) and my work computer - both don’t work. Any idea what could be causing the client to timeout when trying to connect?
Thanks again!
I notice in article ‘https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-04’, you can find some additional writeup about how to connect to OpenVPN with iOS. Pretty interesting.