搭建属于你自己的私人DNS及广告过滤服务---AdGuardHome(也可以用我免费提供的)

本文阅读 3 分钟

AdGuard Home 是一款全网广告拦截与反跟踪软件。在您将其安装完毕后,它将保护您所有家用设备,同时您不再需要安装任何客户端软件。随着物联网与连接设备的兴起,掌控您自己的整个网络环境变得越来越重要。
我免费提供的dns服务,搭建于阿里云新加坡,国内解析时间大概平均在60ms左右,并已过滤和屏蔽大多广告。

161.117.49.61 (如果不想自己安装,也可以暂时使用我阿里云的)
服务器续费1年,到期不再提供,请自行搭建。
你可以使用甲骨文提供的免费云服务器:
甲骨文注册及使用教程
https://92km.net/archives/oracle-cloud-free.html

请输入图片描述

简介

官网地址:https://adguard.com/adguard-home.html
简单点说AdGuard Home就是一个公共DNS服务,如Google的公共DNS8.8.8.8,和DNSmasq一样AdGuard Home是开源的,可以自行搭建安装后在客户端配置使用。
AdGuard Home使用Golang开发,编译好了各大平台的二进制文件,安装非常简单,这里以CentOS 7为例,其它系统可参考官方帮助文档。

AdGuard Home主要功能

  • 拦截随处可见的广告
  • 注重隐私保护
  • 家庭保护模式
  • 自定义过滤

项目GitHub地址:https://github.com/AdguardTeam/AdGuardHome

自己安装

安装

二进制安装:

下载AdGuard Home 以centos7为例,其他cpu以及macos或者windows系统请在github自行查询,下载

wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.101.0/AdGuardHome_linux_amd64.tar.gz
#解压
tar -zxvf AdGuardHome_linux_amd64.tar.gz
#进入AdGuardHome目录
cd AdGuardHome
chmod +x AdGuardHome && ./AdGuardHome

安装后,我们ip:3000即可初始化,设置帐号密码

Docker安装:

    iptables -I INPUT -p tcp --dport 3000 -j ACCEPT iptables -I INPUT -p
    tcp --dport 3000 -j ACCEPT iptables-save docker run --name adguardhome
    docker run --name adguardhome -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf -p 53:53/tcp -p 53:53/udp -p 67:67/udp -p 68:68/tcp -p 68:68/udp -p 80:80/tcp -p 443:443/tcp -p 853:853/tcp -p 3000:3000/tcp -d adguard/adguardhome

安装为服务

使用命令

./AdGuardHome -s install

安装为服务,就能使用自带的systemctl控制命令了。

    #启动
    systemctl start AdGuardHome
    #开机自启
    systemctl enable AdGuardHome
    #重启
    systemctl restart AdGuardHome
    #停止
    systemctl stop AdGuardHome

设置上游DNS

AdGuard Home默认使用Cloudflare DNS作为上游服务器,如果您服务器在国内可能请求上游DNS延迟比较高,在后台 - 设定 - 可以设置为国内的DNS,如腾讯的119.29.29.29,但坏处是不支持DNS over TLS
请输入图片描述

本文来自投稿,不代表本站立场,如若转载,请注明出处:
Oracle Cloud(甲骨文)系统手动更换内核安装BBR
« 上一篇 04-20
name.com 免费域名
下一篇 » 04-23

发表评论

发表评论

热门文章

标签TAG

热评文章

最近回复

Monica abota
2天前

— Monica – Your Ultimate AI Assistant for Every Task!
Looking for a way to boost productivity and streamline your daily tasks? Monica.im is your all-in-one AI assistant, integrating top-tier AI models like OpenAI o1-preview, GPT-4o, Claude 3.5, and Gemini 1.5. It helps you with communication, research, writing, and even coding—all accessible through a browser extension for Chrome and Edge, as well as mobile apps for Android and iOS. (monica.im)

— Key Features of Monica (https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi

AI Chat: Interact with leading AI models in one place.
AI Summarizer: Save up to 90% of your time by instantly summarizing web pages and videos.
AI Writer: Generate or enhance any content 10x faster, from short paragraphs to full-length articles.
AI Search: A powerful search engine with real-time access to the latest information.
AI Translator: Translate entire web pages for seamless bilingual reading.
AI Art Generator: Turn your ideas into stunning images effortlessly.

— Why Choose Monica?

Available Across All Platforms: Use Monica on browsers, desktops, or mobile devices.
Intelligent Toolbar: Quickly explain, translate, or summarize any highlighted text.
Writing Assistant: Create, rewrite, or improve text content on any webpage.
Enhanced Web Experience: Get AI-powered answers alongside search results, summarize YouTube videos, and extract key insights with timestamps.
— Start Boosting Your Productivity Today with Monica https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi)

— Install for Free: https://monica.im/invitation-affiliate?ref=ztk2ymi&ref_aff=ztk2ymi

自建机场---快捷部署xboard面板,及hysteria2并对接