Skip to content
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

feature: support fwmark in server side to split outbound tunnel #1466

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

chuxi
Copy link
Contributor

@chuxi chuxi commented Mar 19, 2024

The PR helps set outbound_fwmark in TCP connection options for different server configs.

With this feature, we do not need to start multiple server processes, to support different outbound tunnels. Now many websites forbid access from some VPS IPs. We may need to switch our proxy servers with special browser plugins, for example OmegaSwitchy.

Another solution is to setup split-tunnels after the server, which is already supported by V2Ray. The server will choose the right tunnel based on the domain address.

I think the fwmark is the best solution for distinguishing TCP data packages. In my case, I setup wireguard and route rules with fwmark, to route marked data packages to different servers. It works well.

Why not outbound_interface? I ever had some problem for ipv6 interface binding.

@zonyitoo zonyitoo merged commit 8b2ff61 into shadowsocks:master Mar 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants