All Collections
Networking Using Telnyx
Telnyx Networking on Azure Linux VMs
Telnyx Networking on Azure Linux VMs

Setup and deploy the Telnyx Networking product on Azure Linux Virtual Machines

Telnyx Engineering avatar
Written by Telnyx Engineering
Updated over a week ago

Azure Linux VMs and the Telnyx Network

Step 1: Telnyx Configuration with Azure Linux VMs

Reference the introduction to Telnyx Networking section located here: Telnyx Configuration


Copy and take note of the Peer Configuration file along with the private key that you got assigned from the above tutorial, it should look like the following:

Peer Configuration file.

Step 2: Create an Azure Linux VM and SSH in

Head over to the Azure Portal to create a Linux VM of your choosing. Edge router runs on WireGuard in the background which makes it easily compatible with most Linux distributions offered by the Azure Marketplace.


โ€‹SSH into your Azure VM instance.

Step 3: Setting up WireGuard for Telnyx

While SSH'ed into your VM, install WireGuard on your machine.
โ€‹

sudo apt update$ sudo apt install wireguard

> Note: You can utilize WireGuard Manager to make the setup process for your WireGuard installation more straightforward with step by step guides to setting up your parameters, but it is not necessary

After installation, we should now have the WireGuard folder that is located at /etc/wireguard, where we need to configure the wg0.conf file.


Let's open the conf file:

sudo vi /etc/wireguard/wg0.conf

and copy/paste the information that we got from Step 1

Peer Configuration file

Save and quit:

:wq

Step 4: Test

We can now run the VPN by simply inputting:

sudo wg-quick up wg0

Peer Configuration file.

We can test to see if it's working by checking the portal and seeing the last seen status change:

Mission control portal.

or you can curl/trace into your server to confirm the Global IP that is configured to it.


Example Response:

root@MacBook-Pro % ping 172.27.1.17
PING 172.27.1.17 (172.27.1.17): 56 data bytes
64 bytes from 172.27.1.17: icmp_seq=0 ttl=53 time=184.512 ms
64 bytes from 172.27.1.17: icmp_seq=1 ttl=53 time=183.202 ms
64 bytes from 172.27.1.17: icmp_seq=2 ttl=53 time=183.365 ms
64 bytes from 172.27.1.17: icmp_seq=3 ttl=53 time=183.040 ms
64 bytes from 172.27.1.17: icmp_seq=4 ttl=53 time=183.310 ms
64 bytes from 172.27.1.17: icmp_seq=5 ttl=53 time=183.980 ms
64 bytes from 172.27.1.17: icmp_seq=6 ttl=53 time=183.457 ms
64 bytes from 172.27.1.17: icmp_seq=7 ttl=53 time=183.097 ms
^C
--- 172.27.1.17 ping statistics ---
8 packets transmitted, 8 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 183.040/183.495/184.512/0.471 ms

Next Steps

Congratulations! You have successfully connected an Azure Linux VM instance to the Telnyx Edge Routing Network to the configured IP in your portal.


If you have any further questions or would like to see more tutorials, feel free to reach out to our support team or our external Slack channel for help!

Did this answer your question?