How To Install AlgoVPN On Ubuntu 18.04

AlgoVPN easily facilitates a secure, encrypted tunnel between a client and a VPN server. One AlgoVPN setup can handle all of your devices, including, Windows, Linux, OSX, Android, and iOS. You will need to install and configure Wireguard on all your devices once AlgoVPN is configured.

A VPN connection is a secure tunnel between your device and your server. All unencrypted traffic is encrypted before being sent through the tunnel. When it arrives at the VPN server it is routed so all requests are returned back to you through the encrypted tunnel.

There are many uses for a VPN connection. An American working in France might use a USA based VPN to access Netflix, Hulu, or watch NFL football that is otherwise “blacked out”.

The most common reason for using a VPN is privacy. A VPN does not provide anonymity – it redirects your traffic so that all requests point back to your server, not your local IP. Your ISP can see a secure encrypted tunnel to your servers IP, but that’s all they can see. Without a VPN your ISP can see all of your DNS requests and unencrypted data. Companies can target you with behavioral-based advertising, and hackers can infiltrate your ISP to gain access to your personal information.

With AlgoVPN, only you know where your encrypted tunnel ends. As far as your ISP is concerned, they see a tunnel to an endpoint, but they can’t see anything more. If you use a cloud provider like Vultr or Digital Ocean, you can destroy and create VPN instances as much as you want – making it almost impossible for your ISP or anyone else, to know your true identity and location.

VPN services offer many of the benefits of running AlgoVPN, but you share IP’s with other people who use the VPN service. This leads to slow downloads, and can also put you in the position where the VPN provider is selling your personal information. Using an IP address that was likely used by someone else could leave you banned from certain sites, or worse – getting a warning for something you didn’t do. By creating your own VPN, you are the administrator of the server, you are the person who decides whether to hand over server logs or not, and your service provider has no clue you are using the server for VPN (unless you get a complaint). In which case, you can simply destroy the instance and make a new one.

To get started, set up a new cloud instance or server running Ubuntu 18.04. The commands below will work if you “copy and paste” them on a clean server with no errors. The only input you will need is the IP address of the server – which is explained below.

How To Install AlgoVPN :

#Connect to your linux terminal and enter the commands #below. Pay attention to the comments seperated with a #

sudo su

mkdir /downloads

cd /downloads

wget https://github.com/trailofbits/algo/archive/master.zip

apt-get install unzip

unzip master.zip

apt-get update

apt-get install virtualenv

cd algo-master

virtualenv env --python=python3.6

source env/bin/activate

nano packages.txt

#Copy all the packages below to packages.txt

sudo apt-get install build-essential -y
sudo apt-get install libssl-dev -y
sudo apt-get install libffi-dev -y
sudo apt-get install python-dev -y
sudo apt-get install python-pip -y
sudo apt-get install python-setuptools -y
sudo apt-get install python-virtualenv -y

chmod 755 packages.txt

./packages.txt

python -m pip install -U -r requirements.txt

#Copy your IP address. Run ifconfig, you will see a local #adapter as well as your network enabled adapter and IP #Address. You can also run "ip a".

ifconfig

#Installing on existing machine, not via api
#Look For Users section of config
# Add or change phone, laptop, etc.
#users:
#  - phone
#  - laptop
#  - desktop
#  - ryan

./algo

#Select 11  11. Install to existing Ubuntu 18.04 or 19.10 #server (for more advanced users)

11

#Do you want each user to have their own account for SSH #Tunneling

yes

#Read through the rest of the prompts. Hit enter for the #defaults
#When asked for your server IP the first time enter

localhost

#It will ask you a second time for an IP address, put your #public IP address in

192.168.X.X

#Hit enter again to accept the defaults

cd configs

ls

#You should see your external IP as a directory

cd 192.168.xxx.x

cd wireguard

ls

#You will see your keys and QR images.  
#QR images are needed for mobile.
#The installation is done, you can use the keys.
#Copy your conf file to the clipboard
#You will need to paste it into WireGuard 

nano laptop.conf

#To get images
nano filename.png

#Copy the data.
#On your Windows machine open Notepad and paste
#Save the file locally as filename.png
#Open the file and you should see a QR Code.

Proceed to the How To Install And Use Wireguard page.