-
Notifications
You must be signed in to change notification settings - Fork 358
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
SO_MARK support #33
Comments
Hello, Sorry but I don't understand your question :'( |
v2ray is software to bypass China firewall. I want use your wstunnel, but need SO_MARK option. In C or Golang I can add SO_MARK to socket via setsockopt and routing it via |
It is not available in Haskell as it is dependent of the platform, SO_MARK exist only in Linux. Out of curiosity how does v2ray works ? Why do you need |
I combined VPN+v2ray on Android phone. Android use fwmark for internal routing and if I set v2ray fwmark to 0x20000 it can bypass Android VPN Service and connect directly to server. My VPN client connect via v2ray to destination server and all work. |
Ok Thanks for the explanation :) |
I have a proto working, can you tell for which arch do you need the binary ? {x86, armv7, aarch64} |
aarch64 :) |
ack, I will do a release tonight or tomorrow as I have to spawn somewhere an aarch64 |
here we are, would you mind testing this release ? |
@erebe sorry, i check commits and cant find where i need to set custom mark value, maybe commandline args or something else |
it is on by default, so nothing to do normally if it is supported by the kernel. Your packet should be marked without anything extra |
it need to be configured with some custom value, and via |
|
The mark should be 1 for now (that's the value I passed to setSocketOption), before making it confirgurable I would like to see if it is even working on arm ;x P.s: Sorry for the lack of explanation ;c |
Tested now, think all work good. I set |
Going to add an option to configure the value. |
Here we are, https://github.com/erebe/wstunnel/releases/download/v3.0/wstunnel-aarch64 If it is working for you, I would be glad if you have time to write a short page about your setup, so I can link it in the readme |
Ping @B1ohazard regarding à little explanation of your interesting setup. Just à paragraphe or 2 would be enough, I am sure it can be appreciated by à lot of other people :) |
more information here https://stackoverflow.com/a/38764232 |
Hi, can u add option to mark wstunnel packets as realized in v2ray?
The text was updated successfully, but these errors were encountered: