Repository navigation
Conversation
…routes Allow each profile to advertise subnet routes and exit-node default routes into its tailnet. Desired routes persist in profile state and converge through the supervisor reconcile loop onto the engine prefs, which control then lists for approval like a normal node. The daemon owns the forwarding plane on Linux: scoped FORWARD and MASQUERADE rules per advertised prefix on the shared host TUN plus IP forwarding sysctl checks, all torn down on clear, remove, or disable. Advertising refuses while tailscaled runs and outside Linux TUN mode. The CLI gains tailmix advertise list/set/clear. Change-Id: Ieeea036af9a23a2086ef40f1717cd781062bb922
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.
Follows up on #15, which describes the proposal and prior-art check. This implements it; see the issue for design and interface discussion.
What it does: desired routes persist in profile state and converge through the supervisor reconcile loop onto engine prefs, which control lists for approval like a normal node. Daemon-owned scoped FORWARD/MASQUERADE forwarding on Linux with full teardown; refuses while tailscaled runs and outside Linux TUN mode. CLI: tailmix advertise list/set/clear --profile. Effective IPs stay unadvertised.
Tests included (engine round-trip, reconcile converge/clear, hosttun rules, CLI, controlapi, state). Gates: go vet, staticcheck, tidy, licenses-check, install-test clean; go test passes except pre-existing environmental TestHeldTCPContinuation, which fails on clean main too.