AdGuardHome - Adblock via DNS

# When you have no option in changing your ISP dns servers configuration on the router, then you can combine the AdGuardHome with OpenVPN.

# Installing on a Raspberry Pi

# website URL's:

https://github.com/AdguardTeam/AdGuardHome
https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started

# Image to use (select your cpu type..)
https://static.adguard.com/adguardhome/release/AdGuardHome_linux_armv7.tar.gz

tar xvzf AdGuardHome_linux_armv7.tar.gz
mv AdGuardHome /usr/local/

/usr/local/AdGuardHome/AdGuardHome -s install

192.168.178.2:3000
Configure:
- Poort: <Your portnumber) like 4321
- User: Admin (<set a password>)

http://192.168.178.2:<Your portnumber>
Configure:
- Ratio limiet (standaard:20) : 0
- Upstream DNS-servers (I use the OpenDNS servers):
208.67.222.222
208.67.220.220

Optional if you want to use the router: Set the DNS server configuration to the IP-address of your internal Raspberry Pi running AdGuardHome

Optional if using IP-tables firewall:

##Do not forget to put the iptables rules if you use the firewall!! Place them as first rules..
#iptables -A INPUT -p udp --dport 53 -j ACCEPT
#iptables -A INPUT -p tcp --dport 53 -j ACCEPT

Optional if using in combination with OpenVPN:

vi /etc/openvpn/server.conf
push "dhcp-option DNS <Your Raspberry Pi's IP address>"
push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 208.67.220.220" only 2 needed for windows..

 

Automatic upgrade/update script

AdGuardHome_update.sh

#!/bin/sh
#set -x
#
# This file is under Revision Control System.
# So do NOT edit this file !
#
# RCS info:
# $Header: $
# $Source: $
#
#
# File:
#
# Description:  Check the system on multiple hosts
#
#
# Name          Date    Description
# Ad Kuijpers   010723  Initial version
#
#

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

DATE=`date +%d-%m-%Y\ %H:%M`

cd /usr/local
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_armv7.tar.gz 2>/dev/null
systemctl stop AdGuardHome.service
sleep 2
tar xvzf AdGuardHome_linux_armv7.tar.gz >/dev/null
chmod 750 /usr/local/AdGuardHome
chown -R adguard:adguard /usr/local/AdGuardHome
chown adguard:adguard /var/log/AdGuardHome*
rm AdGuardHome_linux_armv7.tar.gz
sync
sleep 2
systemctl start AdGuardHome.service

 

  Donate now via the Paypal button on the top in US Dollar and on the bottom in Euro