Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support Request] 偶尔无法科学上网 #290

Closed
3 tasks done
Karmylr opened this issue Aug 19, 2023 · 35 comments
Closed
3 tasks done

[Support Request] 偶尔无法科学上网 #290

Karmylr opened this issue Aug 19, 2023 · 35 comments

Comments

@Karmylr
Copy link

Karmylr commented Aug 19, 2023

Checks

  • I have searched the existing issues
  • I have read the documentation
  • Is it your first time sumbitting an issue

Support Request

请问这是节点的问题吗

time="Aug 19 11:22:24" level=debug msg="Rewrite dial target to domain" from="104.16.210.12:443" to="www.speedtest.net:443"
time="Aug 19 11:22:24" level=warning msg="handleConn: failed to dial 104.16.210.12:443: failed to select dialer from group proxy (tcp6): no alive dialer"

Current Behavior

无法科学上网

Expected Behavior

可以科学上网

Steps to Reproduce

No response

Environment

  • Dae version (use dae --version):
  • OS (e.g cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Others:

Anything else?

No response

@dae-prow
Copy link
Contributor

dae-prow bot commented Aug 19, 2023

Thanks for opening this issue!

@mzz2017
Copy link
Contributor

mzz2017 commented Aug 19, 2023

@Karmylr juicity?

@Karmylr
Copy link
Author

Karmylr commented Aug 19, 2023

@Karmylr juicity?

trojan

@mzz2017
Copy link
Contributor

mzz2017 commented Aug 19, 2023

@Karmylr 节点在测联通性失败时是会被禁用一段时间的

@Karmylr
Copy link
Author

Karmylr commented Aug 19, 2023

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

@mzz2017 连通性检查似乎不准确,节点可以使用但是还是报warningfailed to select dialer from group proxy (tcp6): no alive dialer
image

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

而且家里的宽带没有IPv6,但是却显示了tcp6

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

正常

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

那节点在其他软件可以使用,dae还是报failed to select dialer from group proxy (tcp6): no alive dialer并无法使用怎么办

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

打开 allow_insecure 试试

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

节点确实需要跳过tls证书验证,但是打开daed上的允许不安全还是会报failed to select dialer from group proxy (tcp6): no alive dialer

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 那能用吗

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

刚启动时可以科学 过一段时间除了电报 其他国外网站无法访问 我再观察观察吧

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 那你可以检查一下是不是 check url 的问题

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

image
目前是这样的,要改吗

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

顺便问一下,为什么要设计成节点连通性失败就禁用一段时间呢,为了自动故障转移吗

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 只有电报能用说明是 dns 出问题了,你可以把 dns 那边的 googledns 改成 tcp:// 开头

@piyoki
Copy link
Contributor

piyoki commented Sep 1, 2023

@mzz2017 好提議

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

@mzz2017 全部使用国内的dns服务器,能正常解析出google等国外网站的ip,但是还是会在开启dae一段时间后无法科学

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

奇怪,那为什么tg是可以的

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

tg再过一段时间也断网了

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 开 debug 日志,看一下 connectivity check

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

@mzz2017 time="Sep 01 11:19:39" level=debug msg="Connectivity Check Failed" err="[Tls]: dial to south.steamdownload.top:11002: dial tcp: lookup south.steamdownload.top on [::1]:53: read udp [::1]:40327->[::1]:53: i/o timeout" network="tcp4(DNS)" node="2.香港 02"

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 你是不是在用 dnsmasq,把dnsmasq里的劫持关了

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

@mzz2017 在用ImmortalWrt,怎么关劫持呢

@piyoki
Copy link
Contributor

piyoki commented Sep 1, 2023

@Karmylr 那默認會有dnsmasq

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr 我不知道怎么关劫持,要么把 dnsmasq 监听端口设0,要么把dnsmasq的劫持关掉

@piyoki
Copy link
Contributor

piyoki commented Sep 1, 2023

@Karmylr 參考 #79

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

这么干ImmortalWrt就没有DHCP服务器了吧

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 1, 2023

@Karmylr #171 (comment)

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

pname(dnsmasq) -> must_direct解决了

@Karmylr
Copy link
Author

Karmylr commented Sep 1, 2023

用这条路由稳定了两个小时,刚刚又出现了

time="Sep 01 14:00:24" level=debug msg="Rewrite dial target to domain" from="20.205.243.166:443" to="github.com:443"
time="Sep 01 14:00:24" level=warning msg="handleConn: failed to dial 20.205.243.166:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:24" level=debug msg="Rewrite dial target to domain" from="20.205.243.166:443" to="github.com:443"
time="Sep 01 14:00:24" level=warning msg="handleConn: failed to dial 20.205.243.166:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:25" level=debug msg="Rewrite dial target to domain" from="20.205.243.166:443" to="github.com:443"
time="Sep 01 14:00:25" level=warning msg="handleConn: failed to dial 20.205.243.166:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:25" level=debug msg="Rewrite dial target to domain" from="20.205.243.166:443" to="github.com:443"
time="Sep 01 14:00:25" level=warning msg="handleConn: failed to dial 20.205.243.166:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:26" level=debug msg="Skip check due to no DNS record." dialer="2.香港 02" link=[http://cp.cloudflare.com 1.1.1.1] network=tcp6
time="Sep 01 14:00:26" level=debug msg="Skip check due to no DNS record." dialer="2.香港 02" link=[dns.google.com:53 8.8.8.8] network="tcp6(DNS)"
time="Sep 01 14:00:26" level=debug msg="Skip check due to no DNS record." link=[dns.google.com:53 8.8.8.8] network="udp6(DNS)"
time="Sep 01 14:00:26" level=debug msg="Connectivity Check" avg_10=499ms last=306ms mov_avg=631ms network="tcp4(DNS)" node="2.香港 02"
time="Sep 01 14:00:26" level=debug msg="Connectivity Check" avg_10=572ms last=317ms mov_avg=472ms network=tcp4 node="2.香港 02"
time="Sep 01 14:00:26" level=debug msg="Connectivity Check" avg_10=1.795s last=345ms mov_avg=514ms network="udp4(DNS)" node="2.香港 02"
time="Sep 01 14:00:26" level=debug msg="UDP(DNS) 192.168.2.218:50435 <-> Cache: ogs.google.com. AAAA"
time="Sep 01 14:00:26" level=info msg="192.168.2.218:56444 <-> 119.29.29.29:53" _qname=ogs.google.com. dialer=direct mac="90:76:9f:b2:fd:52" network="udp4(DNS)" outbound=direct pid=0 pname= policy=fixed qtype=HTTPS
time="Sep 01 14:00:26" level=info msg="192.168.2.218:59326 <-> 119.29.29.29:53" _qname=ogs.google.com. dialer=direct mac="90:76:9f:b2:fd:52" network="udp4(DNS)" outbound=direct pid=0 pname= policy=fixed qtype=HTTPS
time="Sep 01 14:00:27" level=info msg="192.168.2.218:50435 <-> 119.29.29.29:53" _qname=ogs.google.com. dialer=direct mac="90:76:9f:b2:fd:52" network="udp4(DNS)" outbound=direct pid=0 pname= policy=fixed qtype=A
time="Sep 01 14:00:27" level=debug msg="Rewrite dial target to domain" from="172.217.163.46:443" to="ogs.google.com:443"
time="Sep 01 14:00:27" level=warning msg="handleConn: failed to dial 172.217.163.46:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:27" level=debug msg="Rewrite dial target to domain" from="172.217.163.46:443" to="ogs.google.com:443"
time="Sep 01 14:00:27" level=warning msg="handleConn: failed to dial 172.217.163.46:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:28" level=info msg="192.168.2.218:5251 <-> 20.205.69.80:443" dialer="2.香港 01" ip="20.205.69.80:443" mac="90:76:9f:b2:fd:52" network=tcp4 outbound=proxy pid=0 pname= policy=random sniffed=vscode-sync.trafficmanager.net
time="Sep 01 14:00:29" level=debug msg="Rewrite dial target to domain" from="128.242.250.155:443" to="www.youtube.com:443"
time="Sep 01 14:00:29" level=warning msg="handleConn: failed to dial 128.242.250.155:443: failed to select dialer from group proxy (tcp6): no alive dialer"
time="Sep 01 14:00:29" level=debug msg="Rewrite dial target to domain" from="128.242.250.155:443" to="www.youtube.com:443"
time="Sep 01 14:00:29" level=warning msg="handleConn: failed to dial 128.242.250.155:443: failed to select dialer from group proxy (tcp6): no alive dialer"

似乎connectivity check通过了,但是还是偶尔没法科学

@mzz2017
Copy link
Contributor

mzz2017 commented Sep 2, 2023

上游不要写 dnsmasq

@Karmylr
Copy link
Author

Karmylr commented Sep 2, 2023

上游不要写 dnsmasq

dae的upstream没有dnsmasq
加入pname(dnsmasq) -> must_direct这条路由之后的断流会自己在几秒后恢复,而且频率不高

@Karmylr
Copy link
Author

Karmylr commented Sep 15, 2023

取消勾选dnsmasq的dns重定向解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants