PVE安装配置AdGuard Home

AdGuard Home项目是广告拦截器,该项目的原理是在DNS的域名解析的过程里拦截网页上的广告。自定义DNS不仅能够加快网页开启的速度,还能够提高浏览网页的安全性。而借助开源的AdGuard Home项目就能为自己搭建一个快速、安全的DNS。这样做的好处在于,节省了在浏览器上安装去广告插件和在手机、电脑等设备上安装去广告应用的步骤,所有设备只要使用了AdGuard Home的DNS就可以自动拦截广告


安装

wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
tar xvf AdGuardHome_linux_amd64.tar.gz
cd AdGuardHome
./AdGuardHome -s install
./AdGuardHome -s status

PVE安装配置AdGuard Home


命令

systemctl enable AdGuardHome
systemctl start AdGuardHome
systemctl restart AdGuardHome
systemctl stop AdGuardHome
systemctl status AdGuardHome
AdGuardHome -s uninstall  #卸载服务


配置

#浏览器访问
http://ip:3000/

PVE安装配置AdGuard Home

开始配置


PVE安装配置AdGuard Home

默认监听所有接口


PVE安装配置AdGuard Home

设置用户名和密码


PVE安装配置AdGuard Home

下一步


PVE安装配置AdGuard Home

打开仪表盘


PVE安装配置AdGuard Home

设置--常规设置


PVE安装配置AdGuard Home

勾选“使用AdGuard【浏览安全】网页服务和强制安全搜索”


PVE安装配置AdGuard Home

设置--DNS设置


PVE安装配置AdGuard Home

#上游DNS服务器
tls://1.1.1.1
tls://1.0.0.1
tls://dns.google
tls://dns.quad9.net
tls://dns.adguard.com
https://1.1.1.1/dns-query
https://1.0.0.1/dns-query
https://dns.quad9.net/dns-query
https://dns.rubyfish.cn/dns-query
https://dns.adguard.com/dns-query
https://dns.google/dns-query
tcp://8.8.8.8
tcp://8.8.4.4
tcp://1.1.1.1
tcp://4.2.2.1
tcp://4.2.2.3
tcp://4.2.2.4
223.5.5.5
223.6.6.6
114.114.114.114
114.114.115.115
119.29.29.29
119.28.28.28
sdns://AgQAAAAAAAAAAKBLTrSwdCmLgotcADCVoQtFI_uVHAyINIsJxT5bq6QIoyD2Hldod9qWUClMzLX5bHX8txvaG7xGRjZ8Tr7aidcxjxBkb2h0cmlhbC5hdHQubmV0Ci9kbnMtcXVlcnk
sdns://AQEAAAAAAAAADDIwOC42Ny4yMjAuMiC3NRFAIG8iXT4r2CLX_WkeocM8yNZmjQy-BL-rykP7eRsyLmRuc2NyeXB0LWNlcnQub3BlbmRucy5jb20
sdns://AgcAAAAAAAAABzEuMC4wLjEAEmRucy5jbG91ZGZsYXJlLmNvbQovZG5zLXF1ZXJ5
sdns://AgUAAAAAAAAABzguOC44LjigHvYkz_9ea9O63fP92_3qVlRn43cpncfuZnUWbzAMwbkgdoAkR6AZkxo_AEMExT_cbBssN43Evo9zs5_ZyWnftEUKZG5zLmdvb2dsZQovZG5zLXF1ZXJ5
sdns://AgcAAAAAAAAACjQ1LjkwLjI4LjAgPhoaD2xT8-l6SS1XCEtbmAcFnuBXqxUFh2_YP9o9uDgOZG5zLm5leHRkbnMuaW8PL2Ruc2NyeXB0LXByb3h5
sdns://AgUAAAAAAAAAACA-GhoPbFPz6XpJLVcIS1uYBwWe4FerFQWHb9g_2j24OBJ1dy1kbnMucnVieWZpc2guY24KL2Rucy1xdWVyeQ


PVE安装配置AdGuard Home

#Bootstrap DNS服务器
1.1.1.1:53
1.0.0.1:53
9.9.9.9
149.112.112.112
114.114.114.114:53
114.114.115.115:53
8.8.8.8:53
8.8.4.4:53
208.67.220.220:53
208.67.222.222:53

点击测试上游DNS


PVE安装配置AdGuard Home

过滤器--过滤器和Hosts拦截清单,全部勾选


PVE安装配置AdGuard Home

#自定义过滤器规则
https://easylist-downloads.adblockplus.org/easyprivacy.txt
https://hosts.nfz.moe/127.0.0.1/full/hosts
http://sub.adtchrome.com/adt-chinalist-easylist.txt
https://gitee.com/xinggsf/Adblock-Rule/raw/master/rule.txt
https://gitee.com/xinggsf/Adblock-Rule/raw/master/mv.txt


测试

wget https://github.com/ameshkov/dnslookup/releases/download/v1.2.0/dnslookup-linux-amd64-v1.2.0.tar.gz
tar zxf dnslookup-linux-amd64-v1.2.0.tar.gz
cd linux-amd64/


Plain DNS

./dnslookup vos.cn 127.0.0.1

PVE安装配置AdGuard Home


DNS-over-TLS

./dnslookup vos.cn tls://dns.adguard.com

PVE安装配置AdGuard Home


DNS-over-HTTPS

./dnslookup vos.cn https://dns.adguard.com/dns-query

PVE安装配置AdGuard Home


DNSCrypt

./dnslookup vos.cn sdns://AgUAAAAAAAAAACA-GhoPbFPz6XpJLVcIS1uYBwWe4FerFQWHb9g_2j24OBJ1dy1kbnMucnVieWZpc2guY24KL2Rucy1xdWVyeQ

PVE安装配置AdGuard Home


更新日期: 2020年03月11日
文章标签: Linux
文章链接: https://www.vos.cn/os/425.html  
版权说明:如非注明,本站文章均为vOS原创,转载请注明出处和附带本文链接。