Blog

Installing Wireguard on a UniFi Dream Machine Pro

Instructions to setup a Wireguard server on a UDM-Pro, or other UniFi OS Console

Evan McCann

June 16, 2022

In this blog post, I'm going to walk you through how to install Wireguard on a UniFi Dream Machine Pro. Wireguard is a modern VPN protocol that is fast, secure, and easy to set up.

Before we get started, you'll need the following:

  • A UniFi Dream Machine Pro running the latest firmware
  • SSH access to your Dream Machine Pro
  • A basic understanding of the command line

Step 1: Enable SSH on your Dream Machine Pro

First, you'll need to enable SSH on your Dream Machine Pro. You can do this by logging into the UniFi Network application and navigating to Settings > System > Advanced > SSH.

Step 2: SSH into your Dream Machine Pro

Once SSH is enabled, you can SSH into your Dream Machine Pro using the following command:

ssh root@[ip-address]

Step 3: Install Wireguard

Once you're logged in via SSH, you can install Wireguard using the following commands:

apt-get update && apt-get install wireguard

Step 4: Configure Wireguard

Once Wireguard is installed, you'll need to configure it. You can do this by creating a Wireguard configuration file. Here's an example configuration file:

[Interface] PrivateKey = [your-private-key] Address = [your-vpn-ip-address] ListenPort = 51820 [Peer] PublicKey = [peer-public-key] AllowedIPs = [peer-allowed-ips] Endpoint = [peer-endpoint]

Step 5: Start Wireguard

Once you've configured Wireguard, you can start it using the following command:

wg-quick up wg0

That's it! You've successfully installed Wireguard on your UniFi Dream Machine Pro.

About HostiFi

HostiFi provides hosting for Ubiquiti software platforms, with servers for UniFi and UISP. We also offer network consulting, with HostiFi Professional Services.

More Blog Posts

Get the Ubiquiti Top 20

Each month our team sifts through Ubiquiti news and content from around the web and delivers 20 of our favorite links to your inbox.

View recent issues

No spam. Unsubscribe anytime.

🤩

Discovered 3+ things that I did not know and will have a material impact on my business.

Newsletter Subscriber

🤩

All the info I want/need in a single clean thread! Perfect!

Newsletter Subscriber

🤩

Providing super valuable information to keep the community in the know. Awesome links page, Thank You.

Newsletter Subscriber