-
-
Notifications
You must be signed in to change notification settings - Fork 573
Feat: add option to disable UDP functionality #488
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
base: main
Are you sure you want to change the base?
Feat: add option to disable UDP functionality #488
Conversation
|
Would it be possible to disable UDP at the stack level instead of at the tunnel/transportation level? e.g., Lines 48 to 52 in 61d8269
or, Lines 14 to 38 in 61d8269
IMO if we only disable UDP at the tunnel level, the gvisor stack would still have to handle the UDP "connection", which would lead to unnecessary overhead. |
This looks reasonable, the main point is I want also log the udp request while blocking it, but if that causes overhead, we may simply remove the udp in TransportProtocols. I will re-check this in detail when I'm free. |
|
Is there a way to disable UDP? Somehow I can't connect to a proxy and support from the provider says I should try without UDP. |
|
UDP should have nothing to do with connecting to a proxy (at least the TCP should work) |
|
Thanks for the quick response @xjasonlyu! I tried http-protocoll as well. The proxy provider doesn't need any authentication because my public IP is whitelisted, but I get this message from the logs: So I tried to add credentials but it still didn't work: I want to add that I tried another proxy provider which supported UDP and it worked without any problem. Additionally, I installed Super Proxy on my S21 and connected successfully with SOCKS5 to the proxy. I don't know why it doesn't work with tun2socks. |
|
@xjasonlyu I can demonstrate it for you with the Proxy provider I use. Unfortunatelly, I couldn't manage to get it working. |
8b6032c to
a8e572b
Compare
|
@SuzukiHonoka I see this feature was merged. How is the command to start a connection without UDP? |
It was not merged yet, if you want to try this, check my fork version of tun2socks, you'll need to compile the binary yourself. |
Some proxy server may not support udp, the udp processing logic may slow down performance, we can explicitly disable it before letting program to detect if the proxy server supports it.