Setting up your own VPN with Algo - Quick Version

Setting up your own VPN with Algo - Quick Version

Detailed Guides:

Part 1: configuring your devices.

Part 2: configuring your devices.

Super Quick Version

This is the super quick version of setting up the Algo VPN on a server. It’s more of a cheat-sheet really. It assumes you know how to create a Digital Ocean Droplet, SSH into it, and SFTP files out of it. It does not cover device configuration so please see the Part 2 of the detailed guide for that.

Step 1: Create a Digital Ocean Droplet and SSH into it - Remember the password!

Step 2: Install the prerequisite software:

cd ~ && apt-add-repository -y ppa:ansible/ansible && apt-get update -y && apt-get upgrade -y && apt-get install -y software-properties-common python-virtualenv ansible git && cd ~ && git clone && cd algo && python -m virtualenv env && source env/bin/activate

Step 3: Add users to config.cfg file & turn off logging

cd ~/algo && nano config.cfg

Step 4: Run the install script

cd ~/algo && ./algo

A cheat-sheet for answering the installation questions can be found in part 1 of the detailed guide.

Step 5: Write down the p12 key & CA Certificate Key!!

Step 6: Turn off server logging / delete the logs

service rsyslog stop && rm /var/log/syslog && systemctl disable rsyslog.service

Step 7: Exit the server and SFTP the files to your laptop.

  • cd ~ && mkdir configs && cd configs
  • sftp root@{ip-address}
  • cd algo/configs/{ip-address
  • get *
  • exit

Step 8: Email them to your devices.

digital-security   sys-admin-stuff

Because every coding blog needs a comments section.

Please keep comments respectful! Harassment and general arrogance will not be tolerated.