Code Monkey home page Code Monkey logo

luci-app-kcptun's People

Contributors

higarfield avatar kuoruan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luci-app-kcptun's Issues

OpenWRT 上无法启动 kcptun

我按照这篇教程一切都配置好了,然而按下【保存&应用】之后就被打回原形了。
2017-03-07 23 31 39
2017-03-07 23 31 48

是因为我的路由器配置不够导致 kcp 服务一起直接被 kill 掉了吗?

开机启动失败,手动保存应用一下能启动成功。

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无法连接

vmware中运行lede,下载kcptun amd64的client 直接命令行里输入指令一切,ss连一切正常,使用web界面输入参数之后运行就无法链接网络,web管理界面在运行时加入了别的参数导致服务器不一致才不能使用还是什么原因

kcptun(1.4.5-1)日志目录不存在导致开机启动失败

本人是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无法开机自动启动

版本是1.1.3-1。我看之前修复过了,但是我这里还是不能开机自启,点下保存就行了。自启有延时吗?可以自己手动加入启动项吗,rc.local啥的?

kcptun客户端显示“未运行”

刷了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

结贴,路由版本的问题,跟kcptun没有关系

LEDE下无法安装
Collected errors:

  • wfopen: //usr/lib/opkg/info/luci-app-kcptun.control: Read-only file system.
  • wfopen: //usr/lib/opkg/info/luci-app-kcptun.postinst: Read-only file system.
  • wfopen: //usr/lib/opkg/info/luci-app-kcptun.postinst-pkg: Read-only file system.
  • wfopen: //usr/lib/opkg/info/luci-app-kcptun.prerm: Read-only file system.
  • wfopen: /etc/config/kcptun: Read-only file system.
  • wfopen: /etc/init.d/kcptun: Read-only file system.
  • wfopen: /etc/uci-defaults/40_luci-kcptun: Read-only file system.
  • wfopen: /usr/bin/kcptun_monitor: Read-only file system.
  • wfopen: /usr/lib/lua/luci/controller/kcptun.lua: Read-only file system.
  • wfopen: /usr/lib/lua/luci/model/cbi/kcptun/client.lua: Read-only file system.
  • wfopen: /usr/lib/lua/luci/model/cbi/kcptun/list.lua: Read-only file system.
  • wfopen: /usr/lib/lua/luci/model/cbi/kcptun/overview.lua: Read-only file system.
  • wfopen: /usr/lib/lua/luci/model/cbi/kcptun/server.lua: Read-only file system.
  • wfopen: /usr/lib/lua/luci/model/cbi/kcptun/settings.lua: Read-only file system.
  • extract_archive: Cannot make dir /usr/lib/lua/luci/view/kcptun/: Read-only file system.
  • wfopen: /usr/lib/lua/luci/view/kcptun/overview.htm: No such file or directory.
  • pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-app-kcptun.list: Read-only file system.
  • opkg_install_pkg: Failed to extract data files for luci-app-kcptun. Package debris may remain!
  • opkg_install_cmd: Cannot install package luci-app-kcptun.

MIPS FPU Emulator

最新的Golang 支持 soft float 了么?
LEDE还需要开启MIPS FPU Emulator么?

打开服务端管理显示异常

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

R20.4.8 lede 跑不起来

openwrt

luci-app-kcptun
客户端状态 未运行

日志文件的最新 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 吗?
服务端 "tcp": true,
路由客服端 勾选 开启 tcp 就不通 关闭才能用?
只有服务端 true 算开启吗?

还有一键脚本
没有smuxver 1 2 和streambuf 选择参数?

arch侦测好像有问题

比如我的是K3,应该用arm版本,事实上也能打开对应的二进制文件。
但是无论是自己放进去/usr/bin还是用这个luci-app-kcptun的自动更新都会显示版本错误有问题。

shadowsocks无法通过与1.2.1-1_chaos-calmer_all版本连接

路由是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日志显示“目标主机积极拒绝”
以上硬件环境、参数设置是一样的。

LEDE版出现500 Internal Server Error

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。

kcptun无法自启动

功能使用一切正常,就是无法自启动,每次要去启动项点下开始,或者kcptun服务里边点下保存应用。
还有就是系统进程里边找不到kcptun,不知这是不是问题。

LEDE上无法启动

LEDE上client始终无法启动,server倒是可以启动。
路由是WNDR4300。

在openwrt 19.07 rc2上报错

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是可以使用的

lede识别不了客户端文件

WNDR3800,MIPS ,下载kcptun客户端文件后用winscp上传到/root,权限0755,识别不了客户端文件,一直显示客户端文件配置有误,大佬,这种情况怎么整?

MIPS FPU Emulator

大大我是个小白,上次我问你关于标题的问题,我倒腾了几天,装了ubuntu,编译了新固件,kcptun是能用了,可是ss-libev又用不了了,是不是只有等适配了

WNDR4300 安装luci-app-kcptun_1.2.1-1_chaos-calmer_all.ipk后出错

刷的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中填入IPv6地址后保存不能生成正确的config文件

你好,我在使用的固件里集成了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均可正常使用

Configuration List

/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>

client 端 localaddr 键值。

如果可以的话,能添加 localaddr 选项吗?或者默认 127.0.0.1 .每次跟新后还要手动改有点麻烦呢……

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.