UniFi OS Server Overview
Learn how to install UniFi OS Server and what the requirements are
March 18, 2026

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:
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.
Once SSH is enabled, you can SSH into your Dream Machine Pro using the following command:
ssh root@[ip-address]
Once you're logged in via SSH, you can install Wireguard using the following commands:
apt-get update && apt-get install 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]
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.
No spam. Unsubscribe anytime.
Newsletter Subscriber
Newsletter Subscriber
Newsletter Subscriber