kuoruan / luci-app-kcptun

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

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

Closed 3xpert closed 7 years ago

3xpert commented 7 years ago

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

kuoruan commented 7 years ago

windows 上 telnet 路由器ip kcptun 端口 通不通?

3xpert commented 7 years ago

上述的1,在telnet后没返回任何结果。2,返回连接失败 路由器刷完openwrt不就不能telnet了吗?

kuoruan commented 7 years ago

把路由器的防火墙关了,或者手动放行 kcptun 端口

3xpert commented 7 years ago

好的,谢谢!

3xpert commented 7 years ago

关了防火墙,2还是不行

kuoruan commented 7 years ago

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

3xpert commented 7 years ago

有输出kcptun启动时读取参数那部份,运行过程的日志好像都没见到过。1、2都一样。

kuoruan commented 7 years ago

路由器上用 netstat 能看到 kcptun 端口吗?

3xpert commented 7 years ago

这要晚上回家再测试。

3xpert commented 7 years ago

netstat后1有看到kcptun的端口,2没有

kuoruan commented 7 years ago

那就是 kcptun 没启动起来, ps -w 看看有没有 kcptun 进程

3xpert commented 7 years ago

当然有

kuoruan commented 7 years ago

有进程没端口?这怎么可能

3xpert commented 7 years ago

PID PPID USER STAT VSZ %VSZ %CPU COMMAND 11222 1 root S 3400 3% 9% ss-local -c /var/etc/shadowsocks.json 11288 1 root R 1660 1% 1% /usr/sbin/hostapd -P /var/run/wifi-ph 12405 11446 root R 1364 1% 0% top 3 2 root SW 0 0% 0% [ksoftirqd/0] 11655 1 root R 773m 629% 0% /usr/bin/kcptun/client -c /var/etc/kc 11445 956 root S 1244 1% 0% /usr/sbin/dropbear -F -P /var/run/dro 11000 1 root S 3588 3% 0

3xpert commented 7 years ago

root@OpenWrt:~# ps -w | grep kcptun 11655 root 773m S /usr/bin/kcptun/client -c /var/etc/kcptun/client.json

kuoruan commented 7 years ago

看看 /var/etc/kcptun/client.json 这个文件里边配置的端口是哪个,然后 netstat -npl | grep 端口

3xpert commented 7 years ago

root@OpenWrt:~# netstat -npl | grep 8388 tcp 0 0 127.0.0.1:8388 0.0.0.0:* LISTEN 11655/client

kuoruan commented 7 years ago

这不是有端口吗,将 client 的本地监听地址改为 0.0.0.0 试试

3xpert commented 7 years ago

但是netstat列印出来的结果的确没有这个端口呢

3xpert commented 7 years ago

本地地址改成0.0.0.0,可以了。这是什么原因呢?

kuoruan commented 7 years ago

监听 127.0.0.1 会只允许本机连接