Repository navigation
Conversation
The router's web interface and SSH no longer answer on the WAN. A source address proves nothing about who sent a packet: whoever is on the path (the ISP, the upstream router, or any client of a joined Wi-Fi uplink) can send from a private address, so the "When behind NAT" mode admitted them, and "Always" put the login page on the public Internet. This removes the Remote Access setting, its firewall rules, the WAN SSH session killer, the startup and hotplug re-application, and the SNI fallback that sent unrouted connections on WAN port 443 to the web UI. A boot migration deletes the existing startwrt_remote_* rules and the stored setting. The settings page, API types, mock, help, dictionaries, docs, and API contract drop it as well. The bench's management port was bootstrapped over WAN port 22; mgmt install and remove now run over the serial console, and smoke expects the UI and port 22 to be closed from the WAN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
This is actually an openwrt feature, @Dominion5254 is going to set it to Never by default instead, but leave the option in place as upstream has it. |
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.
StartWRT's web interface and SSH no longer accept connections arriving on the WAN, and the Remote Access setting is removed.
Source addresses can be spoofed by the network operator (or in some cases, anyone on the network), so an address check shouldn't be used even as a partial authentication mechanism. Whoever sits on the path — the ISP, the upstream router it owns, or any other client on a network that the start9 router joins as its uplink (as proposed in #4613) — can send packets from a private address, so System Settings > Remote Access > "When behind NAT" (the default) admitted anyone whenever the router's WAN address was private (RFC1918), and choosing "Always" there put the login page on the public Internet.
After this PR, managing the router from outside is achieved via an Inbound VPN, as the docs already recommended. A follow-up PR (#4711) adds an opt-in for managing the router through an Outbound VPN connection such as a StartTunnel instance, which is the viable path for routers behind CGNAT.
Summary
remote_accesspreference and its field onsystem.info/system.set-preferences, thesystem.apply-remote-accessendpoint, thestartwrt_remote_*firewall rules, the WAN SSH-session killer, and the re-application at daemon startup and from the99-startwrt-remote-accesshotplug hook (deleted, and no longer staged into the image).RemoveWanRemoteAccessdeletes existingstartwrt_remote_*rules (matched by section or rule name) and the storedremote_accessoption, leaving every other rule alone.settings.md;published-ports.mdno longer describes Remote Access ports or 443 sharing;faq.mdgains "How do I manage my router when I'm away from home?" (Inbound VPN).API_CONTRACT.md,backend/ARCHITECTURE.mdandbackend/README.mdare updated.mgmt install/mgmt removebootstrapped over WAN port 22, which Remote Access opened. They now run over the serial console, andsmokeexpects the UI and port 22 to be closed from the WAN.minor-removed-wan-remote-accessfragment (selected for release notes, with translations), andrelease-notes/1.4.0.pre-update.mdtelling anyone who reaches the router over the WAN without a VPN to set up an Inbound VPN first.#4613 (Wi-Fi uplink) builds on Remote Access, so its join warning, hotplug hook and SSH-session closing should be dropped when those parts rebase onto the code in this PR.
Verification
make start-wrt-test: 935 + 37 passed, including the new migration test.make start-wrt-rpc-bindings: regenerated; the only change is the removed field and method.npm run check:wrt,npm run check:i18n:wrt,npm run check:rpc-clients(29/29) pass.bash projects/start-wrt/bench/bench.test.sh: 8/8. The smoke fixture now uses a private WAN address, so the previous script fails it.node scripts/changelog.mjs check-version projects/start-wrtpasses;notescompiles the new entry.Not run
mgmt install, andsmokeagainst real hardware.🤖 Generated with Claude Code