Gateways, Prefix Conflicts, and Port Forwarding
This proposal treats three capabilities separately. They are choosing a gateway for a destination and detecting overlapping address spaces. The third is publishing a service through a host or port forward.
Gateway selection
A route identifies its gateway device and return-path mode. More than one gateway can publish the same destination. The system then needs explicit priority, health, and failover rules, and must not choose a gateway unpredictably. Route visibility should follow the network and trust rules of its publishing gateway.
Conflict classes
A remote LAN may overlap another remote LAN, a local device LAN, an Overlay, or an Alias. These cases have different remedies. Alias translation can address some remote overlap. A local collision may require a different virtual prefix or an explicit routing choice. Validation must be consistent regardless of which API creates the resource first.
Service forwarding
A host forward maps a virtual host address to a real LAN host, while a port forward exposes selected TCP or UDP ports. These are distinct from a general route and need clear ownership, translation mode, gateway, and failure behavior.
Acceptance
The proposed matrix covers creation order, duplicate routes, gateway loss, return paths, NAT behavior, and rejection without partial state. The proposal does not claim that every item is implemented.
The RG-02 design specifies independent Alias prefixes for two remote sites that overlap the client LAN. It includes per-Peer address sets, return modes, lifecycle rules, and remaining acceptance work. Source inspection confirms that Alias real prefixes are already excluded from published tunnel destinations.