HowTo: Your own VPN?! OpenVPN-Server for only 3€/year

OpenVPN is a open-source application that creates secure point-to-point or site-to-site connections using SSL/TLS for key exchange. It provides full encryption of both, data and control-channels (OpenSSL). Thankfully it is capable of traversing network address translators (NATs) and firewalls. Means we are able to set up a working VPN-Server behind them.

I could start with intelligence services like NSA, GCHQ, … but if you worry about that you got bigger problems, nevertheless I think encryption is the key for a free internet in the future. There is no secret behind the fact that if you transmit unencrypted user incredentials, they are lost. That is just one point but i could proceed eternally.


First of all you need a cheap VPS. At lowendspirit.com you get NATed Mini-VPS’s for only 3€/year. I think that is the best deal for your own VPN-Server.

Once you received your new VPS-Details check your internal Server IP to find out which ports belong to the server. …it is well explained in the email.

After that log in the control panel and change your SSH port threw the java-applet to something in your range.

nano /etc/ssh/sshd_config
Port 22 # Change to one of your ports
CTRL-O
CTRL-X
service ssh restart
exit

Now your server will be reachable with the external IP of your Node (check email) + Port.

Connect to your server via Putty or any other SSH-Client and install OpenVPN-Server via Script provided by Nyr.

wget http://git.io/vpn --no-check-certificate -O openvpn-install.sh; chmod +x openvpn-install.sh; ./openvpn-install.sh

The installer asks for your internal ip, openvpn-port, listen on port 53? [Default: NO] + (if nated) your external ip. In that order. Choose one port in your range and proceed. Extract and download your generated certs. Finally download the Community GUI for OpenVPN for windows systems. A tutorial how to connect to the Server via Linux will follow up.

tar -xfvz archivename.tar.gz


Rename client01.conf to client01.ovpn and move all files to ~/install/dir/OpenVPN/config/
Now start the GUI and connect via right-click and “Connect”
Done. 🙂

~Alex

Sources:

http://en.wikipedia.org/wiki/OpenVPN
https://github.com/Nyr/openvpn-install

Leave a Reply

Your email address will not be published. Required fields are marked *