DCAI — Derek Coleman & Associates Inc logoDCAI

Home / Marketplace / WireGuard on Ubuntu 24.04 LTS

WireGuard on Ubuntu 24.04 LTS

WireGuard is a fast, modern VPN protocol with state-of-the-art cryptography and a minimal attack surface. This image gives you a production-ready deployment within minutes of first boot — no dependency wrangling, no manual hardening checklist. Published and maintained by Derek Coleman & Associates Inc: freshly rebuilt against current security advisories and deployable straight from the Azure Marketplace into your own subscription.

Version: WireGuard (Ubuntu 24.04 package 1.0.20210914)Platform: Ubuntu 24.04 LTSPorts: 51820/udp (VPN)Category: Networking & VPN

What's included

  • WireGuard (Ubuntu 24.04 package 1.0.20210914) with the tunnel up and enabled at boot (wg-quick@wg0)
  • First peer ready on first boot: /etc/wireguard/clients/client1.conf, pointed at the VM's public IP
  • wg-addpeer helper adds more devices, with a QR code for phone clients
  • No shared keys — the server key pair and every peer key are generated on your VM
  • Ubuntu 24.04 LTS base with automatic security updates enabled
  • Trusted Launch support: Secure Boot + vTPM

Quick start

  1. Deploy from the Azure Marketplace (Get It Now → Create), choosing your SSH key at the Administration step.
  2. Allow inbound SSH (22) for yourself plus the application port(s): 51820/udp (VPN) — restrict to your own IP where possible. The in-image firewall already allows them; only the Network Security Group (NSG) keeps them closed.
  3. SSH in and copy the first peer's config to your device: `sudo cat /etc/wireguard/clients/client1.conf` (or `sudo wg-addpeer --qr client1` for a phone) — see First login below.
  4. Connect from the device, then check the handshake on the server with `sudo wg show`. Add more devices with `sudo wg-addpeer <name>`. IP forwarding (/etc/sysctl.d/99-wireguard.conf) and the NAT rule for peer traffic are already in place.

Get your admin password (one time)

ssh <your-username>@<VM-IP>
sudo cat /etc/wireguard/clients/client1.conf  # ready-to-use config for the first peer, client1

There is no password. Each device signs in with its own key pair: client1's config is in /etc/wireguard/clients/client1.conf, and `sudo wg-addpeer <name>` creates the next one.

Common use cases

  • Site-to-Azure VPN tunnels
  • Secure remote access for teams
  • Private connectivity between VNets and devices
  • Road-warrior VPN for laptops and phones

Why our images

Freshly rebuilt against the latest security advisories, no shared default credentials, Trusted Launch support, and automatic OS security updates — everything runs in your own Azure subscription under your governance.

Deploy WireGuard in minutes

Production-ready, hardened, and maintained. Deploy straight from the Azure Marketplace into your subscription.