wangyu- / udp2raw-multiplatform

multi-platform(cross-platform) version of udp2raw-tunnel, which supports Windows/Mac/BSD natively. Client-Only at the moment.
MIT License
645 stars 146 forks source link

kcptun & udpspeeder & udp2raw + SSR请教 #16

Open p0nycar opened 6 years ago

p0nycar commented 6 years ago

这几天花了几天时间在看你的这些方案,开始搭建了kcptun加udpspeeder用SSTAP测试TCP和UDP都是可以连通的,现在我想加上udp2raw的话服务端和客户端的关口好像是最让我费解的问题

服务端(Centos7)设置如下: ./server_linux_amd64 -l ":3720" -t "127.0.0.1:1080" -mode fast2 ./speederv2_amd64 -s -l0.0.0.0:3721 -r127.0.0.1:1080 -f2:4 -k "test"

客户端(Win7)设置如下: speederv2 -c -l0.0.0.0:1234 -r服务端IP:3721 -f2:4 -k "test client_windows_amd64 -l "127.0.0.1:1234" -r "服务端IP:3720 -mode fast2

如果现在在串连udp2raw的话,我是不是应该吧服务端和客户端都修改kcptun和speeder都指向udp2raw呢? 因为这种方法我试过,但好像行不通,修改后的方案如下:

服务端设置: ./server_linux_amd64 -l ":3720" -t "127.0.0.1:4096" -mode fast2 ./speederv2_amd64 -s -l0.0.0.0:3721 -r127.0.0.1:4096 -f2:4 -k "test" ./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:1080 -a -k “test”-- raw-mode faketcp

客户端设置: speederv2 -c -l0.0.0.0:1236 -r127.0.0.1:1234 -f2:4 -k "test client_windows_amd64 -l "127.0.0.1:1235" -r "127.0.0.1:1234 -mode fast2 udp2raw -c -r服务端IP:4096 -l127.0.0.1:1234 --raw-mode easy-faketcp -k"test"

SSR设置: 127.0.0.1:1234

当客户端udp2raw启动时会出现: INFOsent handshake1 INFOsent handshake1 INFOsent handshake1 INFOsent handshake1

服务端udp2raw显示: [INFO][本地IP:13482]received syn,sent syn ack back [INFO][本地IP:12428]received syn,sent syn ack back [INFO][本地IP:48877]received syn,sent syn ack back [INFO][本地IP:50357]received syn,sent syn ack back [WARN][本地IP,13482]rst==1,cnt=1 [WARN][本地IP,12428]rst==1,cnt=1 [WARN][本地IP,48877]rst==1,cnt=1 [WARN][本地IP,50357]rst==1,cnt=1

请问是哪里设置的有问题吗,还是不应该把kcptun和udpspeeder指向udp2raw呢?

For English speaking user: https://github.com/wangyu-/UDPspeeder/wiki/Issue-Guide

中文用户请看: https://github.com/wangyu-/UDPspeeder/wiki/发Issue前请看 (否则Issue可能被忽略,或被直接关掉)