devices(ubiquiti): the Enterprise Firewall answered its LAN address on the WAN socket #2419
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2419
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "catalogue/1121-1222"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #130
The UDW-PRO source is still absent (re-measured this run:
https://techspecs.ui.com/unifi/cloud-gateways/udw-pro-> 307 to/;https://store.ui.com/us/en/products/udw-pro-> 404). This PR fixes the same WAN/LAN separation defect on a sibling cloud gateway.The defect.
devices/ubiquiti/efg.jsonshipped all six ethernet sockets with norole.engine/device.jsownsIpOnonly separates surfaces whenowner.role && inIface.role && owner.role !== inIface.role, so the check was a no-op: measured before the change, with192.168.1.1/24oneth1,ownsIpOn(eth0, '192.168.1.1')returned true — a host cabled to the 2.5G WAN socket inside the LAN prefix got an ICMP reply from the LAN gateway.The vendor's own map.
https://static.ui.com/fingerprint/ui/public.json(HTTP 200, 832,585 B, read 2026-11-21), keysku= EFG, givesnumberOfPorts6 andports={eth0: WAN, eth1: LAN, eth2: LAN, eth3: LAN, eth4: WAN2, eth5: LAN},plus[3,4] (10G SFP+),sfp28[5,6] (25G SFP28);linkNegotiationputs eth0/eth1 at portIdx 1/2, eth2/eth3 at 3/4, eth4/eth5 at 5/6.https://techspecs.ui.com/unifi/cloud-gateways/efg(HTTP 200, 678,934 B, read 2026-11-21) printsDefault WAN Ports (1) 25G SFP28 (1) 2.5 GbE RJ45,Max. WAN Port Count 5, andPort Layout 2.5 GbE RJ45 2 / 10G SFP+ 2 / 25G SFP28 2.The change.
eth0declaresrole: "wan";eth1and both 10G SFP+ cages (sfp1,sfp2— the controller's eth2/eth3, both LAN) declarerole: "lan". The two 25G SFP28 cages carrydualRole: ["wan","lan"]and norole: the controller names one WAN2 and one LAN, but this row'ssfp3/sfp4are not vendor-issued names and the page prints one25G SFP28 2row, so choosing which cage is eth4 would be an ordering guess.Max. WAN Port Count 5stays unmodelled for the same reason.Measured after:
ownsIpOn(eth0, 192.168.1.1)false,ownsIpOn(sfp1, 192.168.1.1)true,ownsIpOn(eth0, 203.0.113.1)true; a host on eth0 in the LAN prefix gets no reply, a host on eth1 does. Test:test/ubiquiti-wan-lan-role-separation.test.js(EFG block). Gates:node scripts/syntax-check.js532 files OK;node scripts/audit-port-types.js0 contradictions;node scripts/audit-devices.js0 hard defects;test/hardware-invariants.test.js26 passed;test/catalogue-hygiene.test.js25 passed;test/import-devices-capabilities.test.js34 passed;test/doc-catalog-counts.test.js43 passed; role test 218 passed.