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!
Great Tutorial. Would you add more information about how to config a subnet behind the OpenVPN server? Any additional hardware or server would be needed? Thanks.
Great guide. I just set up mine a few days ago and wish this was out there then.
I have one issue and was hoping for some help or advice. I can’t route traffic with just the 1194 port open in ufw. However if I open 1000:2000 the VPN routes the traffic. Any ideas?
Hi.
I just followed this guide to the letter… everything is running server side. When i try to connect from my android tablet, i get a connection timed out.
Any ideas?
thanks for the tute. worked a treat :) I have run into a problem trying to add another client though.
when I run ./build-key client2
I get this error
-bash: ./build-key: No such file or directory
thanks
Hi, I hope I can get some help here:
I did everything step by step, connection to the VPN is working. But I don’t have a connection to the internet. My Server: IPv4 adress, static. || Client: IPv6 adress, Ipv4 with Dual Stack Lite.
Server: Debian 8 Client: Windows Server 2012 R2
I’m new on this field, I follow all steps written here and after I end, I tried to connect to the vpn network from a windows 7 OS, but in the steps for configuring it ask for username and password and I don’t know what user and password to put, all I have ar the files user1.crt ( what I installed ) and user1.key , how to whe this filles to connect in the vpn network
Thank you for the tutorial
Hi all, I steped all your tutorial. But default gateway is the same 192.168.1.1 ( my home router). My external ip is not changed. Please give me advice how to resolve this.
Same here! I follow the tutorial step by step, all worked well no server problems or little coherence…so I took the 4 files and after change client.ovpn for other devices…I download openvpn and put the config into it…not works…so I decide taking the other cleint.ovpn (the one that we change after) and put in OVPN, it works!!! Connection bla bla give me new adress 10.0 blabla…and at this point after a full of joy…my ip DOES NOT CHANGE she stay the same!!! Even if i’m connect to my VPN…I will try it tomorrow after reinstall entirely my serv, but if it not works that tuts is broken.
EDIT: I have found the problem!!! If you have the same issues it’s because you have put the 4 files together in the config directory of openvpn gui just place your client.ovph in it and put the others in the easy-rsa directory of open gui!!! Good tutorial best I had found on Internet and I’m french!
Hi, many thanks for the well written and comprehensive tutorial. I’m using a Raspberry PiB+ with Raspbian “Jessie” installed. Installing openVPN and setting everything up in the server, (Steps 1 thru’ 7) went according to the tutorial. The servers starts without an issue:
root@raspberrypi-vpn:/etc/openvpn/easy-rsa# service openvpn start
root@raspberrypi-vpn:/etc/openvpn/easy-rsa# service openvpn status
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
Active: active (exited) since Sun 2015-10-18 13:01:19 CEST; 8s ago
Process: 2682 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 2682 (code=exited, status=0/SUCCESS)
Oct 18 13:01:19 raspberrypi-vpn systemd[1]: Started OpenVPN service.
root@raspberrypi-vpn:/etc/openvpn/easy-rsa#
My issues start while trying to generate Certificates and Keys for the “clients”. I’m changing the name of: client1 to Fujitsu_Siemens1. I’m working from /etc/openvpn/easy-rsa as ROOT. Here is the output from when I run: ./build-key Fujitsu_Siemens2.
root@raspberrypi-vpn:/etc/openvpn/easy-rsa# ./build-key Fujitsu_Siemens2
Please edit the vars script to reflect your configuration,
then source it with "source ./vars".
Next, to start with a fresh PKI configuration and to delete any
previous certificates and keys, run "./clean-all".
Finally, you can run this tool (pkitool) to build certificates/keys.
root@raspberrypi-vpn:/etc/openvpn/easy-rsa#
I obviously have to edit something in /vars. I’m confused to what this output is asking me to do to continue. Any assistance would be much appreciated.
Even though it isn’t really made clear, since I know how scp works, I know that the second half of step 8 (the ‘Transferring Certificates and Keys to Client Devices’ part) should be run from a client computer. However I’m not sure if Step 9 is on the client or the server. I’d assume the server since at this point there is no client.ovpn on the client, only client1.ovpn.
If so, would’t this need to be repeated for each client? Also if this is the ‘better’ or more-manageable way to handle all the necessary information, I’m curious as to why don’t you introduce it in place of where you instruct us to execute the commands to copy the files over scp?
Thanks In advance for any help, Marvin