VPS on Microsoft Azure
What you will need:
- A Microsoft Azure Account.
- Agent Token issued for the length of time you want your VPN to work.
Step by step
First, head to the Azure Portal.

Navigate to the Virtual Machines section.

Click on Add and then on Virtual Machine.

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

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

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.

Check if everything is correct and click Create.

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.

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