Replacing the Unifi Security Gateway with the Unifi Dream Machine Pro
Introduction
I replaced my Unifi Security Gateway (USG) with a Unifi Dream Machine Pro (UDM-Pro), enabling features like IDS/IPS, WireGuard VPN and Unifi Protect.
I chose the UDM-Pro over the UDM-SE because I connected it to a switch with LAN ports and PoE output via a 10G SFP+ cable (the first 10G connection in my home!).
Instead of migrating, I rebuilt the network from scratch to revise old settings and switched from Unifi Network Application 6.x to 7.x. I expanded VLANs and WiFi networks, detailed here, along with my new firewall setup. Here’s a brief overview of the process.
Preparation
- I reviewed my device authentication credentials (SSH) which can be used to recover adopted device(s) if the migration is unsuccessful
- I downloaded a backup of the network application (*.unf file)
- I made screenshots of the most important settings like the firewall and WiFi settings
How To
-
Turning on the UDM Pro
- Before turning on the UDM Pro I connected the UDM Pro to the internet by connecting a lan port to a switch (like any other device). I also connected my laptop to another LAN port to be able to approach UniFi OS on the UDM Pro.
- I turned on the UDM Pro and found out UniFi OS was running at
https://192.168.0.1
. I created a new ui.com account (yes I did not use an ui.com account before) and ensured that the UniFi OS applications and UDM Pro firmware were up-to-date. - Then I disconnected the UDM Pro from the switch so I could change the gateway IP address (Default network) to the IP address of the USG.
-
Migration
- The UDM Pro was now running on the USG’s IP address. In the old Unifi Network Application I made sure that all Unifi devices such as the AP and switches were ‘forgotten’ which would reset the devices to factory settings so I could reconfigure the network.
- Then I unplugged the USG and reestablished the connection between the UDM Pro and the switch.
- I restored internet by setting up a new WAN connection (optical fiber PPPoE in my case) on the UDM Pro.
- Within the new Unifi Network Application I could see the ‘forgotten’ Unifi devices and I adopted the devices.
-
Client Devices
Before I started configuring the networks/VLANs and more, I first added the client devices with MAC addresses and static IP addresses.
-
Finally
Fortunately, everything went smoothly. I hope this is helpful to someone. If things had gone wrong, I would have used
set-default
andset-inform 'http://ip-of-controller:8080/inform'
with SSH, but that wasn’t necessary.
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.