16e14aec24
* add nspawn-container folder by @peacey * Add an automated interactive setup script |
||
---|---|---|
.. | ||
README.md |
How to Install AdGuard Home in Container
This guide assumes you have already created and started an nspawn container as instructed in the main README, and have configured an isolated macvlan network for your container.
To install AdGuard Home, we simply run the automated install as instructed in the AdGuard Home documentation.
-
Spawn a shell to your container.
machinectl shell debian-custom
-
Run the automated install command from the adguard documentation and follow the prompts. Refer to the pihole documentation for more details.
apt -y install curl curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
-
Go to http://10.0.5.3:3000 to configure AdGuard Home (or whatever IP you configured for your container).
-
After configuration, you can access Ad Guard Home web gui at http://10.0.5.3.
-
Now you can set your LAN clients to use the AdGuard Home IP 10.0.5.3 as the DNS, or use dig to test DNS resolution from a client (e.g.:
dig @10.0.5.3 google.com A
).