-
Notifications
You must be signed in to change notification settings - Fork 161
在Mac上,休眠后重新唤醒后,透明代理无法自动恢复,必须手动“暂停”再“启用” #83
Description
先开启Vrouter,验证过代理正常。
把MacBook断开充电器,合上盖子5分钟,重新打开后马上查看日志
此时UI显示Vrouter仍然是工作的(显示红色按钮“暂停”)
并且网络通信正常,可以上普通网站,但是透明代理不工作。
访问“不存在”网站时会一直等待然后超时。
手动暂停并再次启动后,一切正常。
唤醒前后,连接的是同一个wifi,虚拟机的外网地址也没有变化。
感谢作者和其他贡献者们的努力,做了一个这么脑洞大开的软件。。。。
VRouter 版本
0.4.2
操作系统版本
macOS High Sierra
VRouter 应用内, "系统"标签页的信息
系统信息
当前网关: 10.19.28.37
当前 DNS: 10.19.28.37
VRouter 信息
WAN: 192.168.1.183
先开启Vrouter,验证过代理正常。
把MacBook断开充电器,合上盖子5分钟,重新打开后马上查看日志:
此时UI显示Vrouter仍然是工作的(显示红色按钮“暂停”)
$ nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
Server: 10.19.28.37
Address: 10.19.28.37#53
Non-authoritative answer:
Name: qq.com
Address: 59.37.96.63
Name: qq.com
Address: 58.60.9.21
Name: qq.com
Address: 180.163.26.39
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
2018-06-26T20:31:46+08:00 - debug: udp redirPort: 1040
2018-06-26T20:31:46+08:00 - debug: 设置防火墙, 完成
2018-06-26T20:31:50+08:00 - debug: 设置dnsmasq, 完成
2018-06-26T20:31:50+08:00 - info: apply profile: vps
2018-06-26T20:35:48+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:35:48+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:35:48+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T20:50:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:50:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:50:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:05:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:05:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:05:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:20:46+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:20:46+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:20:46+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:35:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:35:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:35:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:50:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:50:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:50:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:43+08:00 - debug: about to connect to openwrt via ssh
2018-06-26T23:59:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T23:59:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:44+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-26T23:59:44+08:00 - info: action off
2018-06-26T23:59:44+08:00 - debug: about to trafficToVirtualRouter
2018-06-26T23:59:46+08:00 - info: action off
2018-06-26T23:59:48+08:00 - debug: about to trafficToPhysicalRouter
2018-06-26T23:59:49+08:00 - info: action off
2018-06-26T23:59:49+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:28+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:18:29+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:18:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:18:29+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:18:29+08:00 - info: action off
2018-06-27T19:18:29+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:33+08:00 - info: action off
2018-06-27T19:18:33+08:00 - debug: about to trafficToPhysicalRouter
2018-06-27T19:18:34+08:00 - info: action off
2018-06-27T19:18:34+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:03+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:25:04+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:04+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:25:04+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:25:04+08:00 - info: action off
2018-06-27T19:25:04+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:31+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:31+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
点击按钮“暂停”后
$ nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: qq.com
Address: 180.163.26.39
Name: qq.com
Address: 59.37.96.63
Name: qq.com
Address: 58.60.9.21
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
2018-06-26T20:31:50+08:00 - debug: 设置dnsmasq, 完成
2018-06-26T20:31:50+08:00 - info: apply profile: vps
2018-06-26T20:35:48+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:35:48+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:35:48+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T20:50:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:50:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:50:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:05:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:05:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:05:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:20:46+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:20:46+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:20:46+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:35:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:35:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:35:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:50:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:50:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:50:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:43+08:00 - debug: about to connect to openwrt via ssh
2018-06-26T23:59:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T23:59:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:44+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-26T23:59:44+08:00 - info: action off
2018-06-26T23:59:44+08:00 - debug: about to trafficToVirtualRouter
2018-06-26T23:59:46+08:00 - info: action off
2018-06-26T23:59:48+08:00 - debug: about to trafficToPhysicalRouter
2018-06-26T23:59:49+08:00 - info: action off
2018-06-26T23:59:49+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:28+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:18:29+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:18:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:18:29+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:18:29+08:00 - info: action off
2018-06-27T19:18:29+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:33+08:00 - info: action off
2018-06-27T19:18:33+08:00 - debug: about to trafficToPhysicalRouter
2018-06-27T19:18:34+08:00 - info: action off
2018-06-27T19:18:34+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:03+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:25:04+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:04+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:25:04+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:25:04+08:00 - info: action off
2018-06-27T19:25:04+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:31+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:31+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:28:58+08:00 - info: action off
2018-06-27T19:28:59+08:00 - debug: about to trafficToPhysicalRouter
重新启动Vrouter
$ nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
Server: 10.19.28.37
Address: 10.19.28.37#53
Non-authoritative answer:
Name: qq.com
Address: 180.163.26.39
Name: qq.com
Address: 58.60.9.21
Name: qq.com
Address: 59.37.96.63
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
2018-06-26T20:35:48+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:35:48+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:35:48+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T20:50:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T20:50:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T20:50:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:05:45+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:05:45+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:05:45+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:20:46+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:20:46+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:20:46+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:35:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:35:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:35:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T21:50:44+08:00 - debug: refreshInfos every 15 minutes
2018-06-26T21:50:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T21:50:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:43+08:00 - debug: about to connect to openwrt via ssh
2018-06-26T23:59:44+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-26T23:59:44+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-26T23:59:44+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-26T23:59:44+08:00 - info: action off
2018-06-26T23:59:44+08:00 - debug: about to trafficToVirtualRouter
2018-06-26T23:59:46+08:00 - info: action off
2018-06-26T23:59:48+08:00 - debug: about to trafficToPhysicalRouter
2018-06-26T23:59:49+08:00 - info: action off
2018-06-26T23:59:49+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:28+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:18:29+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:18:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:18:29+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:18:29+08:00 - info: action off
2018-06-27T19:18:29+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:18:33+08:00 - info: action off
2018-06-27T19:18:33+08:00 - debug: about to trafficToPhysicalRouter
2018-06-27T19:18:34+08:00 - info: action off
2018-06-27T19:18:34+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:03+08:00 - debug: about to connect to openwrt via ssh
2018-06-27T19:25:04+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:04+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:25:04+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2018-06-27T19:25:04+08:00 - info: action off
2018-06-27T19:25:04+08:00 - debug: about to trafficToVirtualRouter
2018-06-27T19:25:31+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),p2p0,awdl0,en1: 雷雳 1,bridge0
2018-06-27T19:25:31+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2018-06-27T19:28:58+08:00 - info: action off
2018-06-27T19:28:59+08:00 - debug: about to trafficToPhysicalRouter
2018-06-27T19:29:46+08:00 - info: action off
2018-06-27T19:29:46+08:00 - debug: about to trafficToVirtualRouter