找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5107|回复: 12

也谈谈adguardhome + smartdns + 不可描述配合设置

[复制链接]
发表于 2020-6-30 15:04 | 显示全部楼层 |阅读模式
本帖最后由 gswangmd 于 2020-7-2 06:57 编辑

固件是自行编译,主要做旁路由器使用。
1: smartdns设置(只集成了smartdns主程序,未集成luci设置界面):
  第一服务器端口:6053, 第二服务器端口:6553, 无重定向。
    /etc/smatdns/custom.conf配置:

    speed-check-mode tcp:80,ping

        # -----------------------------------------------------------------
        # 国内DNS解析服务器

        server 119.29.29.29
        server 114.114.114.114
        server 180.76.76.76
        server 223.5.5.5
        server 61.178.0.93
        server 202.100.64.68


        #------------------------------------------------------------------
        # 国外DNS解析服务器
        server-tcp 9.9.9.9 -group foreign -exclude-default-group
        server-tcp 8.8.8.8 -group foreign -exclude-default-group
        server-tcp 1.0.0.1 -group foreign -exclude-default-group

        server-tls 9.9.9.9 -group foreign -exclude-default-group
        server-tls 8.8.8.8 -group foreign -exclude-default-group
        server-tls 1.0.0.1 -group foreign -exclude-default-group

        server-https https://dns.rubyfish.cn/dns-query -group foreign -exclude-default-group
        server-https https://dns.adguard.com/dns-query -group foreign -exclude-default-group
        server-https https://dns.cloudflare.com/dns-query -group foreign -exclude-default-group

        #------------------------------------------------------------------

        #------------------------------------------------------------------
        # 绑定7913,供P代理使用
        #
        bind :7913 -group foreign

        # 绑定5335, 供S代理使用
        #
        bind :5335 -group foreign
        #------------------------------------------------------------------

2. Adguardhome主要设置:
    做为DNSMASQ的上游服务器使用

      AD内的上游DNS服务器:
             127.0.0.1:6053
             127.0.0.1:6553
             并行查询
       AD内的Bootstrap DNS 服务器:
             127.0.0.1:6053
      若干广告过滤规则。


2. 不可描述的设置使用:
     P插件:
       国内解析:默认
       国外解析:使用本机7913端口解析国外域名
     S插件:
       DNS解析方式:使用本机5335端口。
    P/S插件,绕过国内或GFW模式随你便。

2020-07-02: 补发一张效果图。






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-6-30 15:50 | 显示全部楼层
楼主使用效果咋样呢

点评

解析速度 adguardhome 统计数 30-45之间, P/S稳定不断流。  详情 回复 发表于 2020-6-30 16:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-6-30 16:00 | 显示全部楼层
领袖 发表于 2020-6-30 15:50
楼主使用效果咋样呢

解析速度 adguardhome 统计数 30-45之间, P/S稳定不断流。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-30 18:43 | 显示全部楼层
给你点赞评论
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-30 21:08 | 显示全部楼层
本帖最后由 serino 于 2020-7-15 20:19 编辑

P插件:
国外解析:使用本机7913端口解析国外域名

这里总觉得怪怪的,总觉得走国外就没AdGuardHome的效果了



我个人觉得目前ADH没有第二DNS的情况下
自己编译一个能并存的AdGuardHome,或者多安装一个Docker版的ADH
两个ADH分别设置上游DNS和走国内国外,可能是最简单的结构
——————————————

我写了篇使用两个 AdGuardHome 的帖子,
这样就可以设置两组 AdGuardHome 分别解析国内国外了,不需要什么 SmartDNS + AdGuardHome 又上游又下游的
https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4043218

点评

我在docker下起adh的时候提示端口冲突。。。所以好像不能两个adh并存  详情 回复 发表于 2020-7-12 20:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-6-30 21:35 来自手机 | 显示全部楼层
哎 自从用了ad 网络一直时不时出点问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-1 19:34 | 显示全部楼层
我的设置跟楼主差不多。
但是有几点想讨教一下
1:ADH上游服务器为什么不直接用smartdns分组2的默认端口5335,而是要重新设置端口,乳酸菌饮料使用本机5335也不受影响,难道是为了切换怕死我用?
2:Bootstrap DNS 服务器必须用国内DNS吗?用国外DSN有何区别?我用的8.8.8.8 1.1.1.1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-11 20:55 | 显示全部楼层
楼主能详细说明一下,ADH设置的服务器理由吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-7-11 22:49 | 显示全部楼层
本帖最后由 gswangmd 于 2020-7-11 23:00 编辑

再贴一组自定义设置:
1: /etc/smartdns/custom.conf:

speed-check-mode tcp:80,ping

# -----------------------------------------------------------------
# 国内DNS解析服务器

server 119.29.29.29
server 114.114.114.114
server 180.76.76.76
server 223.5.5.5
server 61.178.0.93
server 202.100.64.68

server-tls dns.rubyfish.cn
server-tls dns.233py.com
server-tls 115.159.131.230 -host-name dns.rubyfish.cn

server-https https://202.141.178.13/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org
server-https https://202.38.93.153/resolve -host-name neatdns.ustclug.org -http-host neatdns.ustclug.org
server-https https://neatdns.ustclug.org/resolve
server-https https://115.159.131.230/resolve -host-name dns.rubyfish.cn -http-host dns.rubyfish.cn
server-https https://45.77.180.10/resolve -host-name dns.containerpi.com -http-host dns.containerpi.com
server-https https://dns.containerpi.com/dns-query
server-https https://210.17.9.228/dns-query -host-name dns.twnic.tw -http-host dns.twnic.tw
server-https https://dns.twnic.tw/dns-query
server-https https://i.233py.com/dns-query

#----------------------------------------------------------------------------------------------------------------
# 国外DNS解析服务器

server-tcp 9.9.9.9 -group foreign_dns -exclude-default-group
server-tcp 8.8.8.8 -group foreign_dns -exclude-default-group
server-tcp 1.0.0.1 -group foreign_dns -exclude-default-group

server-tls 8.8.8.8 -host-name dns.google -group foreign_dns -exclude-default-group
server-tls dns.google -group foreign_dns -exclude-default-group
server-tls 1.0.0.1 -host-name 1dot1dot1dot1.cloudflare-dns.com -group foreign_dns -exclude-default-group
server-tls 1dot1dot1dot1.cloudflare-dns.com -group foreign_dns -exclude-default-group

server-https https://9.9.9.9/dns-query -host-name dns9.quad9.net -http-host dns9.quad9.net -group foreign_dns -exclude-default-group
server-https https://dns9.quad9.net/dns-query -group foreign_dns -exclude-default-group
server-https https://1.0.0.1/dns-query -group foreign_dns -exclude-default-group
server-https https://cloudflare-dns.com/dns-query -group foreign_dns -exclude-default-group
server-https https://146.112.41.2/dns-query -host-name doh.opendns.com -http-host doh.opendns.com -group foreign_dns -exclude-default-group
server-https https://doh.opendns.com/dns-query -group foreign_dns -exclude-default-group

#------------------------------------------------------------------
# 绑定5335, 供乳酸菌饮料 plus使用
#
bind :5335 -group foreign_dns
#------------------------------------------------------------------

2: /etc/config/smartdns:
config smartdns
        option enabled '1'
        option server_name 'smartdns'
        option port '6053'
        option tcp_server '1'
        option ipv6_server '1'
        option redirect 'none'
        option seconddns_tcp_server '1'
        option seconddns_no_rule_addr '0'
        option seconddns_no_rule_nameserver '0'
        option seconddns_no_rule_ipset '0'
        option seconddns_no_rule_soa '0'
        option coredump '0'
        option seconddns_enabled '1'
        option seconddns_port '7913'
        option seconddns_server_group 'foreign_dns'
        option seconddns_no_cache '1'
        option cache_size '20000'
        option rr_ttl '3600'
        option rr_ttl_min '60'
        option rr_ttl_max '86400'
        option seconddns_no_dualstack_selection '1'
        option force_aaaa_soa '1'
        option dualstack_ip_selection '1'
        option serve_expired '1'
        option prefetch_domain '1'
        option seconddns_no_speed_check '0'
        list old_redirect 'none'
        list old_port '6053'
        list old_enabled '1'
3: ADH 上游服务器:
   127.0.0.1:6053
   127.0.0.1:7913
Bootstrap DNS 服务器:
   9.9.9.10

上述参数设置奥妙自行琢磨!






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-7-12 20:36 来自手机 | 显示全部楼层
serino 发表于 2020-6-30 21:08
P插件:
国外解析:使用本机7913端口解析国外域名


我在docker下起adh的时候提示端口冲突。。。所以好像不能两个adh并存
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-22 18:32 | 显示全部楼层
DNS解析方式:使用本机5335端口。 你这个过滤不了国外广告啊,走的是smartdns,没走adguard
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-24 20:21 | 显示全部楼层
留名~~~~~~~~~~~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-8-24 21:39 来自手机 | 显示全部楼层
学习到了   
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 10:23

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表