Giter Site home page Giter Site logo

overcache / vrouter Goto Github PK

View Code? Open in Web Editor NEW
1.3K 49.0 162.0 17.97 MB

一个基于 VirtualBox 和 openwrt 构建的项目, 旨在实现 macOS / Windows 平台的透明代理.

License: GNU General Public License v3.0

HTML 0.31% JavaScript 71.50% Shell 0.80% Vue 27.39%
openwrt transparent-proxy virtualbox

vrouter's Introduction

update

已停止开发.

推荐关注其他透明代理的开源项目, 如 mellow


img

JavaScript Style Guide JavaScript Style Guide

VRouter

一个基于 Virtualbox 和 openwrt 构建的项目, 旨在实现 macOS / Windows 平台上的透明代理.

VRouter 在后台运行一个 openwrt 的虚拟机, 通过更改系统的默认路由, 将所有系统数据包转发到虚拟机上. 依托 openwrt 的 iptables 进行数据包的处理.

了解构造过程

如何使用

前提条件:

  1. 为了能在服务端进行 DNS 查询, 请确保 ss-server 开启了 UDP 转发.
  2. 为了能确保虚拟机可以联网, 确保上游路由器开启了 DHCP.
  3. 为了避免频繁在弹窗里输入密码,请设置免密码切换网关

自定义黑白名单

  • 每个域名/IP/IP段一行, 注释行以#开头
  • 域名
    • 域名可以是裸域名如 example.com, 将会匹配该域下的所有子域名如 a.example.com, b.example.com 等等
    • 也可以填写子域名如 a.example.com, 如此不会匹配到 b.example.com
  • IP
    • 可以是独立的IP, 如 123.123.123.123
    • 也可以是IP段, 如 123.123.123.0/8 将会匹配 123.123.123.0~123.123.123.255 之间的IP地址. 123.123.0.0/16将匹配 123.123.0.0 ~ 123.123.255.255之间的IP地址

项目的意义

为什么需要透明代理?

使用 Shadowsocks 桌面客户端可以很方便地进行非透明代理, 但是仍然有以下的不足

  • 每个需要代理的软件都要逐一设置
  • 命令行软件虽然可以用 export http_proxy 的方式使用代理, 但有时并不管用. 需要进一步折腾 Proxifier 或者 Privoxy
  • 有些软件并不支持设置代理, 如 macOS 系统自带的 Mail APP
  • 鲜有支持 UDP 的软件

为什么不在路由器上设置透明代理?

强烈推荐在路由器设置透明代理. 但是, 在路由器透明代理虽然解决了客户端的不足, 仍然有其局限性.

  • 如果路由器性能不足, 使用 kcptun 等软件时, 负载会非常高. 而且速度比在桌面端运行 kcptun 慢很多
  • 路由器只能在固定地点使用

为什么不用 TUN/TAP 虚拟网络接口?

TUN/TAP 是一个很优雅的方案, 不需要依赖 VirtualBox. Windows 上有很好的 TAP 透明代理方案 SSTap, Linux 上也有诸如 kone 这样的项目. 遗憾的是 kone 的上游项目 water 目前对 macOS 的支持有限. 因此:

  • 在目前来看, 在 macOS 上用轻量的 OpenWRT 实现透明代理, 仍然是一个实用的方案.
  • 相对新的项目, OpenWRT 和 VirtualBox 的组合更稳定.
  • 在 OpenWRT 上可以根据情况随时更换代理软件, 适应性更强.

用虚拟机会不会有点杀鸡用牛刀?

大材小用确实有点委屈了虚拟机. 幸运的是 openwrt 非常轻量, 官网提供的镜像不足 5 MB, 转化为 virtualbox 虚拟机磁盘文件, 并在虚拟机上安装必要的软件后, 磁盘空间占用不足 30 MB. 虚拟机在 macOS 上的内存占用在 150MB 以内, 在 Windows 上的内存占用仅仅 20 MB 左右. CPU 占用率则跟网络流量正相关, 没有流量的情况下, Windows 版本 CPU 占用率接近 0% ( 2010 年的 Thinkpad ), macOS则是在 5% 以下 ( 2014 年的中端 13 寸 Macbook ).

优缺点

优点:

  • 可以实现 TCP / UDP 的透明代理
  • 性能强
  • 便携性强
  • 切换方便
  • 免费, 开源

缺点:

  • 依赖 VirtualBox
  • 无法服务局域网内的其他设备
  • UI 用 Electron 进行封装, 体积比虚拟机大太多
  • [ Windows ] Windows 改了默认路由后, Edge 浏览器和 UWP 应用无法连接网络. 其他应用则不受影响

拓扑结构

topology

vrouter's People

Contributors

icymind avatar isbasex 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrouter's Issues

Linux 支持请求

请问 VRouter 是否有 Ubuntu 等广泛使用的桌面型发行版支持?

无法暂停VRouter,不显示暂停按钮

VRouter 版本

0.4.1

操作系统版本

Windows 10 1703

VRouter 应用内, "系统"标签页的信息

当前网关: 10.19.28.37
当前 DNS: fe80::a00:27ff:fec3:722e
VRouter 信息
WAN: 192.168.199.202
转发 DNS 查询: 运行中
转发 UDP 流量: 运行中
Shadowsocks 进程: 运行中
ShadowsocksR 进程: 未启用
Kcptun 进程: 未启用

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

无法暂停,关闭后:

>nslookup qq.com;tracert -d -w 1000 -h 5 qq.com
DNS request timed out.
timeout was 2 seconds.
服务器:UnKnown
Address:fe80::a00:27ff:fec3:722e
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.timeout was 2 seconds.
*** 请求 UnKnown 超时
通过最多 5 个跃点跟踪 到 qq.com [61.135.157.156]的路由:
1 <1 毫秒 <1 毫秒 <1 毫秒 192.168.199.1
2 3 ms 10 ms 6 ms 192.168.8.1
3 *** 请求超时。
4 34 ms 43 ms 20 ms 10.255.255.37
5 48 ms 33 ms 44 ms 10.10.0.5
跟踪完成。
>Get-Content ~/AppData/Roaming/vrouter/vrouter.log  -tail 50 -Encoding UTF8
- info: save profile: vps to disk
- debug: active profile: vps
- debug: Generate cfg files: C:\Users\pzd\AppData\Local\Temp\tunneldns.json,C:\Users\pzd\AppData\Local\Temp\relay-udp.json,C:\Users\pzd\AppData\Local\Temp\shadowsocks.json
- debug: 拷贝代理配置文件到虚拟机, 完成
- debug: Generate services files: C:\Users\pzd\AppData\Local\Temp\tunnelDns,C:\Users\pzd\AppData\Local\Temp\tunnelDnsR,C:\Users\pzd\AppData\Local\Temp\relayUDP,C:\Users\pzd\AppData\Local\Temp\relayUDPR,C:\Users\pzd\AppData\Local\Temp\shadowsocks
- debug: scp service file to: /etc/init.d/tunnelDns
- debug: scp service file to: /etc/init.d/tunnelDnsR
- debug: scp service file to: /etc/init.d/relayUDP
- debug: scp service file to: /etc/init.d/relayUDPR
- debug: scp service file to: /etc/init.d/shadowsocks
- debug: 拷贝代理管理脚本到虚拟机, 完成
- info: /etc/init.d/kcptun off
- info: /etc/init.d/shadowsocksr off
- info: /etc/init.d/shadowsocks on
- debug: 启动关闭相应代理, 完成
- debug: 拷贝代理监护脚本到虚拟机, 完成
- debug: 设置代理, 完成
- debug: tcp redirPort: 1010
- debug: udp redirPort: 1040
- debug: 设置防火墙, 完成
- debug: 设置dnsmasq, 完成- info: apply editting profile: vps
- info: action off
- debug: about to trafficToVirtualRoute
- debug: Router IP: 192.168.199.1
- info: about to quit VRouter
- info: action off
- debug: about to trafficToPhysicalRouter
- debug: Router IP: 192.168.199.1

启用 VRouter 后, 以下命令(可一起执行)的执行结果

>nslookup qq.com;tracert -d -w 1000 -h 5 qq.com
DNS request timed out.
timeout was 2 seconds.
服务器:  UnKnown
Address:  fe80::a00:27ff:fec3:722e
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** 请求 UnKnown 超时

通过最多 5 个跃点跟踪
到 qq.com [14.17.32.211] 的路由: 
1    <1 毫秒   <1 毫秒   <1 毫秒 10.19.28.37   
2     1 ms    <1 毫秒   <1 毫秒 192.168.199.1  
3     5 ms     3 ms     3 ms  192.168.8.1      
4     *        *        *     请求超时。       
5    40 ms    31 ms    27 ms  10.255.255.37 
>Get-Content ~/AppData/Roaming/vrouter/vrouter.log  -tail 50 -Encoding UTF8
- info: about to quit VRouter
- info: action off
- debug: about to trafficToPhysicalRouter
- debug: Router IP: 192.168.199.1
- info: vrouter vm not running
- debug: vm started
- debug: about to connect to openwrt via ssh
- info: Get all bridgeServices: Realtek PCIe GBE Family Controller #2,TAP-Windows Adapter V9
- info: Get current actived bridge service: Realtek PCIe GBE Family Controller #2
- info: action off
- debug: about to trafficToVirtualRouter
- debug: Router IP: 192.168.199.1

点击“启动”按钮后,提示命令提示符管理员授权,但是“启动”按钮没有变成“暂停”按钮,能通过虚拟机网卡转发流量。
而且状态栏的小图标右键显示“pause”已经勾上,点击“pause”后,提示命令提示符管理员授权,“pause”取消选中,依然是通过虚拟机网卡转发流量,反复切换“pause”状态,无变化。

关于SSR的订阅链接支持增加

大佬你好.我又来叨扰你了(´・ω・`)
这次是关于SSR订阅链接的支持.现在为了方便导入/更新节点.很多人都在用订阅的方式导入SSR配置.不知道是否可以考虑增加支持?
如有需要我可以提供sample

bad address

看起来不错。不过我这边一直在 “ resoving host ”,感觉 DNS 配置有点问题。
我用的 8.8.8.8:53 和 114.114.114.114:53 都试过了。
连上 vrouter 虚拟机 ping 随便一个域名比如 Google 都出现"bad address" 错误

root@vrouter:/etc# ping google.com
ping: bad address 'google.com'

OS: macOS 10.12.6
vrouter:v0.4.0-beta

cannot resolve DNS queries

Client Information

VRouter 信息

openwrt 版本: CHAOS CALMER (15.05.1, r48532)
BR-LAN 地址: 10.19.28.37
VRouter IP 地址: 192.168.1.100
VRouter mac 地址: 08:00:27:e0:b7:47
shadowsocks-libev 版本: 3.0.7
shadowsocksR-libev 版本: 2.5.6
kcptun 版本: 20170525

Bug

$ nslookup google.com
;; connection timed out; no servers could be reached

$ nslookup baidu.com 
Server:		10.19.28.37
Address:	10.19.28.37#53

Non-authoritative answer:
Name:	baidu.com
Address: 220.181.57.217
Name:	baidu.com
Address: 123.125.114.144
Name:	baidu.com
Address: 111.13.101.208

$ nslookup twitter.com
;; connection timed out; no servers could be reached

I cannot query any blocked website's server address.

I am sure my server has UDP relay turned on.

从老版本升级后,使用有线网络报错

使用有线网络时,报错,日志中错误如下{"message":"Cannot read property '1' of null","stack":"TypeError: Cannot read property '1' of null\n at VRouter.changeBridgeAdapter (/Applications/VRouter.app/Contents/Resources/app.asar/js/vrouter-local.js:649:42)\n at process._tickCallback (internal/process/next_tick.js:103:7)","level":"error","timestamp":"2017-08-14T09:25:22.911Z"}

未能安装必要软件包;构建错误;Error: Cannot read property '1' of null

VRouter 版本

0.4.0-beta.2

操作系统版本

macOS 10.12.6

VRouter 应用内, "系统"标签页的信息

系统信息

当前网关:
当前 DNS:
VRouter 信息

WAN:
BR-LAN:
Bridged Network:
Mac Address:
Openwrt Version:
Shadowsocks Version:
ShadowsocksR Version:
Kcptun Version:

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
Server:		202.120.190.208
Address:	202.120.190.208#53

Non-authoritative answer:
Name:	qq.com
Address: 14.17.32.211

   route to: default
destination: default
       mask: default
    gateway: 10.11.101.254
  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-09-08T14:00:24+08:00 - debug: about to trafficToPhysicalRouter
2017-09-08T14:00:24+08:00 - info: ssh connection has been ended
2017-09-08T14:00:24+08:00 - info: ssh connection was closed
2017-09-08T14:00:55+08:00 - info: no vrouter vm detected
2017-09-08T14:00:57+08:00 - info: building vm
2017-09-08T14:01:27+08:00 - error: build error: Error: getaddrinfo ENOTFOUND mirrors.tuna.tsinghua.edu.cn mirrors.tuna.tsinghua.edu.cn:443
2017-09-08T14:08:21+08:00 - info: building vm
2017-09-08T14:08:21+08:00 - error: build error: Error: Command failed: /usr/local/bin/VBoxManage controlvm vrouter poweroff
VBoxManage: error: Machine 'vrouter' is not currently running

2017-09-08T14:08:27+08:00 - info: building vm
2017-09-08T14:08:28+08:00 - error: build error: Error: Command failed: /usr/local/bin/VBoxManage controlvm vrouter poweroff
VBoxManage: error: Machine 'vrouter' is not currently running

2017-09-08T14:08:29+08:00 - info: building vm
2017-09-08T14:08:29+08:00 - error: build error: Error: Command failed: /usr/local/bin/VBoxManage controlvm vrouter poweroff
VBoxManage: error: Machine 'vrouter' is not currently running

2017-09-09T14:47:59+08:00 - info: vrouter vm not running
2017-09-09T14:48:30+08:00 - debug: vm started
2017-09-09T14:48:30+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T14:48:31+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T14:48:31+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T14:48:40+08:00 - warn: connecting to openwrt error: Timed out while waiting for handshake
2017-09-09T14:48:40+08:00 - info: ssh connection was closed
2017-09-09T14:49:29+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T14:49:29+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T14:49:29+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T14:49:40+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T14:49:40+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T14:49:40+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T14:49:50+08:00 - warn: connecting to openwrt error: Timed out while waiting for handshake
2017-09-09T14:49:50+08:00 - info: ssh connection was closed
2017-09-09T14:57:04+08:00 - info: vrouter vm not running
2017-09-09T14:57:35+08:00 - debug: vm started
2017-09-09T14:57:36+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T14:57:36+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T14:57:36+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T14:57:46+08:00 - warn: connecting to openwrt error: Timed out while waiting for handshake
2017-09-09T14:57:46+08:00 - info: ssh connection was closed
2017-09-09T15:06:26+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T15:06:26+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T15:06:26+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T15:06:36+08:00 - warn: connecting to openwrt error: Timed out while waiting for handshake
2017-09-09T15:06:36+08:00 - info: ssh connection was closed
2017-09-09T15:06:49+08:00 - debug: about to connect to openwrt via ssh
2017-09-09T15:06:49+08:00 - info: bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,bridge0,p2p0,awdl0
2017-09-09T15:06:49+08:00 - info: actived Bridge Service: en0: Wi-Fi (AirPort)
2017-09-09T15:06:59+08:00 - warn: connecting to openwrt error: Timed out while waiting for handshake
2017-09-09T15:06:59+08:00 - info: ssh connection was closed

启用 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log

无法启动,详见附件。

###错误详细信息
####在安装过程中报错

2017-09-08 1 12 36

构建错误
Error: 未能安装必要软件包
    at t. (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:130214)
    at n (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:424655)
    at Generator._invoke (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:425774)
    at Generator.e.(anonymous function) [as next] (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:424834)
    at n (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:10320)
    at file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:10422
    at 

2017-09-08 1 16 22
2017-09-08 2 08 16

check virualbox installation
构建错误
Error: getaddrinfo ENOTFOUND mirrors.tuna.tsinghua.edu.cn mirrors.tuna.tsinghua.edu.cn:443
    at errnoException (dns.js:28:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:26)

2017-09-08 2 08 26

check virualbox installation
构建错误
Error: Command failed: /usr/local/bin/VBoxManage controlvm vrouter poweroff
VBoxManage: error: Machine 'vrouter' is not currently running

    at ChildProcess.exithandler (child_process.js:217:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Socket. (internal/child_process.js:342:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at Pipe._handle.close [as _onclose] (net.js:510:12)

####尝试删除并重新安装,再次启动报错
2017-09-09 2 48 38

Error: Cannot read property '1' of null
TypeError: Cannot read property '1' of null
    at Function.<anonymous> (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:116477)
    at n (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:424655)
    at Generator._invoke (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:425774)
    at Generator.e.(anonymous function) [as next] (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:424834)
    at n (file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:10320)
    at file:///Applications/VRouter.app/Contents/Resources/app.asar/dist/electron/renderer.bundle.js:1:10422
    at <anonymous>

现在系统–删除也会报错Error: Cannot read property '1' of null,电脑的 DNS 未能恢复成以前的。

加快启动速度

能否让VRouter 0.4.1利用virtualbox的save the machine state功能实行启动和退出,以便加快VRouter的启动速度。现在每次启动都要点击VRouter的启动按钮。

vrouter is not working with hotspot provided by iPhone.

VRouter 版本

0.4.1

操作系统版本

macOS 10.13

VRouter 应用内, "系统"标签页的信息

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

2017-10-08T17:17:02+08:00 - debug: udp redirPort: 1040
2017-10-08T17:17:02+08:00 - debug: 设置防火墙, 完成
2017-10-08T17:17:02+08:00 - debug: 设置dnsmasq, 完成
2017-10-08T17:17:02+08:00 - info: apply editting profile: jp1-ss
2017-10-08T17:17:04+08:00 - debug: active profile: jp1-ss
2017-10-08T17:17:04+08:00 - debug: Generate cfg files: /var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/tunnel-dns.json,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/relay-udp.json,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/shadowsocks.json
2017-10-08T17:17:04+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-10-08T17:17:04+08:00 - debug: Generate services files: /var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/tunnelDns,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/tunnelDnsR,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/relayUDP,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/relayUDPR,/var/folders/7n/mw3lkh_507n06mmjxf_w1v2m0000gn/T/shadowsocks
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-10-08T17:17:04+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-10-08T17:17:04+08:00 - info: /etc/init.d/kcptun off
2017-10-08T17:17:04+08:00 - info: /etc/init.d/shadowsocksr off
2017-10-08T17:17:04+08:00 - info: /etc/init.d/shadowsocks on
2017-10-08T17:17:04+08:00 - debug: 启动关闭相应代理, 完成
2017-10-08T17:17:04+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-10-08T17:17:04+08:00 - debug: 设置代理, 完成
2017-10-08T17:17:04+08:00 - debug: tcp redirPort: 1010
2017-10-08T17:17:04+08:00 - debug: udp redirPort: 1040
2017-10-08T17:17:04+08:00 - debug: 设置防火墙, 完成
2017-10-08T17:17:04+08:00 - debug: 设置dnsmasq, 完成
2017-10-08T17:17:04+08:00 - info: apply profile: jp1-ss
2017-10-08T17:18:12+08:00 - info: action off
2017-10-08T17:18:12+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:18:19+08:00 - info: action off
2017-10-08T17:18:20+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:18:23+08:00 - info: action off
2017-10-08T17:18:23+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:25:14+08:00 - info: action off
2017-10-08T17:25:14+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:29:25+08:00 - info: action off
2017-10-08T17:29:25+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:31:32+08:00 - info: action off
2017-10-08T17:31:32+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:31:39+08:00 - debug: refreshInfos every 15 minutes
2017-10-08T17:31:40+08:00 - warn: connecting to openwrt error: write ECONNABORTED
2017-10-08T17:31:40+08:00 - info: ssh connection was closed
2017-10-08T17:31:40+08:00 - debug: this.conn.exec() err: Error: No response from server
2017-10-08T17:31:40+08:00 - debug: retry exec cmd via ssh
2017-10-08T17:31:40+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:31:40+08:00 - warn: connecting to openwrt error: connect ECONNABORTED 10.19.28.37:22 - Local (0.0.0.0:0)
2017-10-08T17:31:40+08:00 - info: ssh connection was closed
2017-10-08T17:31:40+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:31:40+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-08T17:31:46+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:31:47+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:31:47+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)

启用 VRouter 后, 以下命令(可一起执行)的执行结果

2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-10-08T17:17:04+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-10-08T17:17:04+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-10-08T17:17:04+08:00 - info: /etc/init.d/kcptun off
2017-10-08T17:17:04+08:00 - info: /etc/init.d/shadowsocksr off
2017-10-08T17:17:04+08:00 - info: /etc/init.d/shadowsocks on
2017-10-08T17:17:04+08:00 - debug: 启动关闭相应代理, 完成
2017-10-08T17:17:04+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-10-08T17:17:04+08:00 - debug: 设置代理, 完成
2017-10-08T17:17:04+08:00 - debug: tcp redirPort: 1010
2017-10-08T17:17:04+08:00 - debug: udp redirPort: 1040
2017-10-08T17:17:04+08:00 - debug: 设置防火墙, 完成
2017-10-08T17:17:04+08:00 - debug: 设置dnsmasq, 完成
2017-10-08T17:17:04+08:00 - info: apply profile: jp1-ss
2017-10-08T17:18:12+08:00 - info: action off
2017-10-08T17:18:12+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:18:19+08:00 - info: action off
2017-10-08T17:18:20+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:18:23+08:00 - info: action off
2017-10-08T17:18:23+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:25:14+08:00 - info: action off
2017-10-08T17:25:14+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:29:25+08:00 - info: action off
2017-10-08T17:29:25+08:00 - debug: about to trafficToVirtualRouter
2017-10-08T17:31:32+08:00 - info: action off
2017-10-08T17:31:32+08:00 - debug: about to trafficToPhysicalRouter
2017-10-08T17:31:39+08:00 - debug: refreshInfos every 15 minutes
2017-10-08T17:31:40+08:00 - warn: connecting to openwrt error: write ECONNABORTED
2017-10-08T17:31:40+08:00 - info: ssh connection was closed
2017-10-08T17:31:40+08:00 - debug: this.conn.exec() err: Error: No response from server
2017-10-08T17:31:40+08:00 - debug: retry exec cmd via ssh
2017-10-08T17:31:40+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:31:40+08:00 - warn: connecting to openwrt error: connect ECONNABORTED 10.19.28.37:22 - Local (0.0.0.0:0)
2017-10-08T17:31:40+08:00 - info: ssh connection was closed
2017-10-08T17:31:40+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:31:40+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-08T17:31:46+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:31:47+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:31:47+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-08T17:35:00+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:35:00+08:00 - warn: connecting to openwrt error: read ECONNRESET
2017-10-08T17:35:00+08:00 - info: ssh connection was closed
2017-10-08T17:35:00+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:35:00+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-08T17:35:03+08:00 - debug: about to connect to openwrt via ssh
2017-10-08T17:35:03+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,en1: Thunderbolt 1,en2: Thunderbolt 2,awdl0,bridge0,en5: Ethernet(?),bridge100
2017-10-08T17:35:03+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-08T17:35:04+08:00 - info: action off
2017-10-08T17:35:04+08:00 - debug: about to trafficToVirtualRouter

OpenWRT 的可用磁盘大小似乎不受 VDI 尺寸影响

在这里将 vdi 尺寸 指定为 1G
/usr/local/bin/VBoxManage convertfromraw stdin "${vdiPath}" ${vdiSize} --format VDI --variant Fixed

执行 VBoxManage showmediuminfo disk vrouter.vdi 可以看出 vdi 已经是 1G

UUID:           8b7e4ff0-f932-4ce4-9d9b-ecadc790243b
Parent UUID:    base
State:          locked write
Type:           normal (base)
Location:       /Users/baiyun/VirtualBox VMs/vrouter/vrouter.vdi
Storage format: VDI
Format variant: fixed default
Capacity:       1024 MBytes
Size on disk:   1026 MBytes
Encryption:     disabled
In use by VMs:  vrouter (UUID: 545dbefb-7ef7-4902-ab24-c69e637f716a)

实际可用尺寸还是没变

root@VRouter:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   46.5M     19.8M     25.7M  44% /
/dev/root                46.5M     19.8M     25.7M  44% /
tmpfs                   122.5M     64.0K    122.4M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev

openwrt 的可用磁盘尺寸似乎取决于它的 img 文件大小?有什么办法可以增加磁盘尺寸吗

启用了VRouter之后,整个网络无法使用,处在断网状态

VRouter 版本

0.4.0

操作系统版本

macOS 10.12.6

VRouter 应用内, "系统"标签页的信息

启用前
qq20170912-092718
启用后
qq20170912-092827

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log

结果

2017-09-12T09:24:07+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-12T09:24:07+08:00 - debug: getAssignedHostonlyInf: vboxnet1
2017-09-12T09:24:07+08:00 - debug: about to trafficToPhysicalRouter
2017-09-12T09:24:07+08:00 - info: ssh connection was closed

启用 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log

结果

2017-09-12T09:25:49+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-12T09:25:49+08:00 - debug: getAssignedHostonlyInf: vboxnet1

SS服务器是自己搭建的,版本是shadowsocks-plus,kuptun版本是20170904,目前两个配合工作正常。
然后我将这些信息都填到VRouter里之后,就不能上网了。

一些建议

  1. 有没有开机自启的设置选项(自动启动VRouterHeadless,自动设置系统网关)
  2. 代理设置里面,能不能提供一个列表选择,对于要经常切换服务器的人来说,要经常重新输入略显麻烦
  3. 允许时的 log 显示?

我大致想表达的是,在Vrouter上,能不能显示更多的内容,而不是设置完了之后就没法做任何的操作。

IPv6 Support

I have been on CERNET with IPv6 support, and I configured a server with IPv6 address. However, when I toggle to start, the status just jumped back to "not connected", while the DNS server is changed though.

I used http://Google.com to determine my IP, found the IP address is my CERNET IP instead of the IP of my server.

ADD:

When testing http://test-ipv6.com, the website says:

Your IPv4 address on the public Internet appears to be 45.32.***.***(AS-CHOOPA - Choopa, LLC, US)
Your IPv6 address on the public Internet appears to be 2001:250:3002:4650:****:****:****:****
(CNGI-CERNET2-AS-AP China Next Generation Internet CERNET2, CN)

So it seems that the tunnel is applied on IPv4, but not IPv6.

隐藏系统盘图标

Mac 顶栏的图标,最好也可以设置隐藏,因为不是经常打开 VRouter,占了个坑不够美观

构建错误

构建错误
Error: Command failed: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createvm --name vrouter --register
VBoxManage.exe: error: Machine settings file 'C:\Users\Administrator\VirtualBox VMs\vrouter\vrouter.vbox' already exists
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MachineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "CreateMachine(bstrSettingsFile.raw(), bstrName.raw(), ComSafeArrayAsInParam(groups), bstrOsTypeId.raw(), createFlags.raw(), machine.asOutParam())" at line 273 of file VBoxManageMisc.cpp

at ChildProcess.exithandler (child_process.js:217:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

疑似添加代理服务器 bug

VRouter 版本

0.4.1

操作系统版本

Win10 pro x64

VRouter 应用内, "系统"标签页的信息

系统信息

当前网关: 10.19.28.37
当前 DNS: fe80::a00:27ff:fefd:ed13
VRouter 信息

WAN: 192.168.123.72
BR-LAN: 10.19.28.37
Bridged Network: Realtek PCIe GBE Family Controller
Mac Address: 08:00:27:25:85:bf
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 后, 以下命令(可一起执行)的执行结果

无暂停按钮。
#25

启用 VRouter 后, 以下命令(可一起执行)的执行结果

2017-10-15T18:47:04+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-10-15T18:47:04+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-10-15T18:47:04+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-10-15T18:47:04+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-10-15T18:47:04+08:00 - info: /etc/init.d/kcptun off
2017-10-15T18:47:04+08:00 - info: /etc/init.d/shadowsocksr off
2017-10-15T18:47:04+08:00 - info: /etc/init.d/shadowsocks on
2017-10-15T18:47:04+08:00 - debug: 启动关闭相应代理, 完成
2017-10-15T18:47:04+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-10-15T18:47:04+08:00 - debug: 设置代理, 完成
2017-10-15T18:47:04+08:00 - debug: tcp redirPort: 1010
2017-10-15T18:47:04+08:00 - debug: udp redirPort: 1040
2017-10-15T18:47:04+08:00 - debug: 设置防火墙, 完成
2017-10-15T18:47:07+08:00 - debug: 设置dnsmasq, 完成
2017-10-15T18:47:07+08:00 - info: apply editting profile: DCG
2017-10-15T18:47:10+08:00 - info: Get all bridgeServices: Realtek PCIe GBE Family Controller,Intel(R) Dual Band Wireless
-AC 3160
2017-10-15T18:47:11+08:00 - info: Get current actived bridge service: Realtek PCIe GBE Family Controller
2017-10-15T18:47:16+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-15T18:47:16+08:00 - info: action off
2017-10-15T18:47:21+08:00 - debug: about to trafficToVirtualRouter
2017-10-15T18:47:21+08:00 - debug: Router IP: 192.168.123.1
2017-10-15T18:48:42+08:00 - info: save profile: DCG to disk
2017-10-15T18:48:42+08:00 - debug: active profile: DCG
2017-10-15T18:48:42+08:00 - debug: Generate cfg files: C:\Users\78635\AppData\Local\Temp\tunnel-dns.json,C:\Users\78635\
AppData\Local\Temp\relay-udp.json,C:\Users\78635\AppData\Local\Temp\shadowsocks.json
2017-10-15T18:48:42+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-10-15T18:48:42+08:00 - debug: Generate services files: C:\Users\78635\AppData\Local\Temp\tunnelDns,C:\Users\78635\A
ppData\Local\Temp\tunnelDnsR,C:\Users\78635\AppData\Local\Temp\relayUDP,C:\Users\78635\AppData\Local\Temp\relayUDPR,C:\U
sers\78635\AppData\Local\Temp\shadowsocks
2017-10-15T18:48:42+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-10-15T18:48:42+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-10-15T18:48:42+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-10-15T18:48:42+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-10-15T18:48:42+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-10-15T18:48:42+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-10-15T18:48:42+08:00 - info: /etc/init.d/kcptun off
2017-10-15T18:48:42+08:00 - info: /etc/init.d/shadowsocksr off
2017-10-15T18:48:42+08:00 - info: /etc/init.d/shadowsocks on
2017-10-15T18:48:42+08:00 - debug: 启动关闭相应代理, 完成
2017-10-15T18:48:42+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-10-15T18:48:42+08:00 - debug: 设置代理, 完成
2017-10-15T18:48:42+08:00 - debug: tcp redirPort: 1010
2017-10-15T18:48:42+08:00 - debug: udp redirPort: 1040
2017-10-15T18:48:42+08:00 - debug: 设置防火墙, 完成
2017-10-15T18:48:45+08:00 - debug: 设置dnsmasq, 完成
2017-10-15T18:48:45+08:00 - info: apply editting profile: DCG
2017-10-15T18:51:55+08:00 - debug: refreshInfos every 15 minutes
2017-10-15T18:51:55+08:00 - info: Get all bridgeServices: Realtek PCIe GBE Family Controller,Intel(R) Dual Band Wireless
-AC 3160
2017-10-15T18:51:56+08:00 - info: Get current actived bridge service: Realtek PCIe GBE Family Controller
2017-10-15T18:52:01+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-15T18:52:01+08:00 - info: action off
2017-10-15T18:52:06+08:00 - debug: about to trafficToVirtualRouter
2017-10-15T18:52:06+08:00 - debug: Router IP: 192.168.123.1

描述

运行情况下。添加服务个数大于等于 2 个时,会导致全部服务器信息变为最后一个添加的服务器信息。
添加服务器方式:导入
由此 SS 版本导出:4.06

snipaste_2017-10-15_19-05-15

snipaste_2017-10-15_19-05-57

无法解析 google.com 的域名

VRouter开启,一切正常,但是谷歌不能访问,浏览器告诉我无法解析域名
nodns1

配置:
dns

请问如何 debug?

VRouter 版本

v0.4.0-beta.2

操作系统版本

Win10

VRouter 应用内, "系统"标签页的信息

系统信息

当前网关: 10.19.28.37
当前 DNS: 10.19.28.37
VRouter 信息

WAN: 192.168.50.144
BR-LAN: 10.19.28.37
Bridged Network: Intel(R) Dual Band Wireless-AC 8265
Mac Address: 88:99:88:99:88:99
Openwrt Version: 15.05.1
Shadowsocks Version: 3.0.8
ShadowsocksR Version: 2.5.6
Kcptun Version: 20170525
LESS
进程状态

转发 DNS 查询: 运行中
转发 UDP 流量: 运行中
Shadowsocks 进程: 运行中
ShadowsocksR 进程: 未启用
Kcptun 进程: 未启用

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
  • Windows ( 请用 PowerShell 执行 ): nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log -tail 50 -Encoding UTF8

PS D:\Downloads\Video> nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log
-tail 50 -Encoding UTF8
服务器: RT-AC66U_B1-A838
Address: 192.168.50.1

非权威应答:
名称: qq.com
Address: 14.17.32.211

通过最多 5 个跃点跟踪
到 qq.com [14.17.32.211] 的路由:

1 <1 毫秒 <1 毫秒 <1 毫秒 192.168.50.1
2 2 ms 1 ms 1 ms 192.168.1.1
3 4 ms 18 ms 10 ms 101.229.88.1
4 5 ms 5 ms 5 ms 124.74.59.25
5 9 ms 6 ms 14 ms 124.74.209.181

跟踪完成。
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:17:10+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:17:10+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:17:10+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: 设置代理, 完成
2017-09-10T11:17:10+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:17:10+08:00 - debug: udp redirPort: 1040
2017-09-10T11:17:10+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:17:13+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:17:13+08:00 - info: apply editting profile: ss
2017-09-10T11:17:19+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:17:19+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:22:03+08:00 - info: save profile: ss to disk
2017-09-10T11:22:03+08:00 - debug: active profile: ss
2017-09-10T11:22:03+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\relay-udp.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:22:03+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\relayUDP,C:\Users\seeker\AppData\Local\Temp\relayUDPR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:22:03+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:22:03+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:22:03+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: 设置代理, 完成
2017-09-10T11:22:03+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:22:03+08:00 - debug: udp redirPort: 1040
2017-09-10T11:22:03+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:22:06+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:22:06+08:00 - info: apply editting profile: ss
2017-09-10T11:24:36+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:24:36+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:31:51+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:31:52+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:41:47+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:41:47+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:41:47+08:00 - debug: Router IP: 192.168.50.1
2017-09-10T11:44:03+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:44:03+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:44:03+08:00 - debug: about to trafficToPhysicalRouter
2017-09-10T11:44:03+08:00 - info: ssh connection has been ended
2017-09-10T11:44:03+08:00 - info: ssh connection was closed
2017-09-10T11:44:04+08:00 - debug: Router IP: 192.168.50.1

启用 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
  • Windows ( 请用 PowerShell 执行 ): nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log -tail 50 -Encoding UTF8

PS D:\Downloads\Video> nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log
-tail 50 -Encoding UTF8
服务器: vrouter.lan
Address: 10.19.28.37

非权威应答:
DNS request timed out.
timeout was 2 seconds.
名称: qq.com
Address: 14.17.32.211

通过最多 5 个跃点跟踪
到 qq.com [14.17.32.211] 的路由:

1 <1 毫秒 <1 毫秒 <1 毫秒 10.19.28.37
2 2 ms * 2 ms 192.168.50.1
3 3 ms 2 ms 3 ms 192.168.1.1
4 7 ms 5 ms 4 ms 101.229.88.1
5 5 ms 5 ms 6 ms 124.74.59.25

跟踪完成。
2017-09-10T11:17:10+08:00 - debug: active profile: ss
2017-09-10T11:17:10+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:17:10+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:17:10+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:17:10+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:17:10+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: 设置代理, 完成
2017-09-10T11:17:10+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:17:10+08:00 - debug: udp redirPort: 1040
2017-09-10T11:17:10+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:17:13+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:17:13+08:00 - info: apply editting profile: ss
2017-09-10T11:17:19+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:17:19+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:22:03+08:00 - info: save profile: ss to disk
2017-09-10T11:22:03+08:00 - debug: active profile: ss
2017-09-10T11:22:03+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\relay-udp.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:22:03+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\relayUDP,C:\Users\seeker\AppData\Local\Temp\relayUDPR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:22:03+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:22:03+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:22:03+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: 设置代理, 完成
2017-09-10T11:22:03+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:22:03+08:00 - debug: udp redirPort: 1040
2017-09-10T11:22:03+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:22:06+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:22:06+08:00 - info: apply editting profile: ss
2017-09-10T11:24:36+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:24:36+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:31:51+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:31:52+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:41:47+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:41:47+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:41:47+08:00 - debug: Router IP: 192.168.50.1

Win7下的配置文件错误

在我这里,手动修复以下错误才能正常运行:

  1. 需要把/etc/vrouter里面shadowsocks/tunnelDns等ss相关配置里面fast open的值从加引号的true改为不加引号,否则会出现值不是boolean的错误。
  2. 需要把proxies_watchdog里面[object Object]改为tunnelDns等。

Vrouter是否成为便携软件

我有台win10机器,装了多次尝试无法安装VRouter 0.4.1,想把另外一条win7上安装好的VRouter拷贝过去该请问如何操作?

About BREW

不知道作者有没有想过把vrouter放到brew cask上面来达到自动安装?

咨询一下作者关于代理设置

目前情况是宿主机上有一个finalspeed客户端.连接了远程服务器的某个端口并映射为本地的630端口.mac分配到的ip地址为192.168.1.2或者192.168.1.3.请问如果要在vrouter中填写ssr服务器地址.应该填写127.0.0.1呢还是192.168.1.2

why not use DHCP and LEDE?

看了下原理通过改路由和网关的方式实现全局代理,比较麻烦,为什么不直接使用dhcp服务器直接进行分配ip呢?
openwrt上开dhcp服务器,Mac 上sudo ipconfig set vmnetx DHCP,vmnetx是虚拟网卡,这样Mac会自动的分配一个IP地址,就全局上网了。也可以改preferences向网络设置上加个可控界面,这样就全自动分配了
2246597F-0137-4481-BF50-272B3AF07CA1.png

LEDE个人感觉更稳定些

关于ssr连接以及ss连接的导入

希望作者能增加对于ssr/ss url形式导入的支持.或者至少在各种必填项中固定范围的加入选项支持.目前只能手写.出错可能性大.麻烦了

启动失败

Error: Command failed: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm --type headless vrouter
VBoxManage.exe: error: Nonexistent host networking interface, name 'undefined' (VERR_INTERNAL_ERROR)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

at ChildProcess.exithandler (child_process.js:217:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

无法切换代理服务器

VRouter 版本

0.4.0

操作系统版本

windows10 1703

在VRouter里添加了两个ssr代理服务器。
启动VRouter后,可以正常通过代理上网。
在VRouter的设置界面切换到另一个ssr代理,然后就上不了网了。
在VRouter里暂停再启动,无效。
查看windows系统的任务管理器,发现有一个VBoxHeadless.exe占用30%的CPU。
打开virtualbox,显示VRouter虚拟机异常退出。
退出VRouter,在windows系统的任务管理器手动结束VBoxHeadless进程,再启动VRouter,然后可以正常通过代理上网了。

invalid config file: option 'fast_open' must be a boolean

VRouter 版本

0.4.0

操作系统版本

windows10 1703

问题一:
启动后,VRouter 应用内, "系统"标签页显示ssr已启动,但主机上不了网。
在虚拟机内执行
ssr-redir -c /etc/vrouter/shadowsocksr.json
显示:
invalid config file: option 'fast_open' must be a boolean.
在虚拟机内执行
cat /etc/vrouter/shadowsocksr.json
显示:
'fast_open': 'false' (注意false的外面有括号)

去到VRouter 应用内修改ssr设置里的fast open为brue(在下拉列表里选择)
然后再在虚拟机内执行
cat /etc/vrouter/shadowsocksr.json
显示:
'fast_open': true (注意false的外面没有括号)
然后再启动系统,可以代理上网了。

问题二:
关闭VRouter 应用后,虚拟机还会在后台运行? 要手动去virtualbox里关闭虚拟机才行?

问题三:
请问怎样查看ss、ssr的运行、错误日志? 如果ss、ssr出问题怎样debug?

How to uninstall it?

My Mac installed it yesterday, but I found that I didn't need it.

And now my network environment has changed, I do not know how to set it default.

关于无法启动和一些建议

1.我有有线和无线网卡.我如果同时开启的话.则看设置dns被设置为vrouter内部地址.能正常使用.关闭任意一个都可以.但是始终显示启用状态.但其实服务是正常启动了的.会有点不确定的感觉.
2.关于VRouter的退出.如果我直接点了vrouter的×.程序会直接退出.应该将关闭按钮设置为关闭当前窗口
3.关于增加DNS的设置.不知道是否可以增加一个这样的设置.因为不一定需要一定开启远程dns查询.有时候选一个无污染dns也可以的.而且比较建议能增加查询的dns.

代理不成功/ssr生成配置json小问题

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

59d5bdb2edc51.png

Windows support

对windows系统的支持开发现在优先级怎么样呢,windows上才是真正比较缺乏这类应用的

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.