找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9156|回复: 16

【视频分享第四波】去除dns污染 dns-over-tls了解一下,openwrt stubby

[复制链接]
发表于 2018-10-28 22:53 | 显示全部楼层 |阅读模式
本帖最后由 QQ66 于 2018-11-5 09:43 编辑

05.openwrt上安装和配置stubby dns-over-tls

参考


安装
  1. opkg update
  2. opkg install stubby
复制代码

配置文件
  1. #NOTE: See '/etc/stubby/stubby.yml.default' for original config file and descriptions

  2. resolution_type: GETDNS_RESOLUTION_STUB

  3. dns_transport_list:
  4.   - GETDNS_TRANSPORT_TLS

  5. tls_authentication: GETDNS_AUTHENTICATION_REQUIRED

  6. tls_query_padding_blocksize: 128

  7. edns_client_subnet_private : 0

  8. round_robin_upstreams: 0

  9. idle_timeout: 10000

  10. listen_addresses:
  11.   - 127.0.0.1@5453
  12.   -  0::1@5453

  13. upstream_recursive_servers:
  14. ### cloudflare
  15.   - address_data: 1.1.1.1
  16.     tls_auth_name: "cloudflare-dns.com"
  17.     tls_pubkey_pinset:
  18.       - digest: "sha256"
  19.         value: yioEpqeR4WtDwE9YxNVnCEkTxIjx6EEIwFSQW+lJsbc=
  20.   - address_data: 1.0.0.1
  21.     tls_auth_name: "cloudflare-dns.com"
  22.     tls_pubkey_pinset:
  23.       - digest: "sha256"
  24.         value: yioEpqeR4WtDwE9YxNVnCEkTxIjx6EEIwFSQW+lJsbc=
  25. ### Quad 9
  26.   - address_data: 9.9.9.10
  27.     tls_auth_name: "dns.quad9.net"
  28.     tls_pubkey_pinset:
  29.       - digest: "sha256"
  30.         value: G+ullr8exb9aHemu3vmI9Jwquuqe0DwnBdFHss8UfVw=
  31.   - address_data: 9.9.9.9
  32.     tls_auth_name: "dns.quad9.net"
  33.     tls_pubkey_pinset:
  34.       - digest: "sha256"
  35.         value: G+ullr8exb9aHemu3vmI9Jwquuqe0DwnBdFHss8UfVw=
  36.   - address_data: 149.112.112.112
  37.     tls_auth_name: "dns.quad9.net"
  38.     tls_pubkey_pinset:
  39.       - digest: "sha256"
  40.         value: G+ullr8exb9aHemu3vmI9Jwquuqe0DwnBdFHss8UfVw=
复制代码
说明
  • 默认配置无法查询;
  • 修改为以上配置,增加pinset;
  • round_robin_upstreams: 0,设为1会使轮询所有配置的服务器,应该设为0关闭,并且把延迟低的服务器放在前面,(前面的不可用才使用下一个dns服务器);
  • 推荐使用的cloudflare和quad9等公共dns服务器。

测试
  1. stubby -C /etc/stubby/stubby.yml -v7

  2. ## -C 为大写, -v7为debug模式,输出详细的log

  3. ding @127.0.0.1 -p 5453 medium.com
复制代码

修改dns转发
  1. 127.0.0.1#5453
复制代码

勾选忽略解析

✔ 忽略解析文件

访问dns污染的网站

一定要用https,一般只是能打开页面,视频、下载等等还是要挂代理。



视频链接:

YouTube短链接

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2018-10-28 22:56 | 显示全部楼层
我可能和dns杠上了,仅仅是为了学习,清除dns污染的工具有很多,挑一个自己喜欢的就好。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-28 22:58 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-28 23:40 | 显示全部楼层
RE: 【视频分享第四波】dns-over-tls了解一下,没有Android pie,还有openwrt stubby [修改]
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-29 19:58 来自手机 | 显示全部楼层
哇塞。还有这个,好
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-29 20:03 | 显示全部楼层
这个还是不错的,谢谢提供了!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-29 20:16 | 显示全部楼层
看看,谢谢发布分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-29 22:16 | 显示全部楼层
看一下怎么搞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-29 22:23 来自手机 | 显示全部楼层
stubby早就在pc用过,慢点
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-30 22:40 | 显示全部楼层
...........
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-15 09:51 | 显示全部楼层
这个要学一下,毕竟能遇到这问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-4 17:08 | 显示全部楼层
这个需要弄个ui 才好配置吧...

点评

luci之前学过一下,现在忘得差不多了,没有时间再捡起来,命令挺好的  详情 回复 发表于 2018-12-4 17:50
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-12-4 17:50 | 显示全部楼层
余留香 发表于 2018-12-4 17:08
这个需要弄个ui 才好配置吧...

luci之前学过一下,现在忘得差不多了,没有时间再捡起来,命令挺好的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-4 19:02 来自手机 | 显示全部楼层
国内基本用不上吧,直接一杆入洞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-7-16 13:31 | 显示全部楼层
推荐一个台湾的dns服务器,101.101.101.101,支持dot和doh。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-23 14:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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