How to block ads on your home network with AdGuard Home on a Raspberry Pi
Pi-pigsty is a pop slice of software that's mostly associated with Raspberry Pi (hence the name) that helps yous to block ads and trackers and whatnot across all of the devices on your habitation network at the same time. It's nifty, really, and its popularity is well deserved. I honey Pi-hole. But it isn't the only software out there that can do this.
An alternative is called AdGuard Habitation. Y'all might be familiar with AdGuard already, there are mobile apps and browser extensions, fifty-fifty a Windows app, but this is a little more than that. AdGuard Home operates very much like Pi-hole, roofing your whole network from one device, usually a Raspberry Pi.
It's easy to install and configure and why, personally, I like it more than Pi-pigsty is that it feels a fiddling more beginner-friendly. It'south likewise free and open-source, just similar Pi-hole, then you can take a await through the code and come across what's going on if yous wish. You lot can install information technology directly onto Windows 10 or xi, but information technology does also run natively on Linux, including the Raspberry Pi, macOS, and in a Docker container, so y'all certainly have options.
For this guide, I'll exist focusing on using a Raspberry Pi, as information technology's the one that makes the most likely awarding. Information technology's pocket-size and low-powered and in the spirit of Pi-pigsty. And having a Raspberry Pi-powered on 24/seven is a lot more efficient than leaving a full Windows machine powered up.
What you need
Before you lot begin y'all'll need to get together some bits. For this guide we'll exist needing:
- A Raspberry Pi or Raspberry Pi Nothing
- A microSD carte du jour (8GB or larger)
- A micro-USB or USB-C ability supply (depending on your Raspberry Pi)
- Admission to some other calculator
Now, to work.
How to gear up a Raspberry Pi and fix a static IP accost
Before getting AdGuard Dwelling installed, you have to gear up the Raspberry Pi with an operating arrangement, access to your home network, SSH, and a static IP accost. None of this is too complex nor takes too long. To help yous out, we've got dedicated guides linked below that will take yous through each step.
There are different operating systems available, but information technology doesn't really matter across being a base to run AdGuard Abode from. So the easiest affair to practise is head over to the Raspberry Pi website and download the Raspberry Pi OS lite version. This is perfect for a setup like this as it's much lighter weight thanks to having no GUI. This is why you'll demand to follow these guides, get SSH and local network enabled, and set a static IP address on your Raspberry Pi. Without a static IP, you'll have a much harder time using AdGuard Home.
- How to fix a headless Raspberry Pi, Wi-Fi, and SSH
- How to set up a static IP accost on a Raspberry Pi
How to install AdGuard Domicile on a Raspberry Pi
One time your Raspberry Pi is set up, y'all've got SSH enabled, and information technology's connected to your dwelling network, it's fourth dimension to go going. Open upwards your favorite terminal or SSH application and connect to your Raspberry Pi.
If this is the first time you're connecting, you'll desire to connect using ssh pi@yourIPaddress
and the stock countersign is raspberry. You'll want to change that but we'll skip past that for this guide. The side by side good idea is to run sudo apt update && sudo apt upgrade
to ensure you have all the latest packages on your Raspberry Pi.
With that out of the style, we're ready to install AdGuard Habitation. As it's open-source, the whole project is hosted on GitHub, and that's where nosotros tin go to have a look at the lawmaking and find all the documentation we'll need. To install Adguard Home, all yous need is this one command.
curl -due south -South -L https://raw.githubusercontent.com/AdGuardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
A word of warning: You shouldn't ever simply run any old script on your organisation. In this case, we're running it from a trusted source and the script, install.sh is hosted on the GitHub repository for you to take a look at. But a general dominion of good practice is to ensure you either know exactly what you're installing or that the source is trusted.
The command above will basically download the install script from the AdGuard Domicile GitHub repo and run it. The script contains all the necessary information to download and install the entire AdGuard Home package, then all yous need to do is sit dorsum and allow it stop.
If for any reason you want to uninstall or reinstall AdGuard Habitation, utilise the aforementioned command above but attach the -u
or -r
flag to the command.
How to set up AdGuard Domicile
Once it's installed you lot're done in the command line and it'south time to burn down upwardly a web browser. You lot'll need to navigate to the IP address you set for your Raspberry Pi on port 3000 to admission the AdGuard Abode GUI. So, something like http://192.168.86.200:3000.
-
Hitting the big greenish Get started button to begin.
- By default you'll exist shown the IP address and ports AdGuard Dwelling will use. If you're happy with these, simply click Next, else alter them to something y'all'd prefer first.
- Cull a username and password before proceeding.
-
Note downwards the IP addresses given to you lot, these are what you'll use to tell your home network to point at AdGuard Home.
- Click Open dashboard to get started configuring.
The stock settings are pretty practiced to get going with, and there's a lot of customization you tin can do to tailor your protection to meet your own needs. AdGuard Domicile currently has three DNS blocklists to choose from, which gives you options if possibly one of them is getting a little too ambitious and you wanted to attempt an alternative before creating custom rules.
You can, of grade, create custom rules, and the logs can exist kept for up to 90 days or much less if you'd prefer. The stock settings are skilful enough, simply honestly, it's down to yous to go poking around and set things up how you want them.
There's not really a one-size-fits-all solution. Everything is actually clear and easy to sympathise and one of my own favorite features is being able to apartment out only cake an entire service, like Facebook, with a unmarried click.
How to betoken your devices at AdGuard Home
Remember those IP addresses you were given during the setup? This is where both of those come into play. Exactly how you practise this will vary wildly, because different routers do things in different ways, but substantially you'll take those IP addresses and you'll enter those into the DNS settings on your router. That is, if you desire consummate network coverage.
You tin do the same on a device-past-device basis, likewise, and again, it'll differ across Windows, Mac, Linux, and mobile. Wherever you lot have a DNS setting for your network connexion, though, that'due south where y'all enter these.
Information technology's a good idea to reboot your device, too, to ensure it's properly taken issue. But at present, you should be seeing fewer ads, you'll be getting fewer trackers, and yous shouldn't exist noticing whatever real dip in your connection speeds. Even though the Raspberry Pi is small and depression-powered, it's enough capable of handling everything y'all throw at it in a home surroundings.
Alternatives to Raspberry Pi
The Raspberry Pi is the most obvious device to apply, but it'due south not the only ane. Equally mentioned previously, AdGuard Home tin can be natively installed on macOS as well as Linux, and there'southward an official Docker paradigm for it, too. You can use Docker on Windows and the Windows Subsystem for Linux, so if you lot merely have a Windows machine, there'south still a way to use Adguard Home.
The GitHub repository is a great identify to start as it has all the documentation and links y'all need if you're considering alternative hardware. But a inexpensive Raspberry Pi Zero and about one-half an hr of your time is definitely one of the better ones.
Tiny calculator
Raspberry Pi Zero W
Teeny yet capable figurer
The Raspberry Pi Nothing West is notwithstanding a fantastic and incredibly affordable style to dip your toe into the ecosystem or Linux in general.
Space-saving PCs
The pre-congenital ITX PCs y'all should exist buying correct at present
Mini-ITX PCs are all the same a bit of a niche, but in that location are a lot of great reasons to buy one. If you lot're in the market place but want to go someone else to build information technology for you, you're in luck; there are some keen PCs from which to choose.
Source: https://www.windowscentral.com/how-install-adguard-home-raspberry-pi
Posted by: stewartfralke.blogspot.com
0 Response to "How to block ads on your home network with AdGuard Home on a Raspberry Pi"
Post a Comment