VPS on Microsoft Azure

What you will need:

Step by step

First, head to the Azure Portal.

1061

Navigate to the Virtual Machines section.

798

Click on Add and then on Virtual Machine.

784
  1. Create or select an existing Resource Group.
  2. Create a name for your VM (e.g. Syntropy-VPN).
  3. For seamless configuration, select an image that supports WireGuard out of the box. We recommend Ubuntu Server 21.04.
  4. Select the resources for your VPN server.
851

Copy Server Specific configuration provided below. (screenshot configuration is outdated, copy it from below)

This configuration will automatically set up Docker software, open all ports (not secure, see note below) and launch a Syntropy VPN configured Agent.

#cloud-config

runcmd:
  - export SYNTROPY_KEY=REPLACE_YOUR_AGENT_KEY_HERE
  - curl -fsSL https://get.docker.com | sh
  - sudo systemctl enable --now docker
  - sudo ufw default allow
  - sudo ufw enable
  - sudo docker run --network="host" --restart=on-failure:10 --cap-add=NET_ADMIN   --cap-add=SYS_MODULE -v /var/run/docker.sock:/var/run/docker.sock:ro   --device /dev/net/tun:/dev/net/tun --name=syntropynet-agent   -e SYNTROPY_AGENT_TOKEN=$SYNTROPY_KEY   -e SYNTROPY_NETWORK_API='host'   -e SYNTROPY_ALLOWED_IPS='[{"0.0.0.0/0":"internet"}]'   -e SYNTROPY_SERVICES_STATUS=true   -e SYNTROPY_TAGS=VPN -d syntropynet/agent:stable
782

Then, navigate to a Network section and select the None option in NIC network security group.

🚧

NB: All ports are open!

With this configuration of the firewall, all ports in the VM are open which is not secure, and should be used for testing primarily.
Better firewall rules need to be set for only enabling udp connection to the port found in the wireguard config file in step 4 of this guide.
This must be done both in Azure networking tab and in ubuntu using the ufw firewall.

773

Check if everything is correct and click Create.

800

The deployment might take several minutes to complete. After it's done, this endpoint, running VPN server Agent, will appear in the Syntropy Stack Platform.

1305

Next step

Now that your VPN server is running, you can go ahead and set up your VPN connections using Syntropy Stack.