Technitium DNS server zone high-availability

Oracle Cloud VPS with AdGuard Home Ads Blocker

AdGuard Home is a network-wide software for blocking ads & tracking. After you set it up, it’ll cover ALL your home devices, and you don’t need any client-side software for that. With the rise of Internet-Of-Things and connected devices, it becomes more and more important to be able to control your whole network. 

1. Setup your Oracle Cloud VPS and install additional useful packages.

sudo apt-get install cron dnsutils nano rsyslog logrotate

2. Install AdGuardHome using their automatic installation script.

curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

3. Enable iptables firewall for port 53 (udp/tcp), 80 (tcp), 443 (tcp) and 3000 (tcp) by adding below rules in /etc/iptables/rules.v4.

-A INPUT -p tcp --dport 53 -j ACCEPT
-A INPUT -p udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3000 -j ACCEPT

4. Configure Oracle Cloud's VCN to allow port 53,80,443 and 3000 too.

 
5. Open http://xxx.xxx.xxx.xxx:3000 in browser to initiate the configuration wizard. Replace the IP with your VPS' public IP.


6. Setup AdGuard Home HTTP and DNS listening interface. Use the default settings and click Fix button or follow instruction to use AdGuard Home as default DNS service instead of systemd-resolved.


7. Configure AdGuard Home webUI credential.


8. Once the AdGuard Home configuration is done, port 3000 is no longer needed. You can remove the port 3000 rule in iptables and Oracle Cloud's VCN.

9. Configure your home router DHCP or individual devices to use your AdGuard Home setup as main DNS server.

10. Monitor the AdGuard Home DNS service in action under Query Log.





Comments