找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 123106|回复: 1626

记一篇smartdns+adguard home+passwall折腾日记

 火... [复制链接]
本帖最后由 椎名真白 于 2020-6-10 19:46 编辑

游客,如果您要查看本帖隐藏内容请回复


---------------------------------------------------------------------------------------
实验:
1:
安装AdGuard Home:


修改自定义设置:

  1. ratelimit: 0
  2.   blocked_response_ttl: 60
  3.   upstream_dns:
  4.   - 127.0.0.1:6053
复制代码


DNS封锁清单自己测试吧,看看那些好用



2:smartdns
第一组服务器 6053

第二组服务器 7053


上游服务器:



粘贴到自定义或者自己复制
  1. server 114.114.114.114
  2. server 114.114.115.115
  3. server 223.6.6.6
  4. server-tls 101.101.101.101   -group world
  5. server 119.29.29.29
  6. server-https https://1.1.1.1/dns-query  -group world
  7. server-https https://dns.google/dns-query  -group world
  8. server-https https://dns.twnic.tw/dns-query  -group world
复制代码



3:passwall--china-dns-ng
a:


b:(推荐)

4:lan



5:dnsmasq(检查)




---------------------------------------------------------------------------------------成果:
114DNS:
  1. root@Mashiro:/ovo# nslookup baidu.com 114.114.114.114
  2. Server:         114.114.114.114
  3. Address:        114.114.114.114#53

  4. Name:      baidu.com
  5. Address 1: 220.181.38.148
  6. Address 2: 39.156.69.79
  7. *** Can't find baidu.com: No answer
复制代码
ping:
  1. root@Mashiro:/ovo# ping 220.181.38.148
  2. PING 220.181.38.148 (220.181.38.148): 56 data bytes
  3. 64 bytes from 220.181.38.148: seq=0 ttl=50 time=22.051 ms
  4. 64 bytes from 220.181.38.148: seq=1 ttl=50 time=22.037 ms
  5. 64 bytes from 220.181.38.148: seq=2 ttl=50 time=22.172 ms
  6. 64 bytes from 220.181.38.148: seq=3 ttl=50 time=21.939 ms
  7. 64 bytes from 220.181.38.148: seq=4 ttl=50 time=21.930 ms
  8. ^C
  9. --- 220.181.38.148 ping statistics ---
  10. 5 packets transmitted, 5 packets received, 0% packet loss
  11. round-trip min/avg/max = 21.930/22.025/22.172 ms
  12. root@Mashiro:/ovo# ping 39.156.69.79
  13. PING 39.156.69.79 (39.156.69.79): 56 data bytes
  14. 64 bytes from 39.156.69.79: seq=0 ttl=48 time=31.541 ms
  15. 64 bytes from 39.156.69.79: seq=1 ttl=48 time=30.845 ms
  16. 64 bytes from 39.156.69.79: seq=2 ttl=48 time=30.891 ms
  17. 64 bytes from 39.156.69.79: seq=3 ttl=48 time=31.215 ms
  18. 64 bytes from 39.156.69.79: seq=4 ttl=48 time=31.792 ms
  19. 64 bytes from 39.156.69.79: seq=5 ttl=48 time=31.759 ms
  20. 64 bytes from 39.156.69.79: seq=6 ttl=48 time=31.237 ms
  21. 64 bytes from 39.156.69.79: seq=7 ttl=48 time=30.451 ms
  22. ^C
  23. --- 39.156.69.79 ping statistics ---
  24. 8 packets transmitted, 8 packets received, 0% packet loss
  25. round-trip min/avg/max = 30.451/31.216/31.792 ms
复制代码


my dns:
  1. root@Mashiro:/ovo# nslookup baidu.com 127.0.0.1#53
  2. Server:         127.0.0.1
  3. Address:        127.0.0.1#53

  4. Name:      baidu.com
  5. Address 1: 39.156.69.79
  6. *** Can't find baidu.com: No answer
复制代码
快了10ms


gxxgle非常快


------------------------------------------------------------------------------

dalao们帮我评个分吧,写教程不易









本帖子中包含更多资源

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

×

点评

你说的很对,我赞同你的说法。: 5.0
你说的很对,我赞同你的说法。: 5
哈哈,我之前也折腾这些,现在已经回归到默认了~~  发表于 2020-6-8 22:38

评分

参与人数 13恩山币 +15 收起 理由
22*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
cced*** + 1 2333
dear*** + 1 非常需要这种基础教程,非常感谢。
天天*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
hech*** + 1 呐,做人呢,最重要的就是开心
hc*** + 2 我手抖了下,加分变扣分了!
viru*** + 2 生活不易,相遇也不易,既然这样,让我们成为朋友一起面朝大海、花开花落……
lan*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
飞*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
時光*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
zmj*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
黑猫*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!
wshe*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
真的有用吗

点评

我觉得会影响速度  详情 回复 发表于 2020-11-5 11:03
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

记一篇smartdns+adguard home+passwall折腾
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看怎么折腾的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看  对比一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 椎名真白 于 2020-6-8 11:56 编辑

记录config

/etc/AdGuardHome.yaml
从第6行开始
  1. http_proxy: ""
  2. language: ""
  3. rlimit_nofile: 0
  4. debug_pprof: false
  5. web_session_ttl: 720
  6. dns:
  7.   bind_host: 0.0.0.0
  8.   port: 5553
  9.   statistics_interval: 1
  10.   querylog_enabled: true
  11.   querylog_interval: 1
  12.   querylog_size_memory: 1000
  13.   anonymize_client_ip: false
  14.   protection_enabled: true
  15.   blocking_mode: default
  16.   blocking_ipv4: ""
  17.   blocking_ipv6: ""
  18.   blocked_response_ttl: 60
  19.   parental_block_host: family-block.dns.adguard.com
  20.   safebrowsing_block_host: standard-block.dns.adguard.com
  21.   ratelimit: 0
  22.   ratelimit_whitelist: []
  23.   refuse_any: true
  24.   upstream_dns:
  25.   - 127.0.0.1:6053
  26.   bootstrap_dns:
  27.   - 114.114.114.114
  28.   - 149.112.112.10
  29.   - 2620:fe::10
  30.   - 2620:fe::fe:10
  31.   all_servers: false
  32.   fastest_addr: false
  33.   allowed_clients: []
  34.   disallowed_clients: []
  35.   blocked_hosts: []
  36.   cache_size: 4194304
  37.   cache_ttl_min: 0
  38.   cache_ttl_max: 0
  39.   bogus_nxdomain: []
  40.   aaaa_disabled: false
  41.   enable_dnssec: false
  42.   edns_client_subnet: false
  43.   filtering_enabled: true
  44.   filters_update_interval: 24
  45.   parental_enabled: false
  46.   safesearch_enabled: false
  47.   safebrowsing_enabled: false
  48.   safebrowsing_cache_size: 1048576
  49.   safesearch_cache_size: 1048576
  50.   parental_cache_size: 1048576
  51.   cache_time: 30
  52.   rewrites: []
  53.   blocked_services: []
  54. tls:
  55.   enabled: false
  56.   server_name: ""
  57.   force_https: false
  58.   port_https: 443
  59.   port_dns_over_tls: 853
  60.   allow_unencrypted_doh: false
  61.   strict_sni_check: false
  62.   certificate_chain: ""
  63.   private_key: ""
  64.   certificate_path: ""
  65.   private_key_path: ""
  66. filters:
  67. - enabled: true
  68.   url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
  69.   name: AdGuard Simplified Domain Names filter
  70.   id: 1
  71. - enabled: true
  72.   url: https://adaway.org/hosts.txt
  73.   name: AdAway
  74.   id: 2
  75. - enabled: true
  76.   url: https://www.malwaredomainlist.com/hostslist/hosts.txt
  77.   name: MalwareDomainList.com Hosts List
  78.   id: 4
  79. - enabled: false
  80.   url: https://gitee.com/privacy-protection-tools/anti-ad/raw/master/easylist.txt
  81.   name: anti-AD
  82.   id: 1591425677
  83. whitelist_filters: []
  84. user_rules: []
  85. dhcp:
  86.   enabled: false
  87.   interface_name: ""
  88.   gateway_ip: ""
  89.   subnet_mask: ""
  90.   range_start: ""
  91.   range_end: ""
  92.   lease_duration: 86400
  93.   icmp_timeout_msec: 1000
  94. clients: []
  95. log_file: ""
  96. verbose: false
  97. schema_version: 6
复制代码

/etc/config/smartdns

  1. config smartdns
  2.         option server_name 'smartdns'
  3.         option port '6053'
  4.         option tcp_server '1'
  5.         option ipv6_server '1'
  6.         option dualstack_ip_selection '1'
  7.         option prefetch_domain '1'
  8.         option redirect 'none'
  9.         option seconddns_port '7053'
  10.         option seconddns_tcp_server '1'
  11.         option seconddns_no_rule_addr '0'
  12.         option seconddns_no_rule_nameserver '0'
  13.         option seconddns_no_rule_ipset '0'
  14.         option seconddns_no_rule_soa '0'
  15.         option coredump '0'
  16.         option enabled '1'
  17.         option seconddns_enabled '1'
  18.         option seconddns_no_speed_check '1'
  19.         option seconddns_server_group 'world'
  20.         option seconddns_no_cache '1'
  21.         option seconddns_no_dualstack_selection '1'
  22.         option cache_size '10240'
  23.         option rr_ttl '600'
  24.         option rr_ttl_min '150'
  25.         option rr_ttl_max '600'
  26.         list old_redirect 'none'
  27.         list old_port '6053'
  28.         list old_enabled '1'

  29. config server
  30.         option enabled '1'
  31.         option type 'udp'
  32.         option name '114DNS'
  33.         option ip '114.114.114.114'

  34. config server
  35.         option enabled '1'
  36.         option type 'udp'
  37.         option ip '114.114.115.115'
  38.         option name '114DNS2'

  39. config server
  40.         option enabled '1'
  41.         option type 'udp'
  42.         option name 'AliDNS'
  43.         option ip '223.6.6.6'

  44. config server
  45.         option name 'googleDNS'
  46.         option ip '8.8.8.8'
  47.         option server_group 'world'
  48.         option blacklist_ip '0'
  49.         option type 'tls'
  50.         option enabled '0'

  51. config server
  52.         option name 'Cloudfare'
  53.         option ip '1.1.1.1'
  54.         option server_group 'world'
  55.         option blacklist_ip '0'
  56.         option type 'tls'
  57.         option enabled '0'

  58. config server
  59.         option name '101DNS'
  60.         option ip '101.101.101.101 '
  61.         option server_group 'world'
  62.         option blacklist_ip '0'
  63.         option type 'tls'
  64.         option enabled '1'

  65. config server
  66.         option enabled '1'
  67.         option type 'udp'
  68.         option name '腾讯'
  69.         option ip '119.29.29.29'

  70. config server
  71.         option name 'Cloudflare_https'
  72.         option ip 'https://1.1.1.1/dns-query'
  73.         option type 'https'
  74.         option server_group 'world'
  75.         option blacklist_ip '0'
  76.         option enabled '1'

  77. config server
  78.         option name 'googleDNS'
  79.         option ip 'https://dns.google/dns-query'
  80.         option type 'https'
  81.         option server_group 'world'
  82.         option blacklist_ip '0'
  83.         option enabled '1'

  84. config server
  85.         option name 'Quad 101'
  86.         option ip 'https://dns.twnic.tw/dns-query'
  87.         option type 'https'
  88.         option server_group 'world'
  89.         option blacklist_ip '0'
  90.         option enabled '1'

复制代码

/etc/config/dhcp

  1. config dnsmasq
  2.         option localise_queries '1'
  3.         option local '/lan/'
  4.         option domain 'lan'
  5.         option expandhosts '1'
  6.         option readethers '1'
  7.         option leasefile '/tmp/dhcp.leases'
  8.         option nonwildcard '1'
  9.         option localservice '1'
  10.         option port '53'
  11.         option boguspriv '0'
  12.         option rebind_protection '0'
  13.         list server '127.0.0.1#5553'
  14.         option noresolv '1'
复制代码

/etc/config/network
  1. config interface 'lan'
  2.         option type 'bridge'
  3.         option ifname 'eth0'
  4.         option proto 'static'
  5.         option ipaddr '10.0.0.1'
  6.         option netmask '255.255.255.0'
  7.         option ip6assign '60'
  8.         option dns '127.0.0.1'
复制代码




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

使用道具 举报

谢谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

强势围观~~~~~~~~~~~~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

不错 哪天无聊的时候去试试看
谢谢分享 论坛因你更精彩
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看学一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

前来学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报


看看学一下  去试试看
谢谢分享 论坛因你更精彩
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

进来观摩观摩
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 06:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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