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

UDP over TCP #425

Closed
NadiaGarcia6 opened this issue Dec 12, 2022 · 11 comments
Closed

UDP over TCP #425

NadiaGarcia6 opened this issue Dec 12, 2022 · 11 comments

Comments

@NadiaGarcia6
Copy link

Hi,

WhatsApp, Google Meet calls use UDP protocol.
When we use NaivyProxy on mobile phones, it is not possible to make and receive VoIP calls.
Do you have any plans to add UDP protocol?

Regards,

@klzgrad
Copy link
Owner

klzgrad commented Dec 12, 2022

I don't.

@klzgrad klzgrad closed this as completed Dec 12, 2022
@reeceyng
Copy link

I am using sing-box(windows) and sagernet(android) to transfer udp over tcp
Server side need patched caddy

@oit63
Copy link

oit63 commented Jan 6, 2023

thanks,sing-box(linux) + haproxy + naiveproxy works perfect, both tcp and udp.

@OneSeven
Copy link

OneSeven commented Jun 4, 2023

thanks,sing-box(linux) + haproxy + naiveproxy works perfect, both tcp and udp.

hi, can you share your specific configuration? especially under windows

@OneSeven
Copy link

OneSeven commented Jun 4, 2023

I am using sing-box(windows) and sagernet(android) to transfer udp over tcp
Server side need patched caddy

hi, how does sing-box use naiveproxy under windows? It seems that the naiveproxy implementation of sing-box can only be used on the server side?

@silenaker
Copy link

silenaker commented Jun 16, 2023

I am using sing-box(windows) and sagernet(android) to transfer udp over tcp
Server side need patched caddy

hi, how does sing-box use naiveproxy under windows? It seems that the naiveproxy implementation of sing-box can only be used on the server side?

I have tested the forked package github.com/SagerNet/forwardproxy, now it cannot be built successfully and will be stucked on getting some packages, i use the original one github.com/klzgrad/forwardproxy and copy modifications to it and build successfully, and there is another important problem on the patched code, the patched code use uot package to implement udp relay, it has a mistake that actually the udp over tcp will not work, i have forked and pulled request to it, using my fork, uot will work correctly, it may be difficult for non-Go and non-network experts because I'm also new to it and it took me a while to figure it out, if you need some installation and configuration tutorials, you can go to their website and README, after all, it's not much of a concern

singbox -> naive -> caddy/forwardproxy(patched by uot) worked perfectly, i have tested on windows and linux, even use clash as the front end of a transparent proxy (clash -> singbox -> naive -> caddy/forwardproxy),it all works very well, singbox seems to be the next generation of proxy tools, but it doesn't support configuring remote rules and outbounds, so it's not as easly maintainable as clash, and clash doesn't support udp over tcp, they are all not perfect

hopefully, this solution will replace trojan, because the server ip i used with trojan was blocked just last week

@klzgrad
Copy link
Owner

klzgrad commented Jun 18, 2023

You or anyone interested in this can explain this use case because I cannot understand the value proposition of udp over tcp. This tool is for circumvention only and is not a general proxy. If you need udp for something that is not blocked by a mitm but by the endpoint due to region locks or other technical or copyright issues, then this tool is not designed for it. You can use a dedicated udp proxy along with this. Do not need to put every feature in one tool.

@OneSeven
Copy link

You or anyone interested in this can explain this use case because I cannot understand the value proposition of udp over tcp. This tool is for circumvention only and is not a general proxy. If you need udp for something that is not blocked by a mitm but by the endpoint due to region locks or other technical or copyright issues, then this tool is not designed for it. You can use a dedicated udp proxy along with this. Do not need to put every feature in one tool.

For some applications that only support UDP transmission, such as voice calls, or even games, it will be much more convenient if naive supports it. Now it can only be realized by nesting many layers.

@silenaker
Copy link

You or anyone interested in this can explain this use case because I cannot understand the value proposition of udp over tcp. This tool is for circumvention only and is not a general proxy. If you need udp for something that is not blocked by a mitm but by the endpoint due to region locks or other technical or copyright issues, then this tool is not designed for it. You can use a dedicated udp proxy along with this. Do not need to put every feature in one tool.

i totally agree with your design proposition, but for users, they just want to use it simple and don't even want to spend too much time on figuring out their configuration, while for some other few people, they are happy to toss it around and even find it more interesting, i don't really have much need for udp scenarios, I just want a stable solution for video or voice calling scenarios that may come up in the future, and even i am afraid of the deny access of public dns services such as google dns, I don't care about the latency introduced by udp over tcp, I just want to make sure that a more complete solution can avoid my future troubles, for most users, it's ok to barely enough to work, and not work, it's a big problem

@oit63
Copy link

oit63 commented Oct 19, 2023

I am using sing-box(windows) and sagernet(android) to transfer udp over tcp
Server side need patched caddy

hi, how does sing-box use naiveproxy under windows? It seems that the naiveproxy implementation of sing-box can only be used on the server side?

I have tested the forked package github.com/SagerNet/forwardproxy, now it cannot be built successfully and will be stucked on getting some packages, i use the original one github.com/klzgrad/forwardproxy and copy modifications to it and build successfully, and there is another important problem on the patched code, the patched code use uot package to implement udp relay, it has a mistake that actually the udp over tcp will not work, i have forked and pulled request to it, using my fork, uot will work correctly, it may be difficult for non-Go and non-network experts because I'm also new to it and it took me a while to figure it out, if you need some installation and configuration tutorials, you can go to their website and README, after all, it's not much of a concern

singbox -> naive -> caddy/forwardproxy(patched by uot) worked perfectly, i have tested on windows and linux, even use clash as the front end of a transparent proxy (clash -> singbox -> naive -> caddy/forwardproxy),it all works very well, singbox seems to be the next generation of proxy tools, but it doesn't support configuring remote rules and outbounds, so it's not as easly maintainable as clash, and clash doesn't support udp over tcp, they are all not perfect

hopefully, this solution will replace trojan, because the server ip i used with trojan was blocked just last week

我用的就是singbox,支持uot的

@klzgrad
Copy link
Owner

klzgrad commented Feb 16, 2024

Now duplicate of #617.

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

No branches or pull requests

6 participants