anhkiet2507

AdGuard Home Install

Sep 23rd, 2021 (edited)
1,831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. sudo -s
  2. apt-get update && apt-get upgrade -y
  3. apt-get install nano curl -y
  4. curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh > install.sh
  5. Hoặc wget https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh
  6. chmod a+x install.sh
  7. ./install.sh
  8. // Fix fail to bind on port 53
  9. mkdir -p /etc/systemd/resolved.conf.d/
  10. nano /etc/systemd/resolved.conf.d/adguardhome.conf
  11. //Gõ vào nội dung sau
  12. [Resolve]
  13. DNS=127.0.0.1
  14. DNSStubListener=no
  15. mv /etc/resolv.conf /etc/resolv.conf.backup
  16. ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
  17. systemctl restart systemd-resolved
  18. // Thiết lập trên Dashboard
  19. Filters –> DNS Blocklists
  20. https://dbl.oisd.nl/
  21.  
  22. Settings –> DNS Setting
  23. Upstream DNS Servers
  24. 1.1.1.1
  25. 1.0.0.1
Add Comment
Please, Sign In to add comment