kuoruan / luci-app-kcptun Goto Github PK
View Code? Open in Web Editor NEWLuCI support for kcptun
License: Apache License 2.0
LuCI support for kcptun
License: Apache License 2.0
我按照这篇教程一切都配置好了,然而按下【保存&应用】之后就被打回原形了。
是因为我的路由器配置不够导致 kcp 服务一起直接被 kill 掉了吗?
LEDE是安装dd版的ipk吗?还是要自己编译?
一个不错的kcptun分支,伪装TCP连接,不容易被QoS,希望扩软兄弟能出一版针对这个的luci
https://github.com/ccsexyz/kcpraw
这个文件哪里有?
2016/12/05 05:33:03 main.go:259: version: SELFBUILD
2016/12/05 05:33:09 main.go:295: listening on: [::]:1082
2016/12/05 05:33:09 main.go:296: encryption: salsa20
2016/12/05 05:33:09 main.go:297: nodelay parameters: 0 30 2 1
2016/12/05 05:33:09 main.go:298: remote address: 1.1.1.1:29900
2016/12/05 05:33:09 main.go:299: sndwnd: 48 rcvwnd: 160
2016/12/05 05:33:09 main.go:300: compression: false
2016/12/05 05:33:09 main.go:301: mtu: 1350
2016/12/05 05:33:09 main.go:302: datashard: 10 parityshard: 3
2016/12/05 05:33:09 main.go:303: acknodelay: false
2016/12/05 05:33:09 main.go:304: dscp: 0
2016/12/05 05:33:09 main.go:305: sockbuf: 4194304
2016/12/05 05:33:09 main.go:306: keepalive: 10
2016/12/05 05:33:09 main.go:307: conn: 1
2016/12/05 05:33:09 main.go:308: autoexpire: 0
2016/12/05 05:33:09 main.go:78: dial udp 1.1.1.1:29900: ENETUNREACH
net.DialUDP
github.com/xtaci/kcp-go.DialWithOptions
/opt/mipsgo/src/github.com/xtaci/kcp-go/sess.go:903
main.func路003
/home/openwrt/kcptun/client/main.go:314
main.func路005
/home/openwrt/kcptun/client/main.go:366
runtime.call16
/home/openwrt/go-mips32/src/runtime/asm_mips32x.s:288
reflect.Value.call
/opt/mipsgo/src/reflect/value.go:419
reflect.Value.Call
/opt/mipsgo/src/reflect/value.go:296
github.com/urfave/cli.HandleAction
/opt/mipsgo/src/github.com/urfave/cli/app.go:487
github.com/urfave/cli.(*App).Run
/opt/mipsgo/src/github.com/urfave/cli/app.go:245
main.main
/home/openwrt/kcptun/client/main.go:406
runtime.main
/home/openwrt/go-mips32/src/runtime/proc.go:63
runtime.goexit
/home/openwrt/go-mips32/src/runtime/asm_mips32x.s:932
createConn()
main.func路003
/home/openwrt/kcptun/client/main.go:316
main.func路005
/home/openwrt/kcptun/client/main.go:366
runtime.call16
/home/openwrt/go-mips32/src/runtime/asm_mips32x.s:288
reflect.Value.call
/opt/mipsgo/src/reflect/value.go:419
reflect.Value.Call
/opt/mipsgo/src/reflect/value.go:296
github.com/urfave/cli.HandleAction
/opt/mipsgo/src/github.com/urfave/cli/app.go:487
github.com/urfave/cli.(*App).Run
/opt/mipsgo/src/github.com/urfave/cli/app.go:245
main.main
/home/openwrt/kcptun/client/main.go:406
runtime.main
/home/openwrt/go-mips32/src/runtime/proc.go:63
runtime.goexit
/home/openwrt/go-mips32/src/runtime/asm_mips32x.s:932
日志如下,似乎运行出错了?是不是还没拨上号连上网就开始试图通信导致出错?(我把真实ip替换成1.1.1.1隐藏了)
补充一下,我路由设置了多拨。拨号和普通路由不太一样。
比如同时运行三四个kcptun客户端
luci-app-kcptun-1.5.1版本在斐讯k3上不能让kcptun运行,对比了一下1.5.0版本,int代码不一样!
vmware中运行lede,下载kcptun amd64的client 直接命令行里输入指令一切,ss连一切正常,使用web界面输入参数之后运行就无法链接网络,web管理界面在运行时加入了别的参数导致服务器不一致才不能使用还是什么原因
本人是openwrt新手
环境:VirtualBox运行的openwrt+LEDE
软件版本:
1.4.5-1 luci-app-kcptun
开机启动失败的System Log:
Sat Feb 9 18:34:51 2019 user.notice : kcptun.general.server=default validates as uciname with true
Sat Feb 9 18:34:51 2019 user.notice : kcptun.general.client_file=/usr/bin/kcptun-client validates as string with true
Sat Feb 9 18:34:51 2019 user.notice : kcptun.general.daemon_user=root validates as string with true
Sat Feb 9 18:34:51 2019 user.notice : kcptun.general.enable_logging=1 validates as bool with true
Sat Feb 9 18:34:51 2019 user.notice : kcptun.general.log_folder=/var/log/kcptun validates as directory with false
目前我是这样解决:
手工创建目录(mkdir -p /var/log/kcptun),再执行/etc/init.d/kcptun start成功
或者手工在LEDE管理页面上,点击一下Save & Apply,也可以启动成功,进程变为Running
我的问题是:
kcptun启动脚本如何才能编辑呢?
或者怎样才能使/var/log/kcptun目录一直存在
我的openwrt每次重启之后,上次mkdir创建的目录都消失了,导致自动启动失败。。
版本是1.1.3-1。我看之前修复过了,但是我这里还是不能开机自启,点下保存就行了。自启有延时吗?可以自己手动加入启动项吗,rc.local啥的?
刷了R7800的LEAN版本,内置1.3.3-2版本,在kcptun中服务器列表中添加了服务器,然后通过winscp将kcptun-linux-arm-20170525.tar中的client_linux_arm7改名为client并上传/usr/bin/kcptun(新建文件夹)目录中后,Kcptun - 常规设置不报错了,但是在客户端状态中显示“ 未运行”,请问该如何才能开启。我的操作是不是有错误。我将降级成1.3.3-1版本,通过opkg install安装,显示已安装1.3.3-2版本,不能降级,请问跟版本有关系没。
在设置中已”启用日记记录“,但是在“概况”一栏中均不显示“客户端日志”和“事件日志”,提醒“日记文件不存在”,所以我也不知道哪里出错l
另外,我有编译ar71xx和ramips两种路由的binary文件。
root用户,客户端模式,1.2.1版。
LEDE下无法安装
Collected errors:
client设置中的Server IP,用域名也是可以的吧,我用json配置使用域名正常使用。
经测试,你修改后的编译进斐讯k3固件后,原始编译进去的不能运行kcptun,仍然需卸载后重新安装可以正常运行。。。请大佬修复此问题。。。。
最新的Golang 支持 soft float 了么?
LEDE还需要开启MIPS FPU Emulator么?
在ledeV17.01源码编译,make menuconfig的时候在LuCI里找不到luci-app-kcptun选项。
更新到18.06分支就无法运行了
500 内部服务器错误
对不起,服务器遇到未知错误。
/usr/lib/lua/luci/dispatcher.lua:407: Failed to execute arcombine dispatcher target for entry '/admin/services/kcptun/servers'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:55: Failed to execute template 'cbi/map'.
A runtime error occured: /usr/lib/lua/luci/template.lua:55: Failed to execute template 'cbi/tblsection'.
A runtime error occured: /usr/lib/lua/luci/template.lua:55: Failed to execute template 'cbi/dvalue'.
A runtime error occured: /usr/lib/lua/luci/model/uci.lua:143: attempt to call method 'get_all' (a nil value)
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:407: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:99: in function
日志文件的最新 50 行:
无日志数据。
系统日志的最新 50 行:
Thu Apr 16 17:21:44 2020 daemon.info procd: Instance kcptun::instance1 s in a crash loop 7 crashes, 0 seconds since last crash
Thu Apr 16 17:21:43 2020 daemon.info kcptun: Starting kcptun with 248786000 virt mem
Thu Apr 16 17:07:04 2020 daemon.info procd: Instance kcptun::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Thu Apr 16 16:27:06 2020 daemon.info kcptun: Starting kcptun with 248786000 virt mem
在控制台直接命令调用usr/bin目录下的kcptun-client执行文件是可以跑的
不是要两边开启 TCP 吗?
服务端 "tcp": true,
路由客服端 勾选 开启 tcp 就不通 关闭才能用?
只有服务端 true 算开启吗?
还有一键脚本
没有smuxver 1 2 和streambuf 选择参数?
哪个库是最新的版本啊
比如我的是K3,应该用arm版本,事实上也能打开对应的二进制文件。
但是无论是自己放进去/usr/bin
还是用这个luci-app-kcptun
的自动更新都会显示版本错误有问题。
路由器上的ss是不是也要改成127.0.0.1和kcptun的当前端口才能启用呢?
路由是NetGear R6100,固件是chaos-calmer。
之前可通过:
1.Shadowsocks-windows + luci-app-kcptun_1.1.3-1_chaos-calmer_all + @bettermanbao's kcptun-openwrt-ar71xx-20160912进行上网加速。
现在的:
2.Shadowoscks-windows + luci-app-kcptun_1.2.1-1_chaos-calmer_all + @bettermanbao's kcptun-openwrt-ar71xx-20161118 不能上网,Shadowsocks-windows日志显示“目标主机积极拒绝”
以上硬件环境、参数设置是一样的。
500 Internal Server Error
Sorry, the server encountered an unexpected error.
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute function dispatcher target for entry '/admin/services/kcptun'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute cbi dispatcher target for entry '/admin/services/kcptun/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/simpleform'.
A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'kcptun/overview'.
A runtime error occured: [string "/usr/lib/lua/luci/view/kcptun/overview.htm"]:32: attempt to index field 'luci-app-kcptun' (a nil value)
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function
重启/etc/init.d/kcptun后,luci恢复正常
而且有时候会变成不工作状态,需要手动重启服务
2016/09/29 21:00:07 nodelay parameters: 0 40 2 0
手动模式,除了40对应的interval项以及2对应的resend项填入数值会产生变动,其余nodelay以及nc项无论怎么勾选,启动后日志均输出0,也不知是否正确启动,如果直接手动改动/etc/config/kcptun配置文件,启动后日志则可以正确显示如1 40 2 1,不知是否是bug。
wget安装了,libc_json也有。但是luci界面点击检查更新无效,应该是没执行。
是还缺少什么依赖?
功能使用一切正常,就是无法自启动,每次要去启动项点下开始,或者kcptun服务里边点下保存应用。
还有就是系统进程里边找不到kcptun,不知这是不是问题。
LEDE上client始终无法启动,server倒是可以启动。
路由是WNDR4300。
500 内部服务器错误
对不起,服务器遇到未知错误。
Failed to execute cbi dispatcher target for entry '/admin/services/kcptun/settings'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'kcptun/status'.
A runtime error occurred: /usr/lib/lua/luci/model/kcptun.lua:49: module 'luci.model.ipkg' not found:
no field package.preload['luci.model.ipkg']
no file './luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg/init.lua'
no file '/usr/lib/lua/luci/model/ipkg.lua'
no file '/usr/lib/lua/luci/model/ipkg/init.lua'
no file './luci/model/ipkg.so'
no file '/usr/lib/lua/luci/model/ipkg.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/model/kcptun.lua:49: in function 'get_luci_version'
[string "/usr/lib/lua/luci/view/kcptun/status.htm"]:7: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function
(tail call): ?
/usr/lib/lua/luci/cbi.lua:282: in function 'render'
/usr/lib/lua/luci/cbi.lua:266: in function 'render_children'
[string "/usr/lib/lua/luci/view/cbi/map.htm"]:6: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function
(tail call): ?
/usr/lib/lua/luci/cbi.lua:257: in function 'render'
/usr/lib/lua/luci/cbi.lua:440: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:1025: in function
luci-compat已经安装了luci-app-v2ray是可以使用的
WNDR3800,MIPS ,下载kcptun客户端文件后用winscp上传到/root,权限0755,识别不了客户端文件,一直显示客户端文件配置有误,大佬,这种情况怎么整?
luci-app启动kcp不知怎么才能设置tcp 为true
Misstar Tools
https://www.misstar.com
大大我是个小白,上次我问你关于标题的问题,我倒腾了几天,装了ubuntu,编译了新固件,kcptun是能用了,可是ss-libev又用不了了,是不是只有等适配了
刷的openwrt 15.05.01,不管是chaos-calmer,还是designated-driver版,均出错
错误信息:
/usr/lib/lua/luci/controller/kcptun.lua:52: attempt to call global 'post' (a nil value)
stack traceback:
/usr/lib/lua/luci/controller/kcptun.lua:52: in function 'v'
/usr/lib/lua/luci/dispatcher.lua:536: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:201: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>
你好,我在使用的固件里集成了luci-app-kcptun的1.1.3版本
网络环境为教育网原生IPv6
在LuCI的服务器地址中填入IPv6地址后保存,kcptun不能启动,日志报too many colons in address ..这种错误
换IPv4地址其他配置相同就正常使用
然后发现是因为自动生成的/var/etc/kcptun/client.json这个文件中的IPv6地址没有自动加[],将init.d中的write_client_config()函数相关部分改动了一下,渣Shell水平求不喷,应该有写得更好的方法
server_ipv6_flag=
echo $server |awk '/:/'if [ "$server_ipv6_flag" = "" ]; then printf ',\n "remoteaddr": "%s:%s"' "$server" "$server_port" >>$CLIENT_CONFIG else printf ',\n "remoteaddr": "%s:%s"' "[$server]" "$server_port" >>$CLIENT_CONFIG fi
改后填入IPv4和IPv6均可正常使用
kcptun新加了smux参数,请求更新luci
smuxver参数 在+
91f6516
中已添加,实际使用kcp变得不稳定,是否与未设置"--streambuf" 参数有关系
/usr/lib/lua/luci/dispatcher.lua:460: Failed to execute cbi dispatcher target for entry '/admin/services/kcptun/list'.
The called action terminated with an exception:
/usr/lib/lua/luci/cbi.lua:53: Model 'kcptun/list' not found!
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:460: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:141: in function </usr/lib/lua/luci/dispatcher.lua:140>
大佬这个可以再树莓派上用吗
有luci,苦于没有kcptun啊,自己编译kcptun到net/ipv4这步出错,跟wiki里的不一样,解决不了。
如果可以的话,能添加 localaddr 选项吗?或者默认 127.0.0.1 .每次跟新后还要手动改有点麻烦呢……
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.