Configure UDM/UCG to allow Wifi Sync API access

Configure UDM/UCG to allow Wifi Sync API access

If you are using a Unifi Gateway that is configured to work with a ui.com account, by default your controller is blocked to the internet. 
The below process will open up your UDM/UCG to allow the Wifi Sync platform to interact with your controller over the internet. 


Notes
Note: By exposing your controller login to the internet you should ensure that you have set a secure, complex password for all your users.

Step 1: Log in to UniFi Network

  1. Open your UniFi Controller Web UI (local or remote).

  2. Go to Settings → Internet → Port Forwarding (or Firewall & Security → Port Forwarding in some UI versions).


Step 2: Create Port Forwarding Rule

  1. Click Create New Port Forwarding.

  2. Configure the rule:

FieldValue
NameUniFi_API_Custom_Port
From Port (External)51443
To Port (Internal)443
ProtocolTCP
Forward To
192.168.1.1
 

(UDM LAN IP - This may be different if you are using a different IP range )
EnabledYes
  1. Save / Apply.


Step 3: Restrict Access by Source IP

Note: The IP address below is the authorised Wifi-Sync IP address servers.

  1. Go to Settings → Firewall & Security → WAN IN.

  2. Click Create New Rule:

FieldValue
NameAllow_API_from_WifiSync
ActionAccept
ProtocolTCP
Source13.54.236.37
Source PortAny
Destination192.168.1.1
Destination Port51443
EnabledYes
  1. Place this rule above any default drop rules to ensure it takes priority.


Step 4: Block All Other WAN Access to the Port

  1. Create a second rule below the above rule:

FieldValue
NameBlock_Other_API_Access
ActionDrop / Reject
ProtocolTCP
SourceAny
Destination192.168.1.1
Destination Port51443
EnabledYes
  1. Save / Apply.


Update WiFi Sync URL

Navigate to the WiFi Sync Dashboard Portal
Where it asks for Unifi Controller URL enter the Public IP address of your controller and the Port as configured above
You can find the Public IP address on your Gateway Dashboard, use this to update your Unifi Controller URL.

    • Related Articles

    • WiFi Sync Setup for Open Mesh / Datto

      Log in to the CloudTrax portal at https://ct4.cloudtrax.com Or Use the Datto Networking Status Page  On the left, click on an SSID of your choice and configure with the following: SSID name: Guest WiFi (or whatever you wish) Enable: Enabled Visible: ...
    • WiFi Sync setup for Meraki

      Click Configure > Access Control on the left menu. From the SSID dropdown, choose the one you wish to use, then configure with the below settings: Association Requirements Open (no encryption) Splash page Sign-on with my RADIUS server click Add a ...
    • Setting Up Unifi Admin Account for Wifi Sync

      1. Open your Unifi Controller 2. Navigate to the Admins/User Section. Note: For users connecting via the UI.com Site manager, this setting is found under "OS Settings" 3. Click on 'Add New Admin.' 4. Make sure remote access or UI account is switched ...
    • Guest WiFi v2 - Unifi Controller

      Setting Up a Guest WiFi Network with External Portal on a Unifi Controller 1. Navigate to your Unifi Controller. Note, it must be always online and reachable via the internet. 2. Go to the Settings Page 3. Click "WiFi" 4. Click Wi-Fi. Then create a ...
    • Ubiquiti Unifi (Controller 5.7+)

      Cloudkey/Unifi Controller Instructions Log in to your UniFi controller and click the Setting icon (bottom left).  On the left menu, under Wireless Networks click Create New Wireless Network and configure with: Name/SSID: Guest WiFi (or whatever you ...