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

Mac下关闭TUN模式后无法正常联网 #1793

Open
5 of 6 tasks
sunjianan9900 opened this issue Oct 16, 2024 · 2 comments
Open
5 of 6 tasks

Mac下关闭TUN模式后无法正常联网 #1793

sunjianan9900 opened this issue Oct 16, 2024 · 2 comments

Comments

@sunjianan9900
Copy link

复现步骤 / Step to reproduce

1.关闭TUN模式(或者直接退出clash)
2.Chrome、EDGE、safari等浏览器均无法正常访问国内网络(如百度),Teams掉线,但海外网站正常访问、微信仍然可以收发消息(公众号等文章页面无法打开)
3.开启TUN模式 百度等可以恢复访问,一切恢复正常

尝试关闭tun模式后使用“sudo killall -HUP mDNSResponder”清理DNS缓存,也没有恢复网络访问

预期行为 / Expected behavior

关闭TUN模式可以正常上百度

实际行为 / Actual behavior

关闭TUN模式无法访问国内网络

应用日志 / App logs

关闭TUN模式后会有一个警告:
10-16 18:47:37
WARNING
[TCP] dial 漏网之鱼 (match Match/) mihomo --> xxxx:33943 error: dns resolve failed: all DNS requests failed, first error: xxxxxx:443 connect error: dns resolve failed: context deadline exceeded

备注 / Addition details

No response

环境信息 / Environment information

----------- System -----------
OS: MacOS 14.5 23.5.0
Arch: arm64
----------- Device -----------
CPU: Apple M1 @ 3.20GHz x 8
Memory: 16 GiB
----------- Core -----------
clash: Clash n2023-09-05-gdcc8d87 darwin arm64 with go1.21.0 Tue Sep 5 14:20:06 UTC 2023
mihomo-alpha: Mihomo Meta alpha-ade4234 darwin arm64 with go1.23.1 Sat Sep 7 12:22:55 UTC 2024 Use tags: with_gvisor
clash-rs: clash-rs 0.3.1
mihomo: Mihomo Meta v1.18.8 darwin arm64 with go1.23.0 Mon Sep 2 08:35:10 UTC 2024 Use tags: with_gvisor
----------- Build Info -----------
App Name: clash-nyanpasu
App Version: 0.1.0
Pkg Version: 1.6.1
Commit Hash: 0731270
Commit Author: github-actions[bot]
Commit Date: 2024-09-07T16:09:54.000Z
Build Date: 2024-09-07T16:51:07.599Z
Build Profile: Release
Build Platform: aarch64-apple-darwin
Rustc Version: rustc 1.83.0-nightly (26b5599e4 2024-09-06)
Llvm Version: 19.1

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已知悉如果没有提供正确的系统信息,以及日志,您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly
  • 您已仔细查看并知情 Q&AFAQ 中的内容 / You have read and understood the contents of Q&A and FAQ
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make multiply issue for multiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
@sunjianan9900
Copy link
Author

是否有手动清理TUN影响的方案呢?我现在退出clash、重启MAC,都无法恢复百度等的访问了

@greenhat616
Copy link
Collaborator

greenhat616 commented Oct 17, 2024

系统接口,例如 Wi-Fi, dns 改回默认

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

No branches or pull requests

2 participants