DNS server blocking ads and trackers in the whole network, with DNS over TLS, DNS over HTTP, DNSSEC.
2.6K
sudo apt update && sudo apt install git vim wget curl net-tools ca-certificates gnupg -y
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo usermod -aG docker $USER
sudo reboot
$ docker version
Client: Docker Engine - Community
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:52:41 2023
OS/Arch: linux/arm64
Context: default
$ docker compose version
Docker Compose version v2.18.1
git clone https://github.com/AzagraMac/adguardhome-docker.git
adguardhome-docker
docker-compose up -d
docker ps -a
In AdGuard settings, DNS settings:
For Cloudfare DoH-DoT:
https://dns.cloudflare.com/dns-query
tls://1dot1dot1dot1.cloudflare-dns.com
For DoH-DoT de Quad9:
https://dns.quad9.net/dns-query
tls://dns.quad9.net
and check the option: "Load balancing", by default this option is checked.
Cloudflared in both IPv4 and IPv6:
1.1.1.1
1.0.0.1
2606:4700:4700::1111
2606:4700:4700::1001
Quad9 in both IPv4 and IPv6:
9.9.9.9
149.112.112.112
2620:fe::fe
2620:fe::fe:9
Installing a free SSL certificate with CertBot:
sudo apt-get update
sudo apt-get install certbot
certbot certonly --manual --preferred-challenges=dns --rsa-key-size 4096 --email [email protected] --agree-tos --server https://acme-v02.api.letsencrypt.org/directory -d "*.your_domain"
_acme-challenge TXT record in our name server provider with the content it tells us:
It creates the following files, in the directory /etc/letsencrypt/live/:fullchain.pem – your SSL certificate encrypted in PEM.privkey.pem – your private key encrypted in PEM.Steps to follow after requesting the certificate:
*. plus the domain you wish to certify to obtain the Wildcard._acme-challenge TXT type in our name server provider with the content you indicate.To check if the certificate will self-renew:
certbot renew --dry-runsystemctl status certbot.timercertbot renew
--force-renewalsystemctl list-timers --all Debe aparecer el siguiente configurado para la renovación automática: certbot.timer - certbot.servicecertbot certificatesTo revoke a certificate:
certbot delete --cert-name example.comcertbot revoke --cert-path /etc/letsencrypt/archive/${YOUR_DOMAIN}/cert1.pemcertbot revoke --cert-path /PATH/TO/cert.pem --key-path /PATH/TO/key.pemIf you don't want to go through all these steps, you can obtain the certificate with Zero SSL. but the wildcard certificate is via payment.
Info: INFO
sudo apt-get update
sudo apt-get install openssl
mkdir certs
cd certs/
sudo openssl req -x509 -nodes -days 1825 -sha384 -newkey ec:secp384r1 -keyout privkey.key -out privcert.pem
Country Name (2 letter code) [AU]: USState or Province Name (full name) [Some-State]: New YorkLocality Name (eg, city) []: New York CityOrganization Name (eg, company) [Internet Widgits Pty Ltd]: Bouncy Castles, Inc.Organizational Unit Name (eg, section) []: Ministry of Water SlidesCommon Name (e.g. server FQDN or YOUR name) []: server_IP_address or domainEmail Address []: admin@your_domain.comEncryption settings.Enable encryption (HTTPS, DNS via HTTPS and DNS via TLS).Redirect to HTTPS automatically.Server name. If you are entering a wildcard, enter the domain name only"example.com".fullchain.pem in Certificados.privkey.pem in Private key.Save configuration.To create a zone in your domain for both *.example.org to enable clients, follow these steps:
DNS Zones option.DNS Zones entry. To add the entry for each client, e.g. one.example.org.
This will allow the client created in the Client Configuration panel to connect.Settings/Client Configuration/Persistent clients. Click Add Clients and under Identifier create a name.Current instructions in the developer's documentation documentación.
In order to change the password in Adguard we can access these websites and create a username and password:
We create the user and password. Once created, it has this format:
ser:$apr1$x4gcjzrl$qSvcJK46C2rQUGRl4z1kl0
Once the user and password have been created, we proceed to access the adguard configuration file, AdGuardHome.yaml.
We look for the following line in the configuration file and replace the created data.
user: userpassword: $qSvcJK46C2rQUGRl4z1kl0users:
- name: user
password: $apr1$x4gcjzrl$qSvcJK46C2rQUGRl4z1kl0
Once the data has been changed, restart adguard.
| List | Link | Description |
|---|---|---|
| safelist repository | Link | safelist JuanRodenas |
| safelist hagezi | Link | safelist hagezi (Not tested) |
Column Link: Pi-hole® | Adguard Home®.
| List Host | Link | Description |
|---|---|---|
| List oisd | Link | Link | To Block host Adguard and domains dbl.oisd |
| The big list | Link | Link | The big list oisd |
| urlhaus-filter-domains | Link | Link | urlhaus-filter DEV Link |
| everything | Link | Link | To Block everything |
| energized pro | Link | Link | To Block energized |
| d3ward | Link | Link | d3ward popular list |
| List | Link | Description |
|---|---|---|
| The NSFW list | Link | Link | The NSFW list oisd |
| Gambling-porn | Link | Link | To Block Gambling and porn |
| Malware | Link | Link | To Block malware |
| Ransomware | Link | Link | To Block ransomware |
| phishing | Link | To Block phishing |
| List Tracking/Ads | Link | Description |
|---|---|---|
| SmartTV | Link | Link | To Block SmartTV |
| WindowsSpyBlocker | Link | To Block WindowsSpyBlocker |
| GoodbyeAds-Ultra | Link | Link | To Block hagezi and jerryn70 |
| ads-and-tracking-extended | Link | To Block ads-and-tracking-extended |
| Adblock_Plus | Link | Link | To Block Tracking AdBlock |
| Android tracking | Link | Android tracking for AdGuard Home |
| List Tracking/Ads | Link | Description |
|---|---|---|
| AdGuardSDNSFilter | Link | AdGuard team DNS filter |
| AdAway | Link | AdAway default blocklist |
| Game Console Adblock List | Link | Game Console Adblock List |
| SmartTV-AGH | Link | Smart-TV Blocklist for AdGuard Home |
| Peter Lowe's List | Link | Blocklist for use with Adblock Plus |
| List Services | Link | Description |
|---|---|---|
| Youtube | Link | Link | To Block youtube |
| Link | To Block Facebook/Instagram/Whatsapp | |
| Whatsapp open | Link | To Block Facebook/Instagram but leave Whatsapp open |
| Link | To Block Google | |
| Mozilla | Link | Link | To Block Mozilla tracking |
| Microsoft | Link | To Block Microsoft |
| VideoGamesAdiction | Link | To Block VideoGames Adiction |
| List Services | Link | Link dev | Description |
|---|---|---|---|
| uBlock filters | Link | Link DEV | uBlock filters |
| Badware risks | Link | Link DEV | uBlock filters – Badware risks |
| Privacy | Link | Link DEV | uBlock filters – Privacy |
| Quick fixes list | Link | Link DEV | Quick fixes list |
| Resource abuse | Link | Link DEV | uBlock filters – Resource abuse |
| Unbreak | Link | Link DEV | uBlock filters – Unbreak |
| i-dont-care-about-cookies | Link | Link DEV | i-dont-care-about-cookies |
| urlhaus-filter | Link | Link DEV | urlhaus-filter |
A tab has been added for AdGuard with lists adapted to its format.
Page to check your selfhosted from fivefilters
https://blockads.fivefilters.org/
Page to check your selfhosted from canyoublockit
https://canyoublockit.com/
Page to check your selfhosted from No more ads
https://ads-blocker.com/es/pruebas/
Page to check your selfhosted from AdBlock Tester
https://adblock-tester.com/
Page to check encryption of 1.1.1.1 de Cloudflare
https://1.1.1.1/help
Page to check encryption of Tenta VPN Browser
https://tenta.com/test/
Page to check encryption of Cloudflare
https://www.cloudflare.com/es-es/ssl/encrypted-sni/
The only browser that supports all four technologies is Firefox.
about:config and activate: network.security.esni.enabled - pulsamos en el + y se ponga en true.
network.trr.mode – (valor 2)
network.trr.uri – valor en la web Mozilla.
HTTPS-Only Mode - pulsamos en el + y se ponga en true.
Page to check DNSSEC
http://dnssec.vs.uni-due.de/
http://www.dnssec-or-not.com/
http://en.conn.internet.nl/connection/
https://wander.science/projects/dns/dnssec-resolver-test/
Page to check DNSSEC encryption
https://rootcanary.org/test.html
Page to check DNS leakage
https://www.dnsleaktest.com/
Link to the developer of the application:
Any and all rights and responsibilities pertaining thereto remain the property of the respective developer.
If you want to contribute to improve the lists, open a issue here: ISSUE
This repository is made with all my love and affection.
1K7bU83Lw1LxzN2dKWrLrWjA51HDpfyzWm
0x9C4e7853cB77F57EFd834F540Bc31F4f06562A11
DJfiHJGmJK6iCB8iugG879a4L6ixNHtYg1
LgWSf87Vfcz5yejVjZJWvSbi5WwBRaRsZg
These files/texts are provided "AS IS", without warranties of any kind, express or implied, including, but not limited to, warranties of merchantability, fitness for a particular purpose and non-infringement. In no event shall the authors or copyright holders be liable for any claims, damages or other liability arising out of or relating to the files or the use thereof.
Any and all trademarks are the property of their respective owners.
I will be updating with information and adding procedures in my spare time.
Content type
Image
Digest
sha256:40e48b26b…
Size
23.3 MB
Last updated
over 1 year ago
docker pull azagramac/adguard:v0.107.56