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 转发的实现问题。 #531

Open
leeaash opened this issue Jul 9, 2024 · 4 comments
Open

UDP over TCP 转发的实现问题。 #531

leeaash opened this issue Jul 9, 2024 · 4 comments

Comments

@leeaash
Copy link

leeaash commented Jul 9, 2024

我尝试了一种远端服务器socks5+tls,本地端口转发的代理实现,结构如下:
socks-client — gost-client — traefik — gost-server-internet
其中traefik和server都在vps的容器上实现,tls在traefik passthrough给gost容器
两端配置如下:
Gost-server:
-L=socks5+tls://:58964?bind=true&notls=true&udp=true&keepAlive=true&ttl=30s
Gost-clinet:
-L=tcp://:10368 -F=forward+tls://example.com:443?interface=pppoe-wan
Clash配置socks代理为本机10368端口
目前问题现配置只能跑通tcp,无法跑通udp,但感觉配上应该能实现啊。

@ginuerzh
Copy link
Member

ginuerzh commented Jul 9, 2024

SOCKS5的UDP-over-TCP是GOST特有功能,第三方客户端大概率是不支持的。

@leeaash
Copy link
Author

leeaash commented Jul 9, 2024

但怎么解释我再套层socks5其实是可以的。
Gost-server:
-L=socks5+tls://:58964?bind=true&notls=true&udp=true&keepAlive=true&ttl=30s
Gost-clinet:
-L=socks5://:10368?udp=true&bind=true&keepAlive=true&ttl=30s -F=socks5+tls://example.com:443?interface=pppoe-wan

我的另一种实现
Gost-server:
-L=relay+tls://:58964?bind=true&nodelay=true
Gost-clinet:
-L=socks5://:10368?udp=true&bind=true&keepAlive=true&ttl=30s -F=relay+tls://example.com:443?interface=pppoe-wan&nodelay=true

感觉把socks放前端就好了,不明其久

@ginuerzh
Copy link
Member

GOST SOCKS5客户端默认使用UDP-over-TCP传输UDP数据。

@leeaash
Copy link
Author

leeaash commented Jul 11, 2024

是socks服务一定要在client端才应用udp-over-tcp的意思?

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