lnx 发表于 2025-5-18 17:07:17

请教一下sing-box域名分流配置的问题

sing-box配置路由规则:根据域名分流,如果访问一个域名:<br />
ngmapi.nexon.com (CNAME 到 a9b35a471a558b1b3.awsglobalaccelerator.com)<br />
<br />
openwrt日志:<br /><div class="blockcode"><div id="code_Pwl"><ol><li>May 18 16:26:56 dnsmasq: 110 192.168.1.118/61121 query ngmapi.nexon.com from 192.168.1.118<br /><li>May 18 16:26:56 dnsmasq: 110 192.168.1.118/61121 forwarded ngmapi.nexon.com to 127.0.0.1#5353<br /><li>May 18 16:26:56 dnsmasq: 110 192.168.1.118/61121 reply ngmapi.nexon.com is &lt;CNAME&gt;<br /><li>May 18 16:26:56 dnsmasq: 110 192.168.1.118/61121 reply a9b35a471a558b1b3.awsglobalaccelerator.com is 76.223.33.156<br /><li>May 18 16:26:56 dnsmasq: 110 192.168.1.118/61121 reply a9b35a471a558b1b3.awsglobalaccelerator.com is 13.248.160.194</ol></div><em onclick="copycode($('code_Pwl'));">复制代码</em></div><br />
<br />
分流规则只配置了.nexon.com域名后缀走代理,<br /><div class="blockcode"><div id="code_oBW"><ol><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&quot;domain_suffix&quot;: [<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&quot;.nexon.com&quot;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;]</ol></div><em onclick="copycode($('code_oBW'));">复制代码</em></div><br />
那么能自动匹配CNAME的地址也走代理吗?<br />
<br />
还是要把cname也写在路由规则里?<br />
<br /><div class="blockcode"><div id="code_Jza"><ol><li>&quot;domain&quot;: [&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br /><li>&nbsp; &nbsp;&nbsp;&nbsp;&quot;a9b35a471a558b1b3.awsglobalaccelerator.com&quot;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;]</ol></div><em onclick="copycode($('code_Jza'));">复制代码</em></div><br />
<br />
<br />

NetMan 发表于 2025-5-18 17:32:12

默认是通过嗅探sni和host来分流的,这些都是原始域名ngmapi.nexon.com,不用考虑cname

gdanmac 发表于 2025-5-18 17:44:49

sing-box域名分流配置 ,要自己设 头都大?

HOH 发表于 2025-5-18 17:46:46

想要建议?我的建议是不用singbox

lnx 发表于 2025-5-18 18:24:30

<div class="quote"><blockquote><font size="2"><a href="https://hostloc.com/forum.php?mod=redirect&goto=findpost&pid=16383064&ptid=1410140" target="_blank"><font color="#999999">gdanmac 发表于 2025-5-18 17:44</font></a></font><br />
sing-box域名分流配置 ,要自己设 头都大?</blockquote></div><br />
路由装完系统硬盘太小了,就剩余23MiB,装不了 openclash homeproxy。。。这些面板,只能装个核心,再手动写个配置文件。
页: [1]
查看完整版本: 请教一下sing-box域名分流配置的问题