-
Notifications
You must be signed in to change notification settings - Fork 45
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
Suspicious UDP rebind leads to disconnect in udp traversals #62
Comments
If there is no data transmission in both directions of TCP and UDP for more than the configured timeout ( |
I can do that, yes (saw the setting). But there is certain level of distrust for this solution long-term, and here's why:
Which is why I have a strong sense that UDP death might be tied to the death of something that is non-UDP related (thread, associate TCP connection, some other TCP connection, etc). And if I increase timeout for 2 hours, it'll just mean that I get the same effects but after 2 hours (somewhat harder to replicate, I don't play that long, but never impossible), because the timeout doesn't actually care for UDP. Makes by UDP connection rely on a happy thread. |
RFC1928:
If that's why connection terminates, I guess what I'm seeking is not RFC compliant socks5 server. I need UDP connection to stay if there are packets to relay. I can't force all socks5 clients and proxifiers in the world to keep that tcp connection even if it's their fault. |
@Clockware Perhaps I have identified the root cause of this issue. Could you please verify it? I look forward to your feedback. Prebuilt artifacts: https://github.com/heiher/hev-socks5-server/actions/runs/12610970806 |
Hi. As a start, I'll shortly say that I was looking for a portable, fully functioning, precompiled for many platforms, SOCKS5 Server, and this one caught my attention and was the best in my testing so far.
However, I'm here to report the bug (or so I think). One of the tests I perform to test UDP proxies is playing games that utilize UDP protocols (legacy Blizzard games mostly), it's great test to see how "transparent" proxy really is.
The first main test was: VPS hosting hev-socks5, me connecting from Windows 11 through proxifier-analog to the VPS address. I got disconnected after 6 minutes in the game.
I started narrowing issue down:
But the issue remained, and very clearly detectable from Info logs of the server. Typical disconnect looks like this:
It's the full log using "info". I have others but this is the shortest one, only 6 minutes from udp binds.
I really liked the project and decided to report it in case the owner fixes it faster than I'll do SOCKS5 by myself :) There are so many socks5 projects yet not so many of them are portable and high quality.
I can only say that everything works correctly without the SOCKS5, and I also got positive results from using ShadowSocks (although it's not quite socks5), however I'm interested in SOCKS5 specifically right now because of more flexible clients.
The text was updated successfully, but these errors were encountered: