Ubiquiti · port forwarding

Ubiquiti UniFi Cloud Gateway Ultra port forwarding is not working

Ubiquiti UniFi Cloud Gateway Ultra port forwarding is not working: local service, firewall, reserved IP, double NAT, CGNAT and provider blocks should be proved in order. Scoped to UCG-Ultra.

Port forwarding on a Ubiquiti Cloud Gateway Ultra lets a service on your network be reached from the internet, and it works only if the gateway has a public address, the device has a fixed internal address and the rule is correct. In the UniFi Network application, go to Settings, Security, Port Forwarding, or the Firewall and Security section in newer versions, and create a rule. Give it a name, choose the protocol (TCP, UDP or both), enter the external port that people will connect to and the internal address and port of the device.

The checks in more detail

Set the device to a fixed address first, either by setting a static address on it or by making a DHCP reservation in the application, since a changed address breaks the rule. If it does not work, check the basics. The gateway's WAN address must be public: if your provider uses carrier-grade NAT, the address shown for the gateway begins with 100.64 to 100.127, or is a private address, and forwarding from the internet cannot work until the provider gives you a public address. Test from outside your network, such as from a phone on mobile data, because testing from inside often fails without hairpin NAT. Make sure the device's own firewall allows the connection and that the service is listening on the port.

Check that no other rule or Intrusion Prevention feature is blocking the traffic. Security matters. Forward only the ports you need, prefer a VPN to opening a service to the whole internet and keep the service up to date. Check the gateway's logs for blocked traffic. If you change the gateway's WAN type or restart it, the rules persist. For cameras and game servers, use the vendor's recommended ports. Some devices can use UPnP, which Ubiquiti lets you enable, but manual rules are easier to control. Contact Ubiquiti support if a correct rule on a public address does not work, and send a support file.

In UniFi, forwarding is separate from the firewall: a rule in Port Forwarding makes the translation, but a firewall policy in the Zone-Based Firewall or the older Traffic Rules can still block the traffic, so check the Security settings for a rule that drops traffic from the internet to the internal zone. If you have a Dream Machine or another router in front of the gateway, there are two layers of translation and you must forward on both. Dynamic DNS can provide a name for a home address that changes. Keep the forwarded device updated and avoid forwarding administrative services such as remote desktop.

Differential

Likely causes of “Ubiquiti UniFi Cloud Gateway Ultra port forwarding is not working”, and how to tell them apart

  1. 1

    A device with a changing address

    What separates it The rule stops working later

    How to confirm Reserve a fixed address

  2. 2

    Carrier-grade NAT

    What separates it The WAN address is not public

    How to confirm Ask the provider for a public address

  3. 3

    Testing from inside the network

    What separates it The service looks unreachable

    How to confirm Test from mobile data

  4. 4

    A firewall on the device

    What separates it The connection is refused

    How to confirm Allow the port on the device

  5. 5

    A conflicting rule

    What separates it Traffic is blocked

    How to confirm Check firewall rules and Intrusion Prevention

Before you touch a setting

Record this first — changing settings destroys the evidence

  • When the problem started and what changed
  • Any message on the screen
  • Whether it happens in every app
  • The model and serial number

Try in this order

0 of 6 completed
  1. Reserve the device's address

    Reversible

    Static or DHCP reservation.

  2. Create the forwarding rule

    Reversible

    Protocol, ports, address.

  3. Check the WAN address

    Reversible

    It must be public.

  4. Test from outside

    Reversible

    Use mobile data.

  5. Check device firewall

    Reversible

    And service listening.

  6. Contact Ubiquiti

    Reversible

    With a support file.

Model-specific

What is true of this model and not of its siblings

Carrier-grade NAT
The provider shares one public address.
VPN
Safer than opening a port.

Stop boundary

When this stops being a self-service repair

  • !If the steps do not clear it, contact the maker with the model and serial number
  • !Back up important data before a reset
  • !Check the warranty before paying for a repair

Evidence ledger

Sources behind this answer

Exact questions

Common questions

Why doesn't my port forward work?+

Carrier-grade NAT or a changing address.

Where do I set it?+

In the UniFi Network settings.

How do I test?+

From outside your network.

Is it safe?+

Forward only what you need.

Wrong device or version?

Match the path before repeating the steps.

Match another device