30cd0a0f530c10ce94815d4fffef5c540db9b08d
By:
markrich

Creating a VPN proxy service

November 23, 2014 7.9k views

I want to create a VPN proxy on my droplet with Ubuntu Server.
This will allow me some privacy when using open wifi in the cafe or elsewhere.
I am a little unsure how to go about this.
Can someone please help, advise and/or point me towards a working tutorial to guide me through the process?

1 comment
  • I followed the instructions and even though I use

    source ./vars

    I still get the same result

    NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/2.0/keys

    Running the second command returns,

    Please source the vars script first (i.e. "source ./vars")
    Make sure you have edited it to reflect your configuration.

    I googled around and turns out logging in as root solved the problem (rather than using sudo)

2 Answers

OpenVPN is usually a good choice for a VPN server. Spin up an Ubuntu 14.04 droplet, and follow this tutorial: How to Setup and Configure an OpenVPN Server on Debian 6 | DigitalOcean.

Because the tutorial is written for Debian 6 and you're running Ubuntu 14.04, you will need to the run the following commands:

sudo apt-get install easy-rsa
sudo mkdir -p /etc/openvpn/easy-rsa/2.0/
sudo cp -r /usr/share/easy-rsa/* /etc/openvpn/easy-rsa/2.0/

instead of

sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa /etc/openvpn

Let us know how it goes! :)

Learn how to setup and configure an OpenVPN Server on Debian 6.
  • The instructions fall down at,

    sudo ./vars
    
    sudo ./clean-all
    
    sudo ./build-ca
    

    These commands don't work and I don't see how they could. .vars isn't executable. Making it so allows the first command to work with the message,

    NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/2.0/keys

    Running the second command returns,

    Please source the vars script first (i.e. "source ./vars")
    Make sure you have edited it to reflect your configuration.

  • The correct command is source ./vars, not sudo ./vars :)

Have another answer? Share your knowledge.