Configure UsenetServer VPN on Ubuntu 14.03

Just recently I configured a virtual machine to use VPN provided by UsenetServer and it’s awesome!

In recent years we’ve heard a lot about identity theft, surveillance and censorship when it comes to surfing the web. In order to get around this issue I tried UsenetServer’s VPN service and it actually works perfectly. UsenetServer define their service in the following way:

A VPN (Virtual Private Network) is an encryption tool that puts you in control of your IP address and provides privacy to your Internet connection. Once you are using an anonymous UsenetServer IP address your Internet connection is secure delivering the following benefits:

  • Online Identity and Data Protection
  • Keeps you Safe at Wi-Fi Hotspots
  • Stops your ISP’s Throttling of Netflix and YouTube
  • Provides a Virtual Firewall
  • Shields from Cyber Crime
  • Bypasses Internet Censorship Blocks
  • Blocks Unwanted Marketing

I’m currently running OpenVPN on Ubuntu 14.03, but the service is easy to configure regardless of operating system. If you are also interested in running VPN on your server you will need to register at usenetserver.com and then follow these easy steps:

  1. Connect to your Ubuntu server using your favorite SSH application such as Putty. I recommend to verify your external IP using wget -qO- http://ipecho.net/plain ; echo and note the result, just so you can verify that it has changed on step 6.
  2. Install OpenVPN by running apt-get install OpenVPN
  3. Navigate to /etc/openvpn using cd /etc/openvpn
  4. Next we create the main configuration file using nano usenetserver.conf and pasting the the code below into it.
    Note that ams-a01.wlvpn.com may be changed to another server if you want. Please refer to this site for a list of available servers.
    The certificate in the config should be the same as certificate.txt found here in case you wondered.
  5. Create another file and name it login.conf containing your UsenetServer username and password on each line (refer to my example below).
  6. Reboot your system and run wget -qO- http://ipecho.net/plain ; echo to verify that your IP has changed. You are now connected to VPN!

usenetserver.conf

client
dev tun
proto udp
remote ams-a01.wlvpn.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
persist-remote-ip

tls-client
remote-cert-tls server
auth-user-pass login.conf
comp-lzo
verb 3

auth SHA256
cipher AES-256-CBC

<ca>
-----BEGIN CERTIFICATE-----
MIIESDCCAzCgAwIBAgIJAKSqvk2CSdJGMA0GCSqGSIb3DQEBBQUAMHUxCzAJBgNV
BAYTAlVTMQwwCgYDVQQIEwNWUE4xD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BADAbNIIHF5vtCA+69/oipQ6niZit
Q+mnCNX5bxiF4xtw9qOQ90vLDc/ocbAGGP4Sub3hEkOoQlv9DHH56HVq1g9+L/Y7
RoneRykZ+GSPj2NlkobrPA7ZxAsLdFwM9Y+Fkql7cAHHLUCKh7H1IKidhTDHPCUj
hs4ZstNRckPd6wxlGGOP/Yf5sVse3pJwa0HyMYhI8pdTVJIHnFSy9vTPjVf3oWiz
Trci0+SkYKQE//5pE5wsYe0uB5wvQJslq/eEWfczg0l9biwJxG/qwxsVBkRgw5q6
defHWGj1eucVyy9fxKMcX89gjstQZDmsINNtG1C78/+nYS65rqaBaq+rqpA=
-----END CERTIFICATE-----
</ca>

login.conf

youruser@usenetserver
pa$$w0rd

I’m quite happy with the performance and while running VPN on a particular virtual machine I can choose what traffic to run through VPN and what not. In general I’m able to use almost all of my bandwidth (100/100Mbps) trough the tunnel without issues.

If you intend to give Usenetserver VPN a try I would highly appreciate it if you would use my affiliate-banner below order to support my site. The $95 deal is really worth the money! 🙂


UNS *1 Yr Special 468×60 B

If you have any questions please use the comment section below.

 

Share this:

2 comments, add yours.

Avatar

Stevie D

It has taken me 3 days to find this method and I admit I am new to Pi so its all been from scratch .. However … How do I ensure that openVPN runs to that configuration above at boot? I restarted after completing instructions to the “T” with my own credentials and my IP was the same .. Very puzzling! Help would be great! Thanks

Benjamin Krause

Benjamin Krause

Author

In order to make sure that the VPN works just run the followning code from the terminal: curl ipinfo.io/ip. This should tell you your external IP. Now stop the VPN service and run the command again and you should see that the IP changes to your real one.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.