全球主机交流论坛

标题: 请教一下sing-box域名分流配置的问题 [打印本页]

作者: lnx    时间: 2025-5-18 17:07
标题: 请教一下sing-box域名分流配置的问题
sing-box配置路由规则:根据域名分流,如果访问一个域名:
ngmapi.nexon.com (CNAME 到 a9b35a471a558b1b3.awsglobalaccelerator.com)

openwrt日志:
  1. May 18 16:26:56 dnsmasq[1]: 110 192.168.1.118/61121 query[A] ngmapi.nexon.com from 192.168.1.118
  2. May 18 16:26:56 dnsmasq[1]: 110 192.168.1.118/61121 forwarded ngmapi.nexon.com to 127.0.0.1#5353
  3. May 18 16:26:56 dnsmasq[1]: 110 192.168.1.118/61121 reply ngmapi.nexon.com is <CNAME>
  4. May 18 16:26:56 dnsmasq[1]: 110 192.168.1.118/61121 reply a9b35a471a558b1b3.awsglobalaccelerator.com is 76.223.33.156
  5. May 18 16:26:56 dnsmasq[1]: 110 192.168.1.118/61121 reply a9b35a471a558b1b3.awsglobalaccelerator.com is 13.248.160.194
复制代码


分流规则只配置了.nexon.com域名后缀走代理,
  1.          
  2.            "domain_suffix": [
  3.               ".nexon.com"
  4.             ]
复制代码

那么能自动匹配CNAME的地址也走代理吗?

还是要把cname也写在路由规则里?

  1. "domain": [        
  2.      "a9b35a471a558b1b3.awsglobalaccelerator.com"
  3.             ]
复制代码




作者: NetMan    时间: 2025-5-18 17:32
默认是通过嗅探sni和host来分流的,这些都是原始域名ngmapi.nexon.com,不用考虑cname
作者: gdanmac    时间: 2025-5-18 17:44
sing-box域名分流配置 ,要自己设 头都大?
作者: HOH    时间: 2025-5-18 17:46
想要建议?我的建议是不用singbox
作者: lnx    时间: 2025-5-18 18:24
gdanmac 发表于 2025-5-18 17:44
sing-box域名分流配置 ,要自己设 头都大?

路由装完系统硬盘太小了,就剩余23MiB,装不了 openclash homeproxy。。。这些面板,只能装个核心,再手动写个配置文件。




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4