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

error: tcp over udp is unsupported #438

Closed
LittleHans8 opened this issue Mar 29, 2024 · 1 comment
Closed

error: tcp over udp is unsupported #438

LittleHans8 opened this issue Mar 29, 2024 · 1 comment

Comments

@LittleHans8
Copy link

LittleHans8 commented Mar 29, 2024

I My local server doesn't support udp protocol, but it supports tcp protocol.

So I want to convert tcp to udp on the server side and then convert tcp to udp on the client side, but it seems this is not supported, does gost support this kind of forwarding?

I checked the documentation and it seems that it is possible to forward udp traffic as http or sock5
traffic, but I want to make sure that tcp and udp ports are supported.

This is the command I am running on the server.(convert tcp to udp on the server side)

./gost -L tcp://127.0.0.1:8212 -F udp://127.0.0.1:8211

This is the command I'm running on the client.(convert tcp to udp on the client side, the tcp traffic has been successfully forwarded by other tools and is running on port 9300)

./gost -L udp://127.0.0.1:9400 -F tcp://127.0.0.1:9300

This is the error I'm getting.

{"address":":0","connector":"http","dialer":"udp","hop":"hop-0","kind":"connector","level":"error","local":"127.0.0.1:35728","msg":"tcp over udp is unsupported","network":"tcp","node":"node-0","remote":"127.0.0.1:8211","time":"2024-03-29T12:40:05.581Z"}
@LittleHans8 LittleHans8 changed the title tcp over udp is unsupported error: tcp over udp is unsupported Mar 29, 2024
@ginuerzh
Copy link
Member

ginuerzh commented Apr 3, 2024

Theoretically you should not forward TCP data over plain-UDP protocol directly, it may not work as you expect. Instead you can use the reliable UDP-based protocol such as QUIC, KCP.

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

2 participants