MrTechie

Installing AdGuard Home on CentOS

Jun 6th, 2020
1,383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1.  
  2. sudo yum -y update && yum -y upgrade
  3. yum install epel-release
  4.  
  5.  
  6. sudo dnf info snapd
  7. sudo dnf -y install snapd
  8.  
  9.  
  10. sudo systemctl status snapd.socket
  11. sudo systemctl enable --now snapd.socket
  12. sudo ln -s /var/lib/snapd/snap /snap
  13.  
  14. sudo snap install adguard-home
  15.  
  16. snap services (Lists Adguard as running)
  17.  
  18. nslookup google.com 127.0.0.1
  19. ip addr | grep 3000
  20. netstat -na | grep 53
  21. netstat -tulpn
  22.  
  23. Firewall Changes
  24.  
  25. sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
  26. sudo firewall-cmd --zone=public --add-port=53/udp --permanent
  27. sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
  28. sudo firewall-cmd --reload
  29.  
  30. Change to Static IP
  31.  
  32. sudo nmtui - Network Manager tool for CentOS
  33. nmcli con mod enp0s3 ipv4.addresses "172.16.0.32/23" ipv4.dns 172.16.0.26 ipv4.gateway 172.16.1.254 ipv4.method manual
  34. sudo nmcli connection down enp0s3 && sudo nmcli connection up enp0s3
  35.  
  36. sudo systemctl stop systemd-resolved && sudo systemctl disable systemd-resolved
  37.  
  38. *****
  39.  
  40. Setup in the  web browser now  
  41.  
  42. -----
  43.  
  44. Do some test DNS Lookups from the HOST
  45.  
  46. nslookup google.com
  47.  
  48. nslookup google.dk
  49.  
  50. ______
  51.  
  52. Now a Remote Machine
  53.  
  54. nslookup www.youtube.com 172.16.0.33
  55.  
  56. *******
  57.  
  58. Log into AdGuard in th webbrowser and check the query log.
  59.  
  60. *******
  61.  
  62. So, DNS is now working - A few final changes.
  63. We need to pdate our block lists
  64. Filters > Blocklists
  65.  
  66. ********
  67.  
  68. Snap Management
  69.  
  70. sudo snap services
  71. sudo snap restart adguard-home (This'll restart the service etc)
  72.  
  73. *********
  74.  
  75. Maintenance and Upgrading
  76.  
  77. Run "sudo snap refresh adguard-home" to update.
  78.  
  79. Which will update all your snap adguard package and not affect your other snaps.
Add Comment
Please, Sign In to add comment