You are affected if the gateway's WAN address is in a private range: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 or, for carrier NAT, 100.64.0.0/10. That means another router or your provider is translating addresses in front of the gateway. The fix Ubiquiti gives is to put the ISP modem or router into bridge mode so the gateway gets a public address on the WAN.
Without upstream bridge mode, incoming ports must also forward from the upstream router to the gateway’s WAN address.
An upstream DMZ configuration can perform that forwarding where supported. Ubiquiti warns that behind NAT, reaching the upstream router's public address from a LAN client, called hairpin NAT, will not work. For remote access to services, Ubiquiti suggests WireGuard or Teleport VPN instead of exposing ports, and Teleport can work behind NAT, though it may need an IPv6 WAN in some cases.
If your provider uses carrier NAT you cannot forward ports at all; ask for a public address or use a VPN. After a change restart the modem then the gateway and check the WAN address again in Internet settings. If your provider only offers a combined modem and router with no bridge mode, some allow IP passthrough or a DMZ host that points at the gateway's WAN address, which behaves much like bridge mode for most purposes.
Ask for it by name, and after the change confirm the gateway's WAN address is public and that a port check from outside reaches it. If the provider gives out carrier NAT addresses, ask whether a public address is available for a small fee, since it removes the problem altogether. Test incoming ports from an outside connection after changing NAT.
An equipment or provider change can alter whether the gateway has a publicly reachable address.
Related answers in Ubiquiti network model troubleshooting guide: Ubiquiti UniFi gateways firmware update will not install, Ubiquiti UniFi gateways has Wi-Fi but no internet, UniFi gateways: parental controls or schedules do not apply.
| Scope | Covered or excluded |
|---|---|
| Condition | Shows double NAT or strict NAT |
Differential
UniFi gateways: compare the causes
- 1
A provider gateway routing
What separates it.The gateway has a private WAN address because a provider gateway is routing in front of it
How to confirm.Upstream bridge mode gives the UniFi gateway the routing role; public addressing also depends on the provider
- 2
Carrier-grade NAT
What separates it.The WAN address begins 100.64 because the provider uses carrier grade NAT
How to confirm.Direct incoming connections require public addressing; some VPN services work behind NAT
- 3
Ports forwarded on one device only
What separates it.The ports stay closed because they were forwarded on only one of the two devices
How to confirm.Forward the ports on both devices, so that traffic reaches the gateway and the host
- 4
Hairpin NAT
What separates it.You cannot reach your own public address from the LAN because of hairpin NAT
How to confirm.Use the internal address for the service from inside your network
- 5
An upstream firewall
What separates it.The traffic is blocked because a firewall upstream stops it
How to confirm.Test with the upstream firewall disabled, and open the ports that the service needs
Record before making changes
UniFi gateways: observations
- The WAN address that the gateway shows
- The provider unit and its mode
- Which ports fail to open from outside
- Whether the provider uses carrier NAT
Read the WAN address, since a private range or a 100.64 address means there is NAT in front.
Ask for bridge mode
Ask for bridge mode on the provider's unit, so that the gateway gets the public address.
Or forward upstream
Or forward the ports upstream, to the gateway's WAN address, so that traffic can reach it.
Or use a VPN
Or use a VPN such as Teleport or WireGuard, which can work behind carrier grade NAT.
Restart
Restart the modem first, and then the gateway, and wait for both to finish starting up.
Recheck
Recheck the WAN address after the restart, to see whether it is now a public address.
Test from outside
Test from outside your network, using cellular data on a phone rather than your wifi.
Model-specific
UniFi gateways: model limits
- WAN
All three gateways show the WAN address in Internet settings.
- Ports
Multiple WANs can be used for failover on models that have more than one WAN port.
Stop boundary
UniFi gateways: service criteria
- !
If the provider will not bridge or supply a public address, use Teleport or WireGuard
- !
If the WAN address is public and ports stay closed, check the upstream firewall
- !
If the gateway shows no WAN address, follow the no-internet steps
References
Exact questions
UniFi gateways: common questions
What is carrier NAT?+
Carrier NAT is when the provider translates addresses, using the 100.64.0.0/10 range.
What is hairpin NAT?+
Hairpin NAT is reaching the public address from inside, and it does not work behind NAT.
Is UPnP a substitute?+
Ubiquiti recommends keeping UPnP off, so it is not a substitute for a proper rule.
Can Teleport work behind NAT?+
Yes, Teleport can work behind NAT, according to Ubiquiti's FAQ.
Should I use a DMZ?+
Use a DMZ only if the provider offers it, and only for one trusted device.
Model-specific instructions
Ubiquiti UniFi Dream Machine Special Edition
A double NAT with a UniFi Dream Machine SE means two routers in a row, usually a provider's modem that also routes in front of the gateway, and it causes trouble for port forwards, game consoles, VPNs and some cameras. To check, look at the WAN address on the UniFi gateway's status page in the UniFi Network app. If it is a private address, such as one starting with 192.168, 10 or 172.16 to 172.31, the gateway is behind another router.
Compare it with what a site that shows your public address says: if they differ, there is a second layer of NAT. Some providers also use carrier-grade NAT, which shows a 100.64 address and cannot be fixed on your side; ask the provider for a public address if you need to host.
There are three ways to cure a double NAT caused by your own modem. The best is bridge mode, set in the provider's modem or gateway, which turns off its routing and passes the public address to the UDM SE; each provider's device has a different menu, and some do not allow it, in which case ask the provider. The second is to put the UDM SE in the modem's DMZ or IP passthrough mode, which sends all traffic to it and effectively removes the modem's router role.
The third is to forward the needed ports twice, once on the modem to the UDM SE and again on the UDM SE to the device, which works but is clumsy.
After changing the modem mode, restart both, modem first, and look at the UDM SE's WAN address again; it should now be the public address. If the connection fails to come up, the provider may have tied service to the old device's address, so restart the modem again or call. Remove any old port forwards and firewall rules, then set them up fresh on the UDM SE.
Test a forward from mobile data. A console's NAT type should improve to open. Keep Wi-Fi from the old modem off to avoid interference, and use UniFi access points instead.
Update the firmware. If the provider forbids bridge mode, a separate modem you own is an option. Ubiquiti's help pages explain the steps.
| Field | Value |
|---|---|
| Model | Ubiquiti UniFi Dream Machine Special Edition UDM-SE |
| Condition | shows double NAT or strict NAT |
- The WAN address
- The modem's model and mode
- Whether the address starts with 100.64
- The console's NAT type
Compare possible causes
- A provider modem that also routes
- What separates it.
A private WAN address on the gateway
How to confirm.Put the modem in bridge mode
- Carrier-grade NAT
- What separates it.
A 100.64 WAN address
How to confirm.A public WAN address is required for inbound connections that carrier-grade NAT otherwise blocks
- A modem that cannot bridge
- What separates it.
No bridge option
How to confirm.Use DMZ or passthrough, or forward twice
- Old forwards and rules
- What separates it.
Confusion after the change
How to confirm.Remove them and set up fresh
- Provider tied to the old device
- What separates it.
The WAN does not come up
How to confirm.Restart the modem and contact the provider
- Check the WAN address.
In UniFi Network.
- Compare with your public address.
To confirm double NAT.
- Set the modem to bridge mode.
Or DMZ.
- Restart modem first.
Then the gateway.
- Remove old forwards.
And rebuild them.
- Test from mobile data.
Outside.
- Bridge mode
Turns off the modem's routing.
- 100.64
Indicates carrier-grade NAT.
What is double NAT?
Two routers in a row.
How do I check?
The WAN address is private.
What is carrier-grade NAT?
The provider shares one public address.
What is the best fix?
Bridge mode on the modem.
- If the provider will not allow bridge mode, consider your own modem
- Ask for a public address if carrier-grade NAT
- Note settings before changes
Ubiquiti UniFi Cloud Gateway Ultra
The UniFi Cloud Gateway Ultra is a full router, and a double NAT appears when the provider's own box in front of it is also routing, which gives the Ultra a private address on its WAN port instead of the public one. The symptoms are familiar: games report a strict NAT type, port forwards that you set on the Ultra never work, remote access to your own devices fails and some services complain about two layers of address translation. The ShiftCtrl article on UniFi double NAT sets out the choices.
First find out whether you have one: open the Ultra's page in the UniFi application and read the WAN IP address. If it starts with 10, 192.168 or 172.16 to 172.31, a router sits in front. If it begins with 100.64 to 100.127, the provider is using carrier-grade NAT, which no setting on your side can remove and for which you need to ask for a public address, often free on request.
The best fix is to turn the provider's box into a plain modem. Many gateways have a bridge mode or IP passthrough option in their admin page: bridge mode turns off the box's routing so that the Ultra receives the public address by DHCP, and passthrough hands the address to a chosen device and keeps some functions. Follow the provider's instructions, restart the box, then the Ultra, and recheck the WAN address.
If the box cannot be bridged, plug the Ultra into one of its LAN ports and put the Ultra's address in the box's DMZ or exposed host setting, which forwards everything to the Ultra and reduces the double-NAT trouble, though the box still translates. NETGEAR and Google also document the same principle for other routers. Turn off Wi-Fi on the provider's box once the Ultra and its access points take over, to avoid two networks.
Remember that for most browsing a double NAT causes no slowdown, and it matters for gaming and hosting. After the change, run the NAT type test on a console, and test a port forward. If the provider insists the box cannot bridge, ask about a modem-only device for the same plan.
| Field | Value |
|---|---|
| Model | Ubiquiti UniFi Cloud Gateway Ultra UCG-Ultra |
- The WAN address in the UniFi application
- The provider box model
- Whether bridge or passthrough exists
- The NAT type on a console
Compare possible causes
- The provider box still routing
- What separates it.
A private WAN address
How to confirm.Put it into bridge or passthrough mode
- A box that cannot bridge
- What separates it.
No bridge option
How to confirm.Use the DMZ or exposed host setting
- Carrier-grade NAT
- What separates it.
A WAN address in 100.64 to 100.127
How to confirm.A public WAN address is required for inbound connections that carrier-grade NAT otherwise blocks
- Two Wi-Fi networks
- What separates it.
The old box still broadcasts
How to confirm.Turn its Wi-Fi off
- A forward set on the wrong layer
- What separates it.
Port forwards fail
How to confirm.Fix the front device first
- Read the WAN address.
In the UniFi application.
- Bridge the provider box.
Or use passthrough.
- Restart the box then the Ultra.
And recheck.
- Use the DMZ.
If bridging is impossible.
- Turn off the box's Wi-Fi.
To avoid two networks.
- Test NAT type.
And a port forward.
- Private WAN address
10, 172.16 to 31 or 192.168.
- CGNAT range
100.64.0.0 to 100.127.255.255.
How do I know I have double NAT?
The Ultra's WAN address is private.
What is carrier-grade NAT?
Does double NAT slow browsing?
Not noticeably.
What does bridge mode do?
It turns off the box's routing.
- If the provider will not bridge, ask for a modem-only device
- If the WAN address is in the 100.64 range, ask about a public address
- Check the Ultra's WAN settings