devices(ubiquiti): the UXG pair served its LAN address on every WAN socket (refs #130) #2385

Merged
jaylouisw merged 1 commit from catalogue/1121-0652 into main 2026-11-21 07:12:11 +00:00
Owner

Refs #130 (fallback work; this does not answer the Dream Wall Pro request - that SKU still has no Ubiquiti source).

UXG-Enterprise and uxg-pro shipped every socket with no role. The Pro even names its copper rj45-wan / rj45-lan, but nothing in the engine reads a name: the check is owner.role && inIface.role && owner.role !== inIface.role (engine/device.js, ownsIpOn), so the separation never fired. Measured on the pre-change specs with 192.168.1.1/24 on the LAN port: ownsIpOn(eth0|SFP+-2|SFP28-1, '192.168.1.1') all returned the LAN bank on the Enterprise, ownsIpOn(rj45-wan|sfp+1|sfp+2, ...) all returned it on the Pro, and a host cabled to each of those sockets inside that prefix got an ICMP reply from the LAN gateway.

surface measurement
https://static.ui.com/fingerprint/ui/public.json (200, 832,585 B) sku UXG-Enterprise: numberOfPorts 6 = standard 2 + plus [3, 4] + sfp28 [5, 6]; ports = {eth0: WAN, eth1: LAN, eth2: LAN, eth3: LAN, eth4: WAN2, eth5: LAN}; linkNegotiation eth0/eth1 portIdx 1/2 at 2500 FDX, eth2/eth3 3/4 at 10000, eth4/eth5 5/6 at 25000
same file, sku UXG-Pro numberOfPorts 4 = standard [0, 1] + plus [2, 3]; ports = {eth0: WAN, eth1: LAN, eth2: WAN2, eth3: LAN2}; eth0/eth1 portIdx 1/2 at 1000, eth2/eth3 3/4 at 10000
https://techspecs.ui.com/unifi/cloud-gateways/uxg-enterprise (200, 671,598 B) Port Layout 2.5 GbE RJ45 2 / 10G SFP+ 2 / 25G SFP28 2; Default WAN Ports (1) 25G SFP28 (1) 2.5 GbE RJ45; Max. WAN Port Count 5
https://techspecs.ui.com/unifi/cloud-gateways/uxg-pro (200, 649,578 B) Default WAN Ports (1) 10G SFP+ (1) GbE RJ45; Max. WAN Port Count 3; Port Layout lists the two cages only
https://dl.ui.com/ds/uxg-pro_ds.pdf (200, 433,832 B, text layer) Networking interface LAN: (1) 1 GbE RJ45 port / (1) 10G SFP+ port; WAN: (1) 1 GbE RJ45 port / (1) 10G SFP+ port - one copper and one cage per side
https://store.ui.com/us/en/products/uxg-enterprise (200, 539,158 B) (2) 25G SFP28, (2) 10G SFP+, and (2) 2.5 GbE RJ45 ports (two interfaces remappable to WAN)

Both chassis close without slack: six positions of six, four of four, so the cages are the tail positions and the ports map's WAN2 sits on the first one. Roles now: Enterprise eth0 wan, eth1 lan, SFP+-1 / SFP+-2 lan (eth2/eth3), SFP28-1 wan (eth4), SFP28-2 lan; Pro rj45-wan wan, rj45-lan lan, sfp+1 wan, sfp+2 lan. dualRole is deliberately not declared on either row - the pages print a Max. WAN Port Count and "two interfaces remappable to WAN" but never name which sockets, so a per-port reassignment claim would be a guess.

dl.ui.com/ds/uxg-enterprise_ds.pdf still answers 200 with the 609,911-byte techspecs front page, not a PDF (re-measured 2026-11-21) - recorded in the spec so it is not re-walked.

Gates: scripts/syntax-check.js 516 files OK; scripts/audit-port-types.js 0 contradicting; scripts/audit-devices.js 0 hard defects, 0 uncablable ports; test/hardware-invariants.test.js 26 passed; test/import-devices-capabilities.test.js 34 passed; scripts/regen-registry-doc.js current; full scripts/run-tests.js 436 suites / 14,698 assertions, 0 failed. test/ubiquiti-wan-lan-role-separation.test.js gains both rows (role per socket, LAN peer still answered, and an overlapping-subnet ping from each WAN socket that must not be answered).

Refs #130 (fallback work; this does not answer the Dream Wall Pro request - that SKU still has no Ubiquiti source). `UXG-Enterprise` and `uxg-pro` shipped every socket with no `role`. The Pro even names its copper `rj45-wan` / `rj45-lan`, but nothing in the engine reads a name: the check is `owner.role && inIface.role && owner.role !== inIface.role` (`engine/device.js`, `ownsIpOn`), so the separation never fired. Measured on the pre-change specs with `192.168.1.1/24` on the LAN port: `ownsIpOn(eth0|SFP+-2|SFP28-1, '192.168.1.1')` all returned the LAN bank on the Enterprise, `ownsIpOn(rj45-wan|sfp+1|sfp+2, ...)` all returned it on the Pro, and a host cabled to each of those sockets inside that prefix got an ICMP reply from the LAN gateway. | surface | measurement | |---|---| | `https://static.ui.com/fingerprint/ui/public.json` (200, 832,585 B) | `sku` UXG-Enterprise: `numberOfPorts` 6 = `standard` 2 + `plus` [3, 4] + `sfp28` [5, 6]; `ports` = {eth0: WAN, eth1: LAN, eth2: LAN, eth3: LAN, eth4: WAN2, eth5: LAN}; `linkNegotiation` eth0/eth1 portIdx 1/2 at 2500 FDX, eth2/eth3 3/4 at 10000, eth4/eth5 5/6 at 25000 | | same file, `sku` UXG-Pro | `numberOfPorts` 4 = `standard` [0, 1] + `plus` [2, 3]; `ports` = {eth0: WAN, eth1: LAN, eth2: WAN2, eth3: LAN2}; eth0/eth1 portIdx 1/2 at 1000, eth2/eth3 3/4 at 10000 | | `https://techspecs.ui.com/unifi/cloud-gateways/uxg-enterprise` (200, 671,598 B) | `Port Layout` 2.5 GbE RJ45 2 / 10G SFP+ 2 / 25G SFP28 2; `Default WAN Ports (1) 25G SFP28 (1) 2.5 GbE RJ45`; `Max. WAN Port Count 5` | | `https://techspecs.ui.com/unifi/cloud-gateways/uxg-pro` (200, 649,578 B) | `Default WAN Ports (1) 10G SFP+ (1) GbE RJ45`; `Max. WAN Port Count 3`; Port Layout lists the two cages only | | `https://dl.ui.com/ds/uxg-pro_ds.pdf` (200, 433,832 B, text layer) | `Networking interface LAN: (1) 1 GbE RJ45 port / (1) 10G SFP+ port; WAN: (1) 1 GbE RJ45 port / (1) 10G SFP+ port` - one copper and one cage per side | | `https://store.ui.com/us/en/products/uxg-enterprise` (200, 539,158 B) | `(2) 25G SFP28, (2) 10G SFP+, and (2) 2.5 GbE RJ45 ports (two interfaces remappable to WAN)` | Both chassis close without slack: six positions of six, four of four, so the cages are the tail positions and the `ports` map's WAN2 sits on the first one. Roles now: Enterprise `eth0` wan, `eth1` lan, `SFP+-1` / `SFP+-2` lan (eth2/eth3), `SFP28-1` wan (eth4), `SFP28-2` lan; Pro `rj45-wan` wan, `rj45-lan` lan, `sfp+1` wan, `sfp+2` lan. `dualRole` is deliberately not declared on either row - the pages print a `Max. WAN Port Count` and "two interfaces remappable to WAN" but never name which sockets, so a per-port reassignment claim would be a guess. `dl.ui.com/ds/uxg-enterprise_ds.pdf` still answers 200 with the 609,911-byte techspecs front page, not a PDF (re-measured 2026-11-21) - recorded in the spec so it is not re-walked. Gates: `scripts/syntax-check.js` 516 files OK; `scripts/audit-port-types.js` 0 contradicting; `scripts/audit-devices.js` 0 hard defects, 0 uncablable ports; `test/hardware-invariants.test.js` 26 passed; `test/import-devices-capabilities.test.js` 34 passed; `scripts/regen-registry-doc.js` current; full `scripts/run-tests.js` 436 suites / 14,698 assertions, 0 failed. `test/ubiquiti-wan-lan-role-separation.test.js` gains both rows (role per socket, LAN peer still answered, and an overlapping-subnet ping from each WAN socket that must not be answered).
devices(ubiquiti): the UXG pair served its LAN address on every WAN socket (refs #130)
All checks were successful
CI / Classify the change (pull_request) Successful in 14s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 16s
CI / Test (Node 22) (pull_request) Successful in 1m2s
CI / Test (Node 18) (pull_request) Successful in 1m3s
CI / Server smoke and Docker build (pull_request) Successful in 25s
CI / Test (Node 20) (pull_request) Successful in 1m4s
CI / Arm auto-merge (pull_request) Successful in 4s
4a7b9c95fd
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-21 07:01:58 +00:00
jaylouisw deleted branch catalogue/1121-0652 2026-11-21 07:12:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge!2385
No description provided.