Open mrhso opened 4 years ago
看你的防火墙情况。比较一下正常情况下的防火墙规则和不正常情况下的防火墙规则
开启前后防火墙规则未见变化。另外 random: crng init done
明显滞后,在此之前均处于无法连接的状态。
重启时间长是因为需要等待 dnsmasq 载入规则列表,这个时间比较长
重启时间长是因为需要等待 dnsmasq 载入规则列表,这个时间比较长
45 分钟的话似乎不太正常……载入规则列表也不应当出现阻塞。 另外我用了自定义配置,不知道有没有关系。
路由什么架构的?
mipsel_24kc MT7621
重启之前把 /tmp/dnsmasq.d/v2ray
删了试试,或者不要启用 GFWList
启用 V2Ray 之后 /tmp/dnsmasq.d/
是空的。
不能啊,那你这些日志怎么来的?
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www.gstatic.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www-googletagmanager.l.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain update.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain translate.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.l.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain toolbarqueries.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl.gstatic.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl-google-analytics.l.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain settings.crashlytics.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing-cache.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain redirector.gvt1.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain recaptcha.net
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain pagead-googlehosted.l.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ocsp.pki.goog
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain media.admob.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.googleapis.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.google.com
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm.googleapis.com
Tue Jan 28 01:03:00 2020 daemon.info dnsmasq[735]: using 73431 more nameservers
不能啊,那你这些日志怎么来的?
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www.gstatic.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www-googletagmanager.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain update.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain translate.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain toolbarqueries.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl.gstatic.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl-google-analytics.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain settings.crashlytics.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing-cache.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain redirector.gvt1.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain recaptcha.net Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain pagead-googlehosted.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ocsp.pki.goog Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain media.admob.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm.googleapis.com Tue Jan 28 01:03:00 2020 daemon.info dnsmasq[735]: using 73431 more nameservers
那是我自己给 dnsmasq 配置的,而且禁用 V2Ray 之后这些也并没有显著拖慢启动。
不能啊,那你这些日志怎么来的?
Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www.gstatic.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain www-googletagmanager.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain update.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain translate.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain tools.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain toolbarqueries.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl.gstatic.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ssl-google-analytics.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain settings.crashlytics.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain safebrowsing-cache.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain redirector.gvt1.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain recaptcha.net Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain pagead-googlehosted.l.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain ocsp.pki.goog Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain media.admob.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khmdb.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm3.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm2.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm1.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.googleapis.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm0.google.com Tue Jan 28 01:02:59 2020 daemon.info dnsmasq[735]: using nameserver 114.114.114.114#53 for domain khm.googleapis.com Tue Jan 28 01:03:00 2020 daemon.info dnsmasq[735]: using 73431 more nameservers
那是我自己给 dnsmasq 配置的,而且禁用 V2Ray 之后这些也并没有显著拖慢启动。
还有就是你这个 CPU 太弱了,本来启动 v2ray 就很慢。
这个问题我也发现,并且已经解决了,不是v2ray的问题,而是luci-app-v2ray的init.d启动脚本被防火墙规则提前reload造成的,按我贴出的方式改一下脚本,路由器就能恢复正常重启时间了。 https://github.com/kuoruan/luci-app-v2ray/issues/141
还有就是你这个 CPU 太弱了,本来启动 v2ray 就很慢。
我也是MT7621,是最高版本MT7621A,双核四线程的,没FPU用软件模拟协处理器做浮点运算,跑V2RAY也能流畅看油管4K视频,外网走代理下载速度能到5MB/s。而且这个硬件平台的路由器特省电,无线只开5G才3W左右,我这里停电后直流UPS也能带机22小时。
环境:OpenWrt 18.06.5 on UBNT ER-X 版本:core v4.22.1-4,luci-app v1.5.3-1 表现为启动后一段时间(不定),路由器无法与外部端口通信。 若在 LuCI 中勾选「已启用」,重启后会触发问题,反之不会。 附系统日志: