Skip to main content

AdGuard Home on your Raspberry Pi

 

 Install AdGuard Home on Raspberry Pi using the Snap Store | Snapcraft

 

Equipment

Below you can view all of the equipment we used for running AdGuard Home on the Raspberry Pi.

Recommended

Raspberry Pi

Micro SD Card (8GB+)

Network Connection

Optional

Raspberry Pi Case

USB Keyboard

USB Mouse

We tested this tutorial on a Pi 400 running the latest version of Raspberry Pi OS Buster.

Installing AdGuard Home to your Raspberry Pi

This section will show you how to install the AdGuard home software to your Raspberry Pi.

This is a relatively simple process as we can download the compiled version of the ad blocker directly from their website.

Before beginning, we highly recommend that you set up your Raspberry Pi with a static IP address.

As AdGuard Home works by acting as a DNS server, it must retain the same IP address every time it reboots.

1. Our first step is to update and upgrade our operating system.

We can update the package list and upgrade all of the installed packages using the following two commands.

sudo apt update
sudo apt full-upgrade

2. To download AdGuard Home, we are going to make use of the wget command.

Run the following command to download the latest available version of the AdGuard Home software to your Raspberry Pi.

wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm.tar.gz

3. With the archive downloaded to our Raspberry Pi, let us now extract it.

We can extract AdGuard Home to your device’s home directory by using the command below.

tar xvf AdGuardHome_linux_arm.tar.gz

4. Since we extracted the archive, we no longer need it, so let’s now clean up by deleting it

We can delete the archive by running the following command.

rm AdGuardHome_linux_arm.tar.gz

5. Let us now change into the newly extracted directory so that we can interact with the software directly.

You can change to the directory by using the command below.

cd AdGuardHome

6. We can finally install the AdGuard Home software to our Raspberry Pi by using the command below.

By running this command, the software will get installed on the device, and it will be set up as a service that will automatically start at boot.

sudo ./AdGuardHome -s install

7. Once the install process has been completed, you will see a message appear in your command line.

You should see two URLs provided in this message: the localhost IP and the local network IP address.

The second address is the one you will be using for accessing the web interface from another device.

Initial Configuration of AdGuard Home

Now that we have successfully installed AdGuard Home to our Raspberry Pi, we can now use its web interface.

When you first load up the AdGuard home web interface, you will need to go through some initial setup steps.

Accessing the Web Interface

Before we can configure AdGuard, we need to load up its web interface.

Accessing the web interface only requires you to access a web browser on the same network as your Raspberry Pi.

1. To access the AdGuard Home web interface, you will need to know your Raspberry Pi’s IP address.

You can either use the address that was provided at the end of the previous section. Alternatively, you can use the following command to retrieve the local IP address.

hostname -I

2. Once you know your Raspberry Pi’s IP address, you can now access the web interface.

To open the AdGuard Home web interface, go to the following address in your favorite web browser.

http://[YOUR IP ADDRESS]:3000

Make sure that you replace “[YOUR IP ADDRESS]” with the correct IP.

Running the Initial Configuration Steps

When you first launch the web interface for AdGuard Home on your Raspberry Pi, you will need to follow some initial setup steps.

These steps get you to set up certain details such as the interfaces you want it to operate on and the username and password for the admin account.

1. The first step will welcome you to the AdGuard Home software.

To proceed with the initial setup steps, click the “Get Started” button.

 

 

 

AdGuard Home is a powerful piece of software that allows you to block both ads and trackers on your entire network.

The software even boasts extra functionality that is great for families, allowing you to easily block access to websites you don’t want your family accessing.

It is very much like Pi-Hole in that it acts as a DNS server for your network, allowing it to easily filter out and block ad servers.

AdGuard Home has a few benefits over Pi-Hole, one of those being that it has built-in support for encrypted DNS and HTTPS right out of the box.

While you can extend the functionality of Pi-Hole to include a lot of these features, AdGuard Home works out of the box on your Raspberry Pi.

AdGuard Home features a super useful web interface that shows you useful statistics and provides you with an easy way to configure your blocklists.

Thanks to the web interface, you can even use AdGuard Home on a headless Raspberry Pi.

Setting up AdGuard Home is a fairly straightforward process and can be set up and running in a few short minutes.

 

2. Next, you will be asked if you want to configure the ports and interfaces you want AdGuard Home to operate on with your Raspberry Pi (1.).

Most people will be able to skip the settings on this page. However, if you are using another program that will be using port 80, you can change this using the provided textbox (2.).

Port 8080 is a good alternative if port 80 is going to be consumed for another device.

Once you are happy with all of your settings, click the “Next” button to proceed (3.).


3. We can now create an administrator user for accessing the web interface (1.).

You can set the username to whatever you would like it to be. However, for the password, make sure you set something that is secure and not easily guessable.

Even if your network is not accessible from the outside world, it will help ensure that no one on the local network can mess with your settings.

Once you have set a username and password, click the “Next” button to proceed with the setup.

 

4. This screen tells you the steps you can follow to use your new Raspberry Pi AdGuard Home as your DNS server (1.).

To get the benefits of AdGuard Home, you have to either change your router’s DNS to point to the Raspberry Pi or modify the settings of each device.

Once you have configured your devices to point at the Raspberry Pi’s IP address, you can click the “Next” button to proceed.

 

5. You have now completed the initial setup steps for the AdGuard Home software.

You can now proceed to the dashboard by clicking the “Open Dashboard” button.

 At this point, you can now proceed to use the web interface.

 

Accessing and Using the AdGuard Home Dashboard

Now that we have run through all the initial setup steps for AdGuard home on your Raspberry Pi, we can finally access the dashboard.

1. You can access the AdGuard Home dashboard by going to the following address in your web browser.

Make sure that you swap out “[YOUR IP ADDRESS]” with the IP of your Pi.

http://[YOUR IP ADDRESS]

Please note that if you are not using the default port that AdGuard tries to use, you will need to add it to the address.

For example, if you set it to use port 8080 for the web interface, you will need to go to the following address instead.

http://[YOUR IP ADDRESS]:8080

2. Upon going to the dashboard, you will be forced to log in.

To login to AdGuard Home, you will need to enter the username and password you set when going through the initial setup steps (1.).

Once you have entered your details, click the “Sign in” button to proceed.

 

3. You will now have full access to the AdGuard Home dashboard and all of its settings.

If you have already configured one of your devices to use AdGuard Home, you should already see some statistics here.

At the top of the screen, you will notice five different menu options that you can use.

1 – The first is the dashboard. The dashboard is the current screen you are using and provides you with a brief overview of what AdGuard is doing.

2 – The second option is the settings menu. If you want to change the behavior of AdGuard, this is where you need to look.

You can also use this menu to enable extra functionality. For example, you can enable HTTPS support or change the upstream DNS server.

3 – The third menu option is where all the settings for your filters exist.

You can use these options to configure your DNS blocklists, whitelists, and also rewrites.

By default, the only filter that is enabled is the AdGuard DNS Filter.

4 – The fourth menu option takes you to the query log screen.

On this screen, you can see all the DNS requests that are being made by your devices. This allows you to keep track of what websites users on your network might be accessing.

If you would prefer AdGuard Home not to keep track of these, you can modify this behavior within the “Logs Configuration” section of the “General Settings“.

5 – The fifth and final menu option will take you to the setup guide.

The setup guide provides steps for configuring devices to make use of the AdGuard Homes filtered DNS.

 

4. Hopefully, at this stage, you will have a good idea of using AdGuard and finding all of its settings.

You will quickly find that AdGuard is very straightforward to configure, with most settings being clear and concise.

 

Conclusion

You should now have the AdGuard Home software up and running on your Raspberry Pi with devices using its DNS server.

Using AdGuard Home is a relatively straightforward process, and you will quickly see that it is relatively effective at blocking ads from loading.

It’s ease of use, and it’s simple settings allows AdGuard to be an excellent alternative to the Pi-Hole software.



 

 

 

 

 

 

Comments

Popular posts from this blog

How to Setup Fail2ban on the Raspberry Pi or use the Pi- Hole setup

    In this Raspberry Pi Fail2ban tutorial, we will be showing you how to set up and configure the Fail2ban software on your Raspberry Pi. Fail2ban is a crucial piece of software when it comes to improving the security of your Raspberry Pi. It is especially useful if you have your Raspberry Pi publicly accessible via the internet as it is an active and learning form of defense. For those who do not know what Fail2ban is , it is a piece of software that attempts to block malicious connections to your device, which in our case is our Raspberry Pi. It is important if you have SSH or even a web server that is publicly accessible. Fail2ban works by continually scanning your log files and looking for signs of potential attacks. These include attacks such as too many password failures as well as scanning for exploits and much more. Once it finds unusual activity it then automatically updates your firewall to ban that IP address. Equipment You will need the following eq...

Network Printer + Apple AirPrint Server on your Raspberry Pi ******Featured Information********

        On this project, we will be showing you how to set up your Raspberry Pi as an AirPrint server.  AirPrint is a printing protocol designed by Apple so that their devices would not need to download or install drivers. By following this guide, you will be able to add AirPrint functionality to any printer that is connected to your Raspberry Pi. This project is an excellent way of adding extra functionality to both cheap and old printers. Implementing AirPrint support will allow you to print from your Apple device to your connected printer easily. Before following this project, you will need to have first set up the CUPS software on your device. Cups is what will act as the brains of your AirPrint server on your Raspberry Pi. It will handle the communication between your Raspberry Pi and the connected printer.   Equipment List Below are the pieces of equipment that you will need for this tutorial on installing AirPrint on your Raspberry Pi. Recomme...

HiMovies App Policy

   Privacy PolicyYour privacy is important to us. It is HiMovies App Policypolicy to respect your privacy regarding any information we may collect from you across our website, HiMovies App Policyand other sites we own and operate.We only ask for personal information when we truly need it to provide a service to you. We collect it by fair and lawful means, with your knowledge and consent. We also let you know why we’re collecting it and how it will be used.We only retain collected information for as long as necessary to provide you with your requested service. What data we store, we’ll protect within commercially acceptable means to prevent loss and theft, as well as unauthorised access, disclosure, copying, use or modification.We don’t share any personally identifying information publicly or with third-parties, except when required to by law.Our website may link to external sites that are not operated by us. Please be aware that we have no control over the conte...

Most Visited Of the Week

Network Printer + Apple AirPrint Server on your Raspberry Pi ******Featured Information********

        On this project, we will be showing you how to set up your Raspberry Pi as an AirPrint server.  AirPrint is a printing protocol designed by Apple so that their devices would not need to download or install drivers. By following this guide, you will be able to add AirPrint functionality to any printer that is connected to your Raspberry Pi. This project is an excellent way of adding extra functionality to both cheap and old printers. Implementing AirPrint support will allow you to print from your Apple device to your connected printer easily. Before following this project, you will need to have first set up the CUPS software on your device. Cups is what will act as the brains of your AirPrint server on your Raspberry Pi. It will handle the communication between your Raspberry Pi and the connected printer.   Equipment List Below are the pieces of equipment that you will need for this tutorial on installing AirPrint on your Raspberry Pi. Recomme...

Build your own Raspberry Pi Google Assistant

        This Raspberry Pi Google assistant project will walk you through on how to build and set up your very own Pi-powered Google Assistant.  This assistant will actively listen to your voice and respond to your queries, all you need to say is “Ok Google” or “Hey Google” followed by your query. To set up your own Google Assistant, we will be walking you through how to test your audio setup, signing up for the Google Assistant API and also show you how to download and set up the actual Google Assistant examples. By the end of this tutorial, you should have a very capable virtual assistant operating on your Raspberry Pi. To set up your own Google Assistant on your Raspberry Pi all you will need is a USB microphone and a set of speakers.   Equipment List   The entire list of all the pieces of equipment that we used for this Raspberry Pi Google assistant tutorial is listed below. Recommended Raspberry Pi Micro SD Card Power Supply USB Micropho...