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

打不开edge或者WebView2下载页 #1972

Open
wyjtm opened this issue Apr 12, 2025 · 13 comments
Open

打不开edge或者WebView2下载页 #1972

wyjtm opened this issue Apr 12, 2025 · 13 comments

Comments

@wyjtm
Copy link

wyjtm commented Apr 12, 2025

问题现象
具体表现就是图片没了网页崩了,就只显示一些排版混乱的文字

Image
Image

运行环境

  1. 固件型号

  2. OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.097.68136~9c86e03

  3. 运营商

  4. 联通

  5. smartdns来源以及版本

  6. https://github.com/pymumu/smartdns/releases/tag/Release46.1

  7. 涉及的配置(注意去除个人相关信息)
    OpenWrt,只装了upnp和OpenWrt,拨号上网

重现步骤

  1. 上游DNS配置。

config server
option enabled '1'
option name 'Ali DNS (IPv4) 1'
option ip '223.5.5.5'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'Ali DNS (IPv4) 2'
option ip '223.6.6.6'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '1'
option name 'Ali DNS (IPv6) 1'
option ip '2400:3200::1'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'Ali DNS (IPv6) 2'
option ip '2400:3200:baba::1'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'Ali DNS (DoT)'
option ip 'dns.alidns.com'
option port '853'
option type 'tls'
option server_group 'china'

config server
option enabled '1'
option name 'Ali DNS (DoH)'
option ip 'https://dns.alidns.com/dns-query'
option type 'https'
option server_group 'china'

config server
option enabled '1'
option name 'Baidu DNS (IPv4)'
option ip '180.76.76.76'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'Baidu DNS (IPv6)'
option ip '2400:da00::6666'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '1'
option name 'DNSPod Public DNS+ (IPv4) 1'
option ip '119.29.29.29'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'DNSPod Public DNS+ (IPv4) 2'
option ip '182.254.116.116'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '1'
option name 'DNSPod Public DNS+ (IPv6)'
option ip '2402:4e00::'
option port '53'
option type 'udp'
option server_group 'china'

config server
option enabled '0'
option name 'DNSPod Public DNS+ (DoT)'
option ip 'dot.pub'
option port '853'
option type 'tls'
option server_group 'china'

config server
option enabled '1'
option name 'DNSPod Public DNS+ (DoH)'
option ip 'https://doh.pub/dns-query'
option type 'https'
option server_group 'china'

config server
option enabled '1'
option name 'IIJ Public DNS (DoH)'
option ip 'https://public.dns.iij.jp/dns-query'
option type 'https'
option server_group 'foreign'

config server
option enabled '1'
option name 'Cisco OpenDNS Standard (DoH)'
option ip 'https://doh.opendns.com/dns-query'
option type 'https'
option server_group 'foreign'

config server
option enabled '1'
option name 'DNS.SB (DoH) (Global CDN)'
option ip 'https://doh.dns.sb/dns-query'
option type 'https'
option server_group 'foreign'

其他的配置都是默认,也没有分流配置

  1. 访问的域名。
    https://www.microsoft.com/zh-cn/edge/download
    https://developer.microsoft.com/zh-cn/microsoft-edge/webview2

信息收集

  1. 将/var/log/smrtdns.log日志作为附件上传(注意去除个人相关信息)。
  2. 如进程异常,请将coredump功能开启,上传coredump信息文件,同时上传配套的smartdns进程文件。
    在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
    coredump文件在/tmp目录下

smartdns.log

@wyjtm
Copy link
Author

wyjtm commented Apr 12, 2025

关掉smrtdns,刷新网页就能正常显示了

OpenWrt固件是在官网用默认编译配置里加上了zh-cn中文包在线自动编译的

@pymumu
Copy link
Owner

pymumu commented Apr 12, 2025

先检查你的配置把,可能你的配置,把某些域名阻止了。

@wyjtm
Copy link
Author

wyjtm commented Apr 12, 2025

先检查你的配置把,可能你的配置,把某些域名阻止了。

我重置了路由器重新安装smrtdns还是这样

smartdns.txt 配置文件

@PikuZheng
Copy link
Contributor

建议检查接口mtu
下层有小米路由器吗

@wyjtm
Copy link
Author

wyjtm commented Apr 12, 2025

建议检查接口mtu 下层有小米路由器吗

直接有线接的电脑,目前发现只有微软这两个网页出现问题

mtu看了下 v4是1500 v6是1492

@PikuZheng
Copy link
Contributor

用chrome或firefox按f12打开调试,点network标签然后打开或刷新这个microft的页面。观察下面哪个页面连接失败了?
可以使用过滤器过滤status-code不是200的

Image

鼠标移到name上的项目悬停可以看到具体链接是哪个域名

Image

@wyjtm
Copy link
Author

wyjtm commented Apr 12, 2025

用chrome或firefox按f12打开调试,点network标签然后打开或刷新这个microft的页面。观察下面哪个页面连接失败了? 可以使用过滤器过滤status-code不是200的

Image

鼠标移到name上的项目悬停可以看到具体链接是哪个域名

Image

wcpstatic.microsoft.com
edgestatic.azureedge.net
都是这两个域名的东西
用status-code:0搜到都是些js,svg,png,webp之类的
开启smrtdns的情况下用全局代理打开这两个网站能加载完整,或者关闭smrtdns用本地dns也能加载完整

我把本地dns加到smrtdns里,网页能加载出来了,但是图片全是×

更新,本地dns加到smrtdns里,清了下浏览器缓存重启浏览器打开网页,也成了和最初一样了

edgecdn-embza6g8cacagcbn.z01.azurefd.net

还多了个后缀是azurefd.net的,前缀都不一样的各种域名的css加载失败

@PikuZheng
Copy link
Contributor

以下是我的猜测:

用国内dns,走ipv6直连了,通
用国外dns,走ipv4绕墙了,通
用国外dns,走ipv4直连了,不通

总之这还是与域名和策略有关的问题

@wyjtm
Copy link
Author

wyjtm commented Apr 12, 2025

以下是我的猜测:

用国内dns,走ipv6直连了,通 用国外dns,走ipv4绕墙了,通 用国外dns,走ipv4直连了,不通

总之这还是与域名和策略有关的问题

这个该怎么改?
现在也没有弄域名策略的配置

@PikuZheng
Copy link
Contributor

没策略,我猜测的就不对

双栈IP优选 取消勾选试试

@wyjtm
Copy link
Author

wyjtm commented Apr 13, 2025

没策略,我猜测的就不对

双栈IP优选 取消勾选试试

好像找到问题了?
smrtdns和24.10.0版固件的upnp冲突,只要有工具走upnp网页就会出错

@wyjtm
Copy link
Author

wyjtm commented Apr 13, 2025

没策略,我猜测的就不对

双栈IP优选 取消勾选试试

不装upnp好像也不行? 单独装smrtdns刚开始还行过一会用无痕模式再打开就又成那样了

24版上双栈IP优选 取消勾选 重启路由器 还是那样

现在换成op23.5版了,看起来一切正常了,估计是和24版不兼容?

@zhengqwe
Copy link

zhengqwe commented Apr 13, 2025

用chrome或firefox按f12打开调试,点network标签然后打开或刷新这个microft的页面。观察下面哪个页面连接失败了? 可以使用过滤器过滤status-code不是200的
Image
鼠标移到name上的项目悬停可以看到具体链接是哪个域名
Image

wcpstatic.microsoft.com edgestatic.azureedge.net 都是这两个域名的东西 用status-code:0搜到都是些js,svg,png,webp之类的 开启smrtdns的情况下用全局代理打开这两个网站能加载完整,或者关闭smrtdns用本地dns也能加载完整

我把本地dns加到smrtdns里,网页能加载出来了,但是图片全是×

更新,本地dns加到smrtdns里,清了下浏览器缓存重启浏览器打开网页,也成了和最初一样了

edgecdn-embza6g8cacagcbn.z01.azurefd.net

还多了个后缀是azurefd.net的,前缀都不一样的各种域名的css加载失败

用curl请求这几个地址试试,例如curl https://wcpstatic.microsoft.com -v,看看卡在什么地方
或者进浏览器的flags里把这两项禁用了试试

Image

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

4 participants