-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable fwmark
(SO_MARK
) for outgoing sockets
#202
Conversation
I have merged some large refactors we've been working on recently; apologies for the merge conflicts, and thank you for this contribution! We may want to have some more dialer config options in future, so I suggest maybe a dialer:
fwmark: ... /cc @fortuna to weigh in on that |
By the way, for your use case, have you considered using a firewall rule based on the PID? You can probably do things like:
With It's also possible to use network namespaces. |
This already adds too much complexity for even simple routing logic. I made the changes to be linux-specific but it also opens room for other similar functionality in other platforms like freebsd's SO_USER_COOKIE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Looking good. I just have a few more tweaks.
Changes applied. |
@fortuna @sbruens I just gave you maintainer access to my fork and you are able to apply any of your concerns and code styles that fit best with the codebase. I may not be able to keep up with the rapid changes and requests in the codebase and this PR due to time constraints. Sorry for that and appreciate your work to land this feature. Thank you! |
Thanks for all your hard work on this @sabify. I finally found some time to pick this up and merge in the changes. @fortuna PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this! We should probably release it soon after
@sbruens Thanks for taking your time to land this feature. How is it possible to take control of this feature from outline server (CLI and/or GUI)? https://github.com/Jigsaw-Code/outline-server |
You can't right now. There is some work to be done to get this into
The first 2 seem feasible, but the latter requires more UX research and we may not want to expose such an advanced feature in the Manager anyway. |
|
feat: enable `fwmark` (`SO_MARK`) for outgoing sockets (Jigsaw-Code#202)
No description provided.