Repository navigation
Conversation
A router behind CGNAT cannot be reached through an Inbound VPN, and with WAN remote access gone it had no remote management path at all. An Outbound VPN can now let the private network behind its server reach the router's web interface, its SSH server, or both, each opt-in per VPN. This is how a router connected to StartTunnel, or to a WireGuard server on a VPS, is managed from a laptop on the same server. For each VPN with access on, the VPN keeps its vpn_<iface> zone whether or not a profile routes through it, and input rules admit TCP 443/80 and/or 22 from RFC 1918 and ULA sources in that zone. Replies follow StartOS's per-gateway reply routing: a table per VPN, numbered above the shared divert table, holds a default route through the tunnel, and a source rule for each of the tunnel's own addresses looks it up, so a client on any subnet behind the server is answered through the tunnel. They are netifd rule/route sections, like StartWRT's other policy routing. The add dialog and the VPN page carry two switches with a warning that the server's operator can reach the router too. The Outbound VPN, CGNAT and FAQ pages document the setup, and the removal's changelog entry and pre-update notice now refer to VPNs generally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 17, 2026
1 task done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4710, which removes WAN remote access. As things currently stand in StartWRT 1.3.0, a router behind CGNAT cannot be reached through an Inbound VPN, so after #4710 it has no remote management path. This lets an Outbound VPN to a server you control, such as StartTunnel or a WireGuard server on a VPS, carry the router's web interface, its SSH server, or both, so you can manage the router from a laptop connected to the same server.
Summary
admin_web(TCP 443 and 80) andadmin_ssh(TCP 22), stored on itsvpn_clientsection and exposed onvpn-client.list,create, andupdate. Both are off by default; onupdate, an absent field keeps its current value.vpn_<iface>zone even when no profile routes through it (cleanup_orphaned_vpn_zonesnow counts these VPNs as in use), andstartwrt_vpn_admin_*input rules admit the chosen ports from RFC 1918 and ULA sources in that zone. The zone's default input policy staysREJECT, and WireGuard still drops any source the peer'sAllowedIPsdoes not cover.start-core/policy-routing.md). Each such VPN gets a routing table, numbered fromDIVERT_TABLE + 1(5345) so it sits above both StartWRT's VLAN-tag tables and the shared divert table, holding a default route through its tunnel. A source rule for each of the tunnel's own addresses, at priority 120 (behind the DNAT-return rule), looks that table up, so the router answers a client on any subnet behind the server through the tunnel, and the kernel's reverse-path lookup succeeds the same way. The rules and routes are netifdrule/rule6/route/route6sections, like StartWRT's other policy routing. StartOS's connection-mark rule is not needed here, because the router only answers from its own sockets and never forwards these connections.outbound-vpn.mdgains a Router Access section (steps, theAllowedIPsrequirement, the operator warning).cgnat.mdexplains how to manage the router through StartTunnel or a self-hosted WireGuard server, and the FAQ's "away from home" answer andoverview.mdpoint to it.API_CONTRACT.mddocuments the fields, rules, tables, and priorities.minor-added-vpn-router-accessfragment (selected for release notes, with translations). feat(start-wrt): remove WAN remote access #4710's fragment and pre-update notice now say "your VPNs" rather than "your Inbound VPNs", and the fragment names both ways to manage the router remotely.The router's HTTPS certificate already names whatever address a connection reached, so the tunnel address needs no certificate change; a device that trusts the Root CA trusts it.
Verification
make start-wrt-test: 936 + 37 passed, including a new test that turns router access on, checks the zone, rules, reply table, and source rules for both families, adds SSH, and then turns both off and checks that the zone, rules, and routes are gone.make start-wrt-rpc-bindings: regenerated; the only changes are the two fields onOutboundVpnand the create and update requests.npm run check:wrt,npm run check:i18n:wrt, andnpm run check:rpc-clients(29/29) pass.node scripts/changelog.mjs check-version projects/start-wrtpasses.Not run
🤖 Generated with Claude Code