Ubiquiti Controller and pfSense / netgate
If you are using the DHCP server on pfSense / netgate and Ubiquiti wireless access points – and the Ubiquiti controller is on a separate subnet from the access points, you will need to set up DHCP Option 43 on the dhcp server.
To set up option 43 first you need to make sure you have the correct version of pfSense. If you are running it on your own hardware, make sure you are running at least version 2.8.0-RELEASE (amd64) If you are running a Netgate router – make sure you are running at least version 25.07.1-RELEASE (arm64)
Under Services – DHCP Server – Settings – scroll to the bottom and find the “Custom Configuration” and add the following into the provided text box:
{ "option-def": [ { "space": "dhcp4", "name": "custom-option-vendor", "code": 43, "type": "binary" } ] }
Hit “Save”
Now – Under Services – DHCP Server – Lan – find the “Custom Configuration” at the bottom of the page and add the following into the provided text box with a modification:
{ "option-data": [ { "name": "custom-option-vendor", "data": "01040a800f18" } ] }
Nodification: Replace the 0a800f18 with the ip address of your Unifi controller (in hexidecimal). My controller is at 10.128.15.24. Make sure you keep the 0104 prefix in front of the hexidecimal ip address.
Hit “Save”
We are done!!!
This has been tested with version 2.8.0-RELEASE (amd64) and version 25.07.1-RELEASE (arm64)