kuoruan / luci-app-kcptun

LuCI support for kcptun
Apache License 2.0
316 stars 84 forks source link

LEDE上无法启动 #22

Closed tporwx closed 6 years ago

tporwx commented 7 years ago

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

kuoruan commented 7 years ago

开启日志,看看日志有没有输出

tporwx commented 7 years ago

根本没有启动过,也就没有日志生成啊。

kuoruan commented 7 years ago

手动启动试试 /etc/init.d/kcptun start

tporwx commented 7 years ago

中午回去试试

tporwx commented 7 years ago

还是不行,启动不了。

tporwx commented 7 years ago

login as: root root@192.168.1.1's password:

BusyBox v1.25.1 () built-in shell (ash)

 _________
/        /\      _    ___ ___  ___

/ LE / \ | | | | | | / DE / \ | || || |) | | /__/ LE \ |__|__|/|_| lede-project.org \ \ DE / \ LE \ / ----------------------------------------------------------- \ DE \ / Reboot (17.01.0, r3205-59508e3) ______\/ -----------------------------------------------------------

root@LEDE:~# /etc/init.d/kcptun start Starting kcptun... root@LEDE:~# /etc/init.d/kcptun start Starting kcptun... root@LEDE:~# /etc/init.d/kcptun start Starting kcptun... root@LEDE:~#

kuoruan commented 7 years ago

/var/etc/kcptun 里边有配置文件生成吗

tporwx commented 7 years ago

有的。

{ "localaddr": "0.0.0.0:572", "remoteaddr": "xxxx:xxx", "key": "****", "crypt": "salsa20", "mode": "fast2", "conn": 1, "autoexpire": 60, "mtu": 512, "sndwnd": 256, "rcvwnd": 512, "datashard": 10, "parityshard": 3, "dscp": 46, "nocomp": true, "sockbuf": 4398046511104, "keepalive": 10, "log": "/var/log/kcptun/kcptun-client.log" }

tporwx commented 7 years ago

路由器上的clinet是0221版本,VPS上的server是最新的0329版本的,不知是否有影响?

kuoruan commented 7 years ago

最好两端一致,不然可能会有问题

tporwx commented 7 years ago

直接打命令就能启动了,看来是luci对LEDE还是有兼容问题

tporwx commented 7 years ago

我自己用LEDE的SDK编译了一个也不行

sotux commented 7 years ago

我用 LEDE 源码编译,也启动不了,luci 版本 1.3.3-1,用 /etc/init.d/kcptun start 可以启动。

kuoruan commented 7 years ago

@sotux 有写机器上就是会出现这个问题,现在还在处理中。

kuoruan commented 7 years ago

@sotux 找到问题的原因了。你进 系统 -> 启动项 里边把 kcptun 禁用了。然后回去 luci 就行了

sotux commented 7 years ago

@kuoruan 安装好后,启动项里的 kcptun 是禁用状态,启用后就好了