gost
gost copied to clipboard
能否支持udp over udp?
我后端有个s5的代理,tcp流量正常,但是udp就是不可以,后面使用sing-box解决了,在sing-box里面有个udp_over_tcp的开关,将这个开个改为false就可以正常转发udp流量了。gost可以支持吗?
https://sing-box.sagernet.org/zh/configuration/shared/udp-over-tcp/#structure
你确定你要的效果是“udp over udp”吗。。。 socks5本来udp就是走的udp 如果你要让gost转发udp而不是代理链,建议转发全部udp端口到目标地址,socks5的udp端口并不是固定的
问题是我现在使用gost转发socks5,命令如下 ./gost -L socks5+tcp://test:test@:10802 -L socks5+udp://test:test@:10802 -F socks5://ccc:[email protected]:1234
这样使用,tcp可以直接访问,但是udp过不去。 -F的这个udp是外部的一个s5服务器,上面直接开启了s5代理。用的不是gost
日志报错如下
{"cmd":"udp","handler":"socks5","kind":"handler","level":"error","listener":"tcp","local":"10.0.0.5:10802","msg":"socks5: UDP relay is disabled","remote":"183.191.100.116:61024","service":"service-0","time":"2023-11-30T09:22:31.605Z"}
@iiiusky, you can set option udp=true
./gost -L socks5://test:test@:10802?udp=true -F socks5://ccc:[email protected]:1234
if you need, on forwarded socks also apply this option
@iiiusky, you can set option udp=true
./gost -L socks5://test:test@:10802?udp=true -F socks5://ccc:[email protected]:1234
if you need, on forwarded socks also apply this option
but,the socks5://ccc:[email protected]:1234 it is a service provided by the Internet, not gost.
@iiiusky, it doesn't matter. If you write in more detail, what bothers you?
试试添加relay选项 -F socks5://ccc:[email protected]:1234?relay=udp