代理不成功/ssr生成配置json小问题
xuhaoyang opened this issue · 2 comments
xuhaoyang commented
VRouter 版本
0.4.1
操作系统版本
macOS 10.12.6
VRouter 应用内, "系统"标签页的信息
系统信息
当前网关: 10.19.28.37
当前 DNS: 10.19.28.37
VRouter 信息WAN:
BR-LAN: 10.19.28.37
Bridged Network: en0: Wi-Fi (AirPort)
Mac Address: 08:00:27:44:79:6a
Openwrt Version: 15.05.1
Shadowsocks Version: 3.1.0
ShadowsocksR Version: 2.5.6
Kcptun Version: 20170904
LESS
进程状态转发 DNS 查询: 未启用
转发 UDP 流量: 未启用
Shadowsocks 进程: 运行中
ShadowsocksR 进程: 未启用
Kcptun 进程: 未启用
暂停 VRouter 后, 以下命令(可一起执行)的执行结果
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: qq.com
Address: 14.17.32.211
route to: default
destination: default
mask: default
gateway: 192.168.1.1
interface: en0
flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
2017-10-05T12:43:11+08:00 - debug: 设置代理, 完成
2017-10-05T12:43:11+08:00 - debug: tcp redirPort: 1010
2017-10-05T12:43:11+08:00 - debug: udp redirPort: 1040
2017-10-05T12:43:11+08:00 - debug: 设置防火墙, 完成
2017-10-05T12:43:11+08:00 - debug: 设置dnsmasq, 完成
2017-10-05T12:43:11+08:00 - info: apply profile: ss-us2
2017-10-05T12:43:25+08:00 - info: action off
2017-10-05T12:43:25+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:48:00+08:00 - debug: refreshInfos every 15 minutes
2017-10-05T12:48:00+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:48:00+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:53:49+08:00 - info: action off
2017-10-05T12:53:49+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:53:50+08:00 - info: action off
2017-10-05T12:53:51+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:54:04+08:00 - info: action off
2017-10-05T12:54:05+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:54:05+08:00 - info: action off
2017-10-05T12:54:05+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:54:11+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:54:11+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:54:15+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:54:15+08:00 - info: ssh connection was closed
2017-10-05T12:54:22+08:00 - info: vrouter vm not running
2017-10-05T12:54:25+08:00 - info: checking-for-update
2017-10-05T12:54:32+08:00 - debug: vm started
2017-10-05T12:54:32+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:54:32+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:54:32+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:55:43+08:00 - info: Error: net::ERR_CONNECTION_TIMED_OUT
2017-10-05T12:56:15+08:00 - warn: connecting to openwrt error: write EPIPE
2017-10-05T12:56:15+08:00 - info: ssh connection was closed
2017-10-05T12:56:15+08:00 - debug: this.conn.exec() err: Error: No response from server
2017-10-05T12:56:15+08:00 - debug: retry exec cmd via ssh
2017-10-05T12:56:15+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:56:15+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:56:15+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:56:17+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:56:17+08:00 - info: ssh connection was closed
2017-10-05T12:57:01+08:00 - info: vrouter vm not running
2017-10-05T12:57:04+08:00 - info: checking-for-update
2017-10-05T12:57:10+08:00 - info: no update available
2017-10-05T12:57:11+08:00 - debug: vm started
2017-10-05T12:57:12+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:57:12+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:57:12+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:57:35+08:00 - info: action off
2017-10-05T12:57:35+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T13:00:04+08:00 - info: action off
2017-10-05T13:00:04+08:00 - debug: about to trafficToPhysicalRouter
启用 VRouter 后, 以下命令(可一起执行)的执行结果
;; connection timed out; no servers could be reached
route to: default
destination: default
mask: default
gateway: 10.19.28.37
interface: vboxnet0
flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
2017-10-05T12:43:11+08:00 - debug: 启动关闭相应代理, 完成
2017-10-05T12:43:11+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-10-05T12:43:11+08:00 - debug: 设置代理, 完成
2017-10-05T12:43:11+08:00 - debug: tcp redirPort: 1010
2017-10-05T12:43:11+08:00 - debug: udp redirPort: 1040
2017-10-05T12:43:11+08:00 - debug: 设置防火墙, 完成
2017-10-05T12:43:11+08:00 - debug: 设置dnsmasq, 完成
2017-10-05T12:43:11+08:00 - info: apply profile: ss-us2
2017-10-05T12:43:25+08:00 - info: action off
2017-10-05T12:43:25+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:48:00+08:00 - debug: refreshInfos every 15 minutes
2017-10-05T12:48:00+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:48:00+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:53:49+08:00 - info: action off
2017-10-05T12:53:49+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:53:50+08:00 - info: action off
2017-10-05T12:53:51+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:54:04+08:00 - info: action off
2017-10-05T12:54:05+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:54:05+08:00 - info: action off
2017-10-05T12:54:05+08:00 - debug: about to trafficToVirtualRouter
2017-10-05T12:54:11+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:54:11+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:54:15+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:54:15+08:00 - info: ssh connection was closed
2017-10-05T12:54:22+08:00 - info: vrouter vm not running
2017-10-05T12:54:25+08:00 - info: checking-for-update
2017-10-05T12:54:32+08:00 - debug: vm started
2017-10-05T12:54:32+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:54:32+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:54:32+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:55:43+08:00 - info: Error: net::ERR_CONNECTION_TIMED_OUT
2017-10-05T12:56:15+08:00 - warn: connecting to openwrt error: write EPIPE
2017-10-05T12:56:15+08:00 - info: ssh connection was closed
2017-10-05T12:56:15+08:00 - debug: this.conn.exec() err: Error: No response from server
2017-10-05T12:56:15+08:00 - debug: retry exec cmd via ssh
2017-10-05T12:56:15+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:56:15+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:56:15+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:56:17+08:00 - debug: about to trafficToPhysicalRouter
2017-10-05T12:56:17+08:00 - info: ssh connection was closed
2017-10-05T12:57:01+08:00 - info: vrouter vm not running
2017-10-05T12:57:04+08:00 - info: checking-for-update
2017-10-05T12:57:10+08:00 - info: no update available
2017-10-05T12:57:11+08:00 - debug: vm started
2017-10-05T12:57:12+08:00 - debug: about to connect to openwrt via ssh
2017-10-05T12:57:12+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en14: Thunderbolt 1,en4: Thunderbolt 14,en13: Thunderbolt 1,en3: Thunderbolt 13,bridge0,p2p0,awdl0,en12: USB Ethernet(?)
2017-10-05T12:57:12+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-05T12:57:35+08:00 - info: action off
2017-10-05T12:57:35+08:00 - debug: about to trafficToVirtualRouter
问题描述
问题1 无法正常访问外网
ss、ssr、ss+kcptun都无法连接外网
进入虚拟机,kill掉进程,手动启动进程(设置全局)
访问外网,发现无访问log
问题2 ssr mode tcp_oly
overcache commented
要观察 log 的话, 手动启动进程时添加上 -vvv 参数.
从日志看, dns 没有成功
overcache commented
路由器没有获取到 ip 地址, 连不通外网. 建议检查物理路由器的 dhcp 这块