Deploying a Mysterium VPN Node with Linode in one command

What is Mysterium?

Mysterium is a decentralized VPN powered by Blockchain. It’s an Open Sourced Network allowing anyone to rent their unused Network traffic, while providing a secure connection for those in need.

Mysterium is currently undergoing an open TestNet where anyone with the necessary software can set up a Node within the network to act as an endpoint for users traffic. You can see stats of the current TestNet here. This shows the current status of Nodes on the network, where they are based, and how much traffic the network is pushing.

What is Linode?

Linode is a cloud hosting platform that allows you to create Linux virtual machines (VM) in a range of sizes for running services and software. Not only can you create virtual machines in minutes all around the world, you can automate it!

This guide will run you through how to create a micro virtual machine (called a Nanode) and deploy the Mysterium Node docker container inside it, all in one single command, via the use of the Linode API.

Deploying a Linode Mysterium Node

So, you want to create a Mysterium Node in one command, in any of 8 locations around the world? Well you came to the right place!

Requirements:

  • A Linode Account
  • Linode-CLI
  • This command “linode-cli linodes create — type [Node Type] — root_pass — label [Linode Name] — region [Linode Location] — stackscript_id 327439”

Account and API Setup

So lets start with creating a Linode account. Signing up is pretty straightforward and usually takes a handful of minutes, however you may need to submit ID verification.

For a free $20 of account credit you can use the coupon code “atp2018”, though many other $20 free credit codes exist if you search for it. Note, this code is not related to my account and I get no kickbacks for your use of it.

Now to retrieve your API Key. This allows the Linode-CLI to connect to your account and create your Mysterium Node(s). Once your account is created go to this location in your account setting and create a new API key.

Select Add a Personal Access Token, then select the following settings for full account access.

API Token Settings

Once this is created it will display your API key. Note this down in a secure location, you will only be displayed it once.

Once you have signed up and made an API key it is now time to install Liniode-CLI. Linode-CLI is a CLI program that allows you to interact with the Linode API from your terminal. It works on Windows, Linux, and macOS.

The Linode Mysterium Node Command

This section will run through the command used, what the sections mean, and how you can customize it.

Below is an outline of the command we will run, with the three sections where you can choose your own parameters, if you want.

linode-cli linodes create --type [Node Type] --root_pass --label [Linode Name] --region [Linode Location] --stackscript_id 327439

The three parameters are as follows:

[Node Type] — This is where you can select what size of Linode VM you want to create, the larger the VM, the more expensive it is. The available node types and their corresponding API names are below:

Linode node typed (id) and their corresponding specs.

[Linode Name] — This is very straightforward, this is the name you want your Linode VM to be called, it can be anything you want.

[Linode Location] — This is what region, or data center you want your Linode VM to reside in. The available region types and their corresponding API names are below:

us-east — Newark

us-southeast — Atlanta

us-central — Dallas

us-west — Fremont

eu-central — Frankfurt

eu-west — London

ap-south — Singapore

ap-northeast — Tokyo

Example Script:

linode-cli linodes create --type g6-nanode-1 --root_pass --label MysteriumNode --region ap-northeast --stackscript_id 327439

This command creates a Linode Ubuntu 16.04 “Nanode” called MysteriumNode, in Tokyo, prompts you to set a root user password and uses the StackScript I created. This StackScript updates the new VM, configures the firewall, installs docker, then deploys the Mysterium Node container.

It will ask you for your API key, then deploy the node for you. The whole process from running the Linode-CLI command to having your fully configured and working Mysterium Node should be around 7 minutes.

You can then SSH onto your Linode with the root password set when you ran the above command, and run the following command to find your Node ID.

docker logs -f mysterium-node

You will be able to see your Mysterium Node appear on the network by visiting the following link.

Important Further Configuration

The Linode VM created using this method has very basic security and account configuration completed.

IT IS STRONGLY RECOMMENDED YOU RUN THROUGH THE STEPS IN THE BELOW GUIDE:

Initial Server Setup with Ubuntu 16.04

I will be looking to update the StackScript so it automates the majority of these steps for you, in the future.

Need more help?

If you need more help with specifics to running a Mysterium Node, there is a wiki with common issues on the Mysterium Github, located here.

You can also join our Telegram community for help from our community!

Telegram

Links

Please be sure to follow and subscribe to the following:

Website — https://mysterium.network
Twitter — https://twitter.com/MysteriumNet
Medium — https://medium.com/mysterium-network
Reddit — https://www.reddit.com/r/MysteriumNetwork
Facebook — https://www.facebook.com/MysteriumNet
Slack — https://mysterium-network.slack.com
Bitcointalk — https://bitcointalk.org/index.php?topic=1895626.0
Steemit — https://steemit.com/@mysteriumnetwork
YouTube-https://www.youtube.com/channel/UCBxzWnZEHvuj-nfP00YImHQ
GitHub — https://github.com/MysteriumNetwork
Newsletter — http://www.subscribepage.com/MysteriumNetwork
Whitepaper — https://mysterium.network/whitepaper.pdf

Telegram:

English — https://t.me/Mysterium_Network
Rules & FAQ — https://t.me/MysteriumRulesAndFAQ
Announcements — https://t.me/MysteriumOfficialAnnouncements
中文 / Chinese — https://t.me/MysteriumChineseChat
Español / Spanish — https://t.me/mysterium_network_espanol