pi-hole_使用pi-hole和便宜的Raspberry Pi在DNS级别上阻止广告进入您的房子之前

pi-hole

pi-hole

image

Lots of folks ask me about Raspberry Pis. How many I have, what I use them for. At last count there's at least 22 Raspberry Pis in use in our house.

很多人问我关于树莓派。 我有多少,我用它们做什么。 最后算一下,我们家至少有22台Raspberry Pi。

A Pi-hole is a Raspbery Pi appliance that takes the form of an DNS blocker at the network level. You image a Pi, set up your network to use that Pi as a DNS server and maybe white-list a few sites when things don't work.

PiKong是Raspbery Pi设备,在网络级别采用DNS阻止程序的形式。 您对Pi进行映像,将网络设置为将该Pi用作DNS服务器,并在无法正常工作时将一些站点列入白名单。

I was initially skeptical, but I'm giving it a try. It doesn't process all network traffic, it's a DNS hop on the way out that intercepts DNS requests for known problematic sites and serves back nothing.

最初我对此表示怀疑,但现在尝试一下。 它不会处理所有网络流量,它是途中的DNS跃点,可拦截对已知问题站点的DNS请求,并且不提供任何服务。

Installation is trivial if you just run unread and untrusted code from the 'net ;)

如果您只是从'net;)运行未读和不受信任的代码,则安装很简单。

curl -sSL https://install.pi-hole.net | bash

Otherwise, follow their instructions and download the installer, study it, and run it.

否则,请遵循他们的指示并下载安装程序,对其进行研究并运行

I put my pi-hole installation on the metal, but there's also a very nice Docker Pi-hole setup if you prefer that. You can even go further, if, like me, you have Synology NAS which can also run Docker, which can in turn run a Pi-hole.

我将pi-hole安装在金属上,但是如果您愿意的话,还有一个非常好的Docker Pi-hole设置。 如果像我一样,如果您拥有也可以运行Docker的Synology NAS ,那么它甚至可以运行Pi-hole,您甚至可以走得更远。

Within the admin interface you can tail the logs for the entire network, which is also amazing to see. You think you know what's talking to the internet from your house - you don't. Everything is logged and listed. After installing the Pi-hole roughly 18% of the DNS queries heading out of my house were blocked. At one point over 23% were blocked. Oy.

在管理界面中,您可以跟踪整个网络的日志,这也很令人惊讶。 您认为自己知道从家里到互联网的谈话内容,而您却不知道。 一切都记录并列出。 安装完Pi漏洞后,大约有18%的DNS查询从我家出来。 一度超过23%被阻止。

NOTE: If you're using an Amplifi HD or any "clever" router, you'll want to change the setting "Bypass DNS cache" otherwise the Amplifi will still remain the DNS lookup of choice on your network. This setting will also confuse the Pi-hole and you'll end up with just one "client" of the Pi-hole - the router itself.

注意:如果您使用Amplifi HD或任何“智能”路由器,则需要更改设置“绕过DNS缓存”,否则Amplifi仍将是您网络上首选的DNS查找。 此设置还会混淆PiKong,您最终只会得到PiKong的一个“客户端”,即路由器本身。

For me it's less about advertising - especially on small blogs or news sites I want to support - it's about just obnoxious tracking cookies and JavaScript. I'm going to keep using Pi-hole for a few months and see how it goes. Do be aware that some things WILL break. Could be a kid's iPhone free-to-play game that won't work unless it can download an add, could be your company's VPN. You'll need to log into http://pi.hole/admin (make sure you save your password when you first install, and you can only change it at the SSH command line with "pihole -a -p") and sometimes disable it for a few minutes to test, then whitelist certain domains. I suspect after a few weeks I'll have it nicely dialed in.

对我来说,它与广告无关,尤其是在我要支持的小型博客或新闻网站上,它只是关于令人讨厌的跟踪cookie和JavaScript。 我将继续使用Pi-hole几个月,看看效果如何。 请注意,有些事情会中断。 可能是一个孩子的iPhone免费游戏,除非可以下载附件,否则它将无法正常工作,可能是您公司的VPN。 您需要登录http://pi.hole/admin (确保在首次安装时保存密码,并且只能在SSH命令行中使用“ pihole -a -p”更改密码),有时将其禁用几分钟以进行测试,然后将某些域列入白名单。 我怀疑几周后我会拨好电话。

翻译自: https://www.hanselman.com/blog/blocking-ads-before-they-enter-your-house-at-the-dns-level-with-pihole-and-a-cheap-raspberry-pi

pi-hole

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: pi-odbc_2016-r2_.exe是一个文件名,具体来说是一个用于安装ODBC驱动程序的可执行文件。ODBC是一种开放式数据库连接标准,允许应用程序与各种类型的数据库进行通信。这个特定的文件名中的"pi"可能指的是某个特定的数据库或数据库软件产品。"odbc_2016-r2_"表示这个文件是2016年第2个发布版本的ODBC驱动程序。".exe"指明这是一个可执行文件,可以在Windows操作系统上运行。 如果你想安装这个文件,你可以双击运行它,然后按照安装向导的指示进行操作。安装过程可能需要管理员权限或特定的系统要求。安装完成后,你的计算机将具备通过ODBC接口与特定类型的数据库进行连接和通信的能力。 请注意,这只是对文件名的一般解释,具体情况可能会因环境和软件产品而异。如果你需要更详细的信息或有其他问题,请提供更多背景信息。 ### 回答2: pi-odbc_2016-r2_.exe是一个文件的名称,这是一个Windows平台上的ODBC驱动程序安装包。ODBC(Open Database Connectivity)是一种标准的数据库访问接口,在Windows操作系统中起着重要的作用。 pi-odbc_2016-r2_.exe文件是用来安装ODBC驱动程序的可执行文件。通过安装该驱动程序,用户可以将电脑与各种数据库系统连接起来,并实现对数据库的访问和操作。这个驱动程序是针对特定版本的ODBC标准开发的,这里的“2016-r2”表示该驱动程序是针对2016年第二个发布的版本进行开发的。 pi-odbc_2016-r2_.exe文件可以通过运行该文件来开始安装过程。安装过程中会提示用户选择安装路径和相关配置选项。一般来说,用户需要根据自己的具体需求进行选择和配置。安装完成后,用户就可以在计算机上使用ODBC接口连接各种数据库,并进行数据的读取、写入和管理等操作。 总而言之,pi-odbc_2016-r2_.exe是一个用于安装ODBC驱动程序的可执行文件,它可以实现计算机与各种数据库之间的连接和数据交互。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值