Why this matters beyond the homelab: When a platform reserves a port for its own feature, that reservation is a design constraint on your firewall. Write the constraint down and design inside it, instead of discovering it one rule at a time.
The Error
I was writing the allow rule that would let the Pi VLAN reach the reverse proxy, the obvious rule for a design where every service is checked at its real hostname. The UDM refused to save it:
Firewall Rule on port 443 can't be created because it's used by
Direct Remote Connection feature. Please disable the feature to
create custom rule.
Direct Remote Connection is what lets the UniFi app reach the console away from home without a VPN. UniFi reserves 443 for it, and no custom rule can name that port while it is on.
The Options
I wrote out the alternatives before choosing one.
Direct IP and port rules. Each service gets a narrow allow rule to its own address and port. No change to remote access, and the tightest rule set. The cost is one entry per service, and monitoring checks the address, not the hostname.
Turn off Direct Remote Connection. This restores the planned pattern and removes a WAN-facing feature. The cost is losing console access away from home without a VPN, which I had already decided I wanted to keep.
The zone-based policy engine. The restriction came from the classic rule form, and I could not tell whether zone-based policies apply the same check. Worth a test, but unproven.
A second NPM listener port. Technically possible, but it means a special configuration for one VLAN, so I rejected it.
Routing the Pis through Tailscale. It would skip the firewall entirely, which undermines the isolation the VLAN exists to provide. Rejected.
The Choice
Direct IP and port rules, collected in one address group for the Pi VLAN. Uptime Kuma now checks http://<service-address>:<port> for the services it watches, not the public HTTPS hostname.
That choice has costs I should be honest about. Kuma can no longer see the certificate or the reverse proxy in that check, so a broken proxy or an expiring certificate would not show up there. Every new service needs its own entry. I accepted both because the rule set stays narrow and remote access to the console stays intact.
Takeaways
A reserved port is a constraint, not a bug. Find it before the design depends on the rule it blocks.
The tightest rule can cost you visibility. Checking by address instead of hostname means the proxy and certificate are no longer in the check.
Write down the options you rejected. The next person to hit the error, usually me, can see why the answer is what it is.
Related: The DNS Rule That Caught Its Own Resolver | Locking an IoT VLAN Out of the Internet | The Alliance Fleet, Reintroduced