Repository navigation
IPv6 policy routes follow the source prefix; first match wins; base_rev re-check; Module.TokenScope - #94
Merged
Conversation
…y re-checks base_rev; Module.TokenScope - #63: with a delegated prefix from each WAN, an IPv6 policy rule only sends a connection to its WAN when the source is inside that WAN's prefix (@pd6_<index>, filled from what the dhcpcd hook records); otherwise the connection keeps the default route instead of being dropped by the ISP's source filter. - #64: the first matching policy route decides (config order); net.routes / the 策略路由 page show how many addresses each domain policy learned. - #68: the apply job compares the router.yaml rev the candidate was built from right before installing; a change in between refuses the apply (nothing written, no marker left). - #69: modules declare their API actions' token scopes (Module.TokenScope); tokenActions keeps the core. - Also: the proxy CI stress loop and the CI runtime-dir isolation are in main already. Closes #63 Closes #64 Closes #68 Closes #69 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
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.
What
ip6 saddr @pd6_<via>./run/mini-router/wan/<name>.pd6and removes them on expiry or release. Every firewall load and dhcpcd event refills the sets; only parsed IPv6 prefixes reach nft.net.routesreturnslearned(addresses per domain policy and family), and the 策略路由 page shows it.Module.TokenScopedeclares the token scopes of a module's API actions, andregister()merges them intotokenActions, which keeps only the core actions. Conflicting declarations panic at start; undeclared actions stay refused.Verification
tools/ci.d/net.shstep 3, IPv6 with two uplinks where each "ISP" drops sources outside its own prefix:sh tools/ci.sh: ALL CHECKS PASSED.Closes #63
Closes #64
Closes #68
Closes #69
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr