|
KCPTUN教程
https://github.com/xtaci/kcptun
客户端
client_windows_amd64.exe -l 127.0.0.2:4000 -r 1.2.3.4:10000
client_windows_amd64.exe -l 127.0.0.2:6112 -r 1.2.3.4:10001
client_windows_amd64.exe -l 127.0.0.2:6113 -r 1.2.3.4:10002
服务端
server_windows_amd64.exe -l 1.2.3.4:10000 -t 127.0.0.1:4000
server_windows_amd64.exe -l 1.2.3.4:10001 -t 127.0.0.1:6112
server_windows_amd64.exe -l 1.2.3.4:10002 -t 127.0.0.1:6113
这样就可以了
如果需要自定义一些参数的话可以加参数
client_windows_amd64.exe --help
可以查看具体的命令帮助
加密方式可以用none
--crypt none
模式默认是fast 我感觉可以了,没必要fast3
-mode fast3
校验 默认是10bit增加3bit的校验,即流量增加30% 可以自己调节,不过我测试了,感觉效果不大,用默认的就行
-ds 1 -ps 1
不压缩(我感觉不用加这个参数)
-nocomp
其他参数(貌似没区别,我没加)
-sockbuf 16777217 -dscp 46
|
|