诺甘农圆盘

参考资料收集库

用户工具

站点工具


linux:adguardhome:config

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
linux:adguardhome:config [2025/12/22 21:56] packingboxlinux:adguardhome:config [2025/12/22 21:57] (当前版本) packingbox
行 1: 行 1:
 +====== 未成熟方案-极简国内外dns分流#887 ======
 +
 +前情提要:基于xray+tp透明代理+nft,\\ 不在gfwlist内的域名使用国内dns,其它全部使用国外dns且ipv4优先
 +
 +前情提要:基于xray+tp透明代理+nft,
 +
 +不在gfwlist内的域名使用国内dns,其它全部使用国外dns且ipv4优先。
 +
 +需要的文件:
 +
 +["reject-list.txt"]="[[https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt]]"
 +
 +["proxy-list.txt"]="[[https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt]]"
 +
 +["gfw.txt"]="[[https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/gfw.txt]]"
 +
 +<code ->
 +log:
 +  level: error
 +
 +plugins:
 +  - tag: cache
 +    type: cache
 +    args:
 +      size: 2048
 +      lazy_cache_ttl: 86400
 +
 +  - tag: forward_local
 +    type: forward
 +    args:
 +      concurrent: 2
 +      upstreams:
 +        - addr: "tls://dot.pub"
 +          dial_addr: "120.53.53.53"
 +          enable_pipeline: true
 +        - addr: "tls://dns.alidns.com"
 +          dial_addr: "223.5.5.5"
 +          enable_pipeline: true
 +
 +  - tag: forward_remote
 +    type: forward
 +    args:
 +      concurrent: 2
 +      upstreams:
 +        - addr: "tls://dns.google"
 +          dial_addr: "8.8.8.8"
 +          enable_pipeline: true
 +        - addr: "tls://dns.google"
 +          dial_addr: "8.8.4.4"
 +          enable_pipeline: true
 +
 +  - tag: gfw_list # 代理域名
 +    type: domain_set
 +    args:
 +      files:
 +        - /usr/local/share/v2ray/proxy-list.txt
 +        - /usr/local/share/v2ray/gfw.txt
 +
 +  - tag: ad_list # 广告域名
 +    type: domain_set
 +    args:
 +      files:
 +        - /usr/local/share/v2ray/reject-list.txt
 +
 +  - 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: "!qname $gfw_list"
 +        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
 +</code>
 +
 +参考链接:[[https://github.com/IrineSistiana/mosdns/discussions/887]]
 +
  
linux/adguardhome/config.txt · 最后更改: packingbox