Here’s how to run AdGuard Home automatically on boot with a Quadlet file. No manual enabling required. This assumes Fedora CoreOS as of December 2025 with a recent Podman.
New to CoreOS? See Beginner’s Guide to Fedora CoreOS or the 2026 Bitwarden + Ignition + AdGuard guide (which bakes the Quadlet into Butane). This is the after-boot version: nano a .container file, nftables, auto-update timer. Prefer Pi-hole? See Pi-hole Quadlet. Don’t run both on the same IP and port 53.
The wizard runs on port 3000, then the UI moves to 80. The container uses host networking, so it sees the host’s network. That’s why the nftables section matters.
Prerequisites
- Fedora CoreOS, SSH as
core. - Static IP (examples use a LAN
192.168.1.0/24). - Nothing else on 53, 80, or 3000. The
systemd-resolvedstub on 127.0.0.53 is OK. A host bind on*:53is not. - Your timezone (
America/Chicagoin the sample).
sudo ss -tulpn | grep -E ':53|:80|:3000|:22'sudo podman ps -aRemove any leftover AdGuard/Pi-hole containers first.
Step 1: Create the Quadlet file
CoreOS reads Quadlets from /etc/containers/systemd/. Create adguardhome.container:
sudo nano /etc/containers/systemd/adguardhome.containerPaste this (use your own network info; the wizard handles the password and other settings):
[Unit]Description=AdGuard Home ContainerAfter=network-online.targetWants=network-online.target
[Container]ContainerName=adguardhomeImage=docker.io/adguard/adguardhome:latestAutoUpdate=registryNetwork=hostAddCapability=NET_ADMINEnvironment=TZ=America/ChicagoVolume=adguardhome_work:/opt/adguardhome/work:ZVolume=adguardhome_conf:/opt/adguardhome/conf:Z
[Service]Restart=alwaysTimeoutStartSec=900
[Install]WantedBy=multi-user.targetSave and exit (Ctrl+O, Enter, Ctrl+X in nano).
Why these keys
Network=host: AdGuard binds DNS and the UI on the host’s addresses. No published ports.AutoUpdate=registry: letspodman-auto-updateupdate the image, so nopodman pullby hand.TimeoutStartSec=900: time for the first image pull.:Zon volumes: SELinux on FCOS.- No password env vars: unlike Pi-hole v6, the wizard creates the admin account. Set a real password.
Once you like a version, pin a tag instead of :latest. Auto-update plus :latest is how surprises show up.
Optionally create the volumes:
sudo podman volume create adguardhome_worksudo podman volume create adguardhome_confStep 2: Reload systemd
sudo systemctl daemon-reloadThis generates a transient adguardhome.service in /run/systemd/generator/.
systemctl cat adguardhome.serviceIf that fails, the file name or directory is wrong (*.container under /etc/containers/systemd/).
Step 3: Start the container
sudo systemctl start adguardhome.serviceFollow the logs:
sudo journalctl -u adguardhome.service -fCheck it’s running:
sudo podman ps -asudo systemctl status adguardhome.serviceYou should see your adguardhome container up and humming.
Enable AUTO-UPDATE:
sudo systemctl enable --now podman-auto-update.timersystemctl list-timers podman-auto-update.timerOnly units with AutoUpdate=registry get updated. After an update, check sudo podman ps.
Open the wizard before setting up nftables, or you can lock yourself out of port 3000:
http://YOUR_COREOS_IP:3000Set the admin user, upstream DNS (I start with 1.1.1.1 / 1.0.0.1), and listen addresses. Then the UI is at http://YOUR_COREOS_IP/ on port 80. Confirm with sudo ss -tulpn | grep -E ':80|:3000|:53'.
Step 4: Configure nftables firewall
CoreOS may not ship firewalld, and nftables does the job. If you already layered firewalld for the beginner Pi-hole guide, pick one. Don’t run both with default drop policies.
Create the firewall configuration
sudo nano /etc/nftables.confAdd these rules (change 192.168.1.0/24 to your LAN subnet):
#!/usr/sbin/nft -f
flush ruleset
table inet filter { chain input { type filter hook input priority 0; policy drop;
# Allow established connections ct state established,related accept
# Allow loopback iif lo accept
# Allow DNS from LAN only ip saddr 192.168.1.0/24 udp dport 53 accept ip saddr 192.168.1.0/24 tcp dport 53 accept
# Allow AdGuard web interface from LAN ip saddr 192.168.1.0/24 tcp dport 80 accept
# Allow SSH from LAN only ip saddr 192.168.1.0/24 tcp dport 22 accept
# Allow ICMP ping icmp type echo-request accept }
chain forward { type filter hook forward priority 0; policy drop; }
chain output { type filter hook output priority 0; policy accept; }}Save and exit (Ctrl+X, Y, Enter in nano, or Ctrl+O / Ctrl+X).
If the host has a public address, these rules aren’t enough (no 3000, IPv6, or VPN interface). Add tcp dport 3000 from LAN if you still need the wizard.
IPv6: this only matches ip saddr (IPv4). For v6 clients, add matching ip6 saddr rules.
Test and apply the configuration
Check the syntax:
sudo nft -c -f /etc/nftables.confIf there are no errors, apply it:
sudo nft -f /etc/nftables.confKeep your SSH session open and test a second SSH login before you disconnect. A typo in the SSH rule means a drive to the homelab.
Enable firewall on boot
sudo systemctl enable nftablessudo systemctl start nftablesOn some FCOS builds, check the unit name with systemctl list-unit-files | grep nft. What matters is that /etc/nftables.conf loads on boot.
Verify the configuration
sudo nft list rulesetTest DNS from another device on your network:
nslookup google.com YOUR_COREOS_IPdig @YOUR_COREOS_IP example.comOnly your LAN can reach it now. Outbound still works (output policy accept).
If nslookup times out now but worked before nftables, your client isn’t in 192.168.1.0/24 (guest Wi-Fi, VPN, another VLAN). Widen the prefix or skip guest isolation.
Step 5: Test autostart on reboot
WantedBy=multi-user.target starts AdGuard Home on boot. Test it:
sudo rebootAfter the reboot:
sudo podman ps -asudo systemctl status adguardhome.service nftablessudo nft list ruleset | headIf adguardhome is running, you’re set. No systemctl enable needed, Quadlets handle autostart. nftables should still show the LAN-only rules.
Only point DHCP at this IP after the reboot and dig both work. For nightly host reboots, see CoreOS nightly reboots and schedule them when nobody needs DNS.
Notes
- Why no enable? Generated services in
/run/are transient. The[Install]section ties it to boot instead. - Tweaks: Older guides mention
HostnameorRestartPolicy. Those aren’t supported now. - Hostname: Defaults to
adguardhomefromContainerName. Foradguard-home, you’d need a workaround or a classic systemd service. - Setup URLs: wizard at http://your-server-ip:3000, then http://your-server-ip:80. Unlike Pi-hole, settings live in the UI, not env vars.
- Volumes:
adguardhome_workandadguardhome_confhold your config and data and are created on first run. Back them up if this is the house’s only DNS. - HTTPS on the UI: set it up in AdGuard behind the LAN firewall. Don’t expose 80 to the internet for a cert.
Troubleshooting
- Wizard never loads: container isn’t running, or nftables went on too early. Check
journalctl -u adguardhome.serviceandss -tulpn. - DNS works, UI doesn’t: you’re still on 3000 after the UI moved to 80, or 80 is blocked.
- Auto-update broke DNS at 4 AM: pin an image digest/tag, disable the timer, or check
podman auto-update --dry-run. - Conflict with systemd-resolved: if the host holds 53, disable the resolved stub like in the 2026 CoreOS Quadlet guide.
- SELinux volume denials: you dropped
:Z. Put it back.
That’s it! Enjoy ad-free browsing.
Best regards,
The Linux IT Guy