Blocking adverts with Ad-Guard across your network
I run an Unraid server at home. This serves as my NAS, but also as my server for all sorts of docker containers. One of those is Ad-Guard Home, an advert and tracker blocker.
You can get browser extensions from Ad Guard, but this will only work on the browser that it's installed on, which for a multi-device network isn't great.
Installing Ad-guard via Unraid is simple with the Community Applications plugin:
-
Click the 'Apps' toolbar link in the top navigation, and search for "Adguard home"
-
Click on the Download icon to install it
-
Click back onto the Docker tab, and find your container
-
Click on the icon, and select "Edit" from the context menu.
-
Select the network type to be "br0"
-
Give a fixed IP address that isn't in use on your network
-
Click "Apply"
You should now be able to navigate to that IP address in your browser, and open AdGuard.
Now that we have AdGuard installed, we need to modify where our internet traffic goes to, to pass through this.
You _could_ modify each computer on your network to change the DNS address to that of the Ad-Guard server to accomplish this. However, depending on how many devices you have, this could be a lengthy process. Also, devices like mobiles or tablets may not allow you to change the DNS address.
I changed the DNS in my router to that of my AdGuard IP address. (There is a guide inside of Adguard for further information on how to achieve this if you require)
I logged into my router, and selected the "Basic Network" tab. Your router setup may be different to mine, as I am running the FreshTomato custom firmware on my router.
Change the
DNS Server
to
Manual
and then enter the IP Address of your Adguard installation as
DNS 1
(I also put one of the Google DNS servers as my secondary, in case anything went wrong, and my Adguard stopped working.
Click Save, and you should be good to go!
Browse a few sites, and within a few minutes, you should see some data being collected in AdGuard.
This should set you in good stead for any futher enhancements you may wish to do!