netns,wgengine: add OpenBSD support to netns via an rtable#18784
Merged
bradfitz merged 1 commit intotailscale:mainfrom Feb 25, 2026
Merged
netns,wgengine: add OpenBSD support to netns via an rtable#18784bradfitz merged 1 commit intotailscale:mainfrom
bradfitz merged 1 commit intotailscale:mainfrom
Conversation
When an exit node has been set and a new default route is added, create a new rtable in the default rdomain and add the current default route via its physical interface. When control() is requesting a connection not go through the exit-node default route, we can use the SO_RTABLE socket option to force it through the new rtable we created. Updates tailscale#17321 Signed-off-by: joshua stein <[email protected]>
1799b59 to
e3f46a9
Compare
bradfitz
approved these changes
Feb 25, 2026
Member
bradfitz
left a comment
There was a problem hiding this comment.
I'm no OpenBSD expert, but looks plausible! And looks like it doesn't affect any other platforms at least, so LGTM.
|
do you by any chance know if tailscale already supports fib / tunnelfib, also with rdomain there's also tunnelrdomain for tunnel interfaces if it could support that too that would really be nice |
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.
When an exit node has been set and a new default route is added, create a new rtable in the default rdomain and add the current default route via its physical interface. When control() is requesting a connection not go through the exit-node default route, we can use the SO_RTABLE socket option to force it through the new rtable we created.
Updates #17321