linux:adguardhome:config
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版 | |||
| linux:adguardhome:config [2025/12/22 21:56] – packingbox | linux:adguardhome:config [2025/12/22 21:57] (当前版本) – packingbox | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== 未成熟方案-极简国内外dns分流# | ||
| + | |||
| + | 前情提要:基于xray+tp透明代理+nft,\\ 不在gfwlist内的域名使用国内dns,其它全部使用国外dns且ipv4优先 | ||
| + | |||
| + | 前情提要:基于xray+tp透明代理+nft, | ||
| + | |||
| + | 不在gfwlist内的域名使用国内dns,其它全部使用国外dns且ipv4优先。 | ||
| + | |||
| + | 需要的文件: | ||
| + | |||
| + | [" | ||
| + | |||
| + | [" | ||
| + | |||
| + | [" | ||
| + | |||
| + | <code -> | ||
| + | log: | ||
| + | level: error | ||
| + | |||
| + | plugins: | ||
| + | - tag: cache | ||
| + | type: cache | ||
| + | args: | ||
| + | size: 2048 | ||
| + | lazy_cache_ttl: | ||
| + | |||
| + | - tag: forward_local | ||
| + | type: forward | ||
| + | args: | ||
| + | concurrent: 2 | ||
| + | upstreams: | ||
| + | - addr: " | ||
| + | dial_addr: " | ||
| + | enable_pipeline: | ||
| + | - addr: " | ||
| + | dial_addr: " | ||
| + | enable_pipeline: | ||
| + | |||
| + | - tag: forward_remote | ||
| + | type: forward | ||
| + | args: | ||
| + | concurrent: 2 | ||
| + | upstreams: | ||
| + | - addr: " | ||
| + | dial_addr: " | ||
| + | enable_pipeline: | ||
| + | - addr: " | ||
| + | dial_addr: " | ||
| + | enable_pipeline: | ||
| + | |||
| + | - tag: gfw_list # 代理域名 | ||
| + | type: domain_set | ||
| + | args: | ||
| + | files: | ||
| + | - / | ||
| + | - / | ||
| + | |||
| + | - tag: ad_list # 广告域名 | ||
| + | type: domain_set | ||
| + | args: | ||
| + | files: | ||
| + | - / | ||
| + | |||
| + | - tag: main_sequence | ||
| + | type: sequence | ||
| + | args: | ||
| + | - matches: qtype 12 65 | ||
| + | exec: reject 0 | ||
| + | - matches: qname $ad_list | ||
| + | exec: reject 3 | ||
| + | |||
| + | - exec: $cache | ||
| + | - matches: has_resp | ||
| + | exec: accept | ||
| + | |||
| + | - matches: " | ||
| + | exec: $forward_local | ||
| + | - matches: has_resp | ||
| + | exec: accept | ||
| + | |||
| + | - exec: prefer_ipv4 | ||
| + | - exec: $forward_remote | ||
| + | - matches: has_resp | ||
| + | exec: accept | ||
| + | |||
| + | - tag: udp_server | ||
| + | type: udp_server | ||
| + | args: | ||
| + | entry: main_sequence | ||
| + | listen: :53 | ||
| + | |||
| + | - tag: tcp_server | ||
| + | type: tcp_server | ||
| + | args: | ||
| + | entry: main_sequence | ||
| + | listen: :53 | ||
| + | </ | ||
| + | |||
| + | 参考链接:[[https:// | ||
| + | |||
linux/adguardhome/config.txt · 最后更改: 由 packingbox
