[DNS]使用Docker快速部署Adguard Home

Adguard Home是个好东西,支持DOQ、DOH,还有过滤和统计,非常适合组合套娃替换掉公共DNS,自己建。不足就是现在不支持做DNS分类解析(就是不同的名单找不同的上游)。不过呢,你可以开N个实例解决,加上一点微小的操作,或者等我有时间了魔改一下。为了方便简单粗暴地多开,本文讲简要介绍如何使用Docker快速部署Adguard Home.

Docker-compose

version: "3.2"

services:
  AdguardHome:
    restart: always
    image: adguard/adguardhome:latest
    networks:
      extnetwork:
         ipv4_address: 172.19.0.2
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 80:80/tcp
      - 443:443/tcp
      - 853:853/tcp
      - 784:784/udp
    volumes:
      - ./work:/opt/adguardhome/work
      - ./conf:/opt/adguardhome/conf
      - /opt/certs:/opt/certs

networks:
    extnetwork:
      ipam:
         config:
            - subnet: 172.19.0.0/16

随后docker-compose up -d就起来了

配置

下面简要介绍主要用到的过滤规则,看不懂的话直接抄作业就好,看得懂的话捡感兴趣的抄就是(同时欢迎评论区留言介绍更好的规则(这么多属实有点烦,我都想写个程序自动合并下了

filters:
- enabled: true
  url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
  name: AdGuard DNS filter
  id: 1
- enabled: true
  url: https://adaway.org/hosts.txt
  name: AdAway Default Blocklist
  id: 2
- enabled: true
  url: https://www.malwaredomainlist.com/hostslist/hosts.txt
  name: MalwareDomainList.com Hosts List
  id: 4
- enabled: true
  url: https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
  name: WindowsSpyBlocker - Hosts spy rules
  id: 1629526389
- enabled: true
  url: https://raw.githubusercontent.com/mitchellkrogza/The-Big-List-of-Hacked-Malware-Web-Sites/master/hosts
  name: The Big List of Hacked Malware Web Sites
  id: 1629526390
- enabled: true
  url: https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
  name: NoCoin Filter List
  id: 1629526391
- enabled: true
  url: https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt
  name: Spam404
  id: 1629526392
- enabled: true
  url: https://curben.gitlab.io/malware-filter/urlhaus-filter-agh-online.txt
  name: Online Malicious URL Blocklist
  id: 1629526393
- enabled: true
  url: https://anti-ad.net/easylist.txt
  name: 'CHN: anti-AD'
  id: 1629526394
- enabled: true
  url: https://cdn.jsdelivr.net/gh/o0HalfLife0o/list@master/ad-pc.txt
  name: halflife
  id: 1629526395
- enabled: true
  url: https://cdn.jsdelivr.net/gh/o0HalfLife0o/list@master/ad.txt
  name: halflife-mob
  id: 1629526396
- enabled: true
  url: https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts
  name: ad-wars
  id: 1629526397
- enabled: true
  url: https://raw.githubusercontent.com/vokins/yhosts/master/hosts
  name: yhost
  id: 1629526398
- enabled: true
  url: https://easylist-downloads.adblockplus.org/easyprivacy.txt
  name: EasyPrivacy
  id: 1629526399
- enabled: true
  url: https://easylist-downloads.adblockplus.org/easylist.txt
  name: EasyList
  id: 1629526400
- enabled: true
  url: https://anti-ad.net/adguard.txt
  name: anti-ad
  id: 1629526401
- enabled: true
  url: https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
  name: NoTrack-Malware
  id: 1629526402
- enabled: true
  url: https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
  name: NoTrack-Blocklist
  id: 1629526403

 

[DNS]使用Docker快速部署Adguard Home

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

滚动到顶部