Skip to content

Running AdGuard Home as a Podman Quadlet on Fedora CoreOS

Run AdGuard Home on Fedora CoreOS with a Podman Quadlet, turn on image auto-updates, and lock DNS and SSH to your LAN with nftables.

On this page
  1. Prerequisites
  2. Step 1: Create the Quadlet file
  3. Why these keys
  4. Step 2: Reload systemd
  5. Step 3: Start the container
  6. Step 4: Configure nftables firewall
  7. Create the firewall configuration
  8. Test and apply the configuration
  9. Enable firewall on boot
  10. Verify the configuration
  11. Step 5: Test autostart on reboot
  12. Notes
  13. Troubleshooting

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-resolved stub on 127.0.0.53 is OK. A host bind on *:53 is not.
  • Your timezone (America/Chicago in the sample).
Terminal window
sudo ss -tulpn | grep -E ':53|:80|:3000|:22'
sudo podman ps -a

Remove any leftover AdGuard/Pi-hole containers first.

Step 1: Create the Quadlet file

CoreOS reads Quadlets from /etc/containers/systemd/. Create adguardhome.container:

Terminal window
sudo nano /etc/containers/systemd/adguardhome.container

Paste this (use your own network info; the wizard handles the password and other settings):

[Unit]
Description=AdGuard Home Container
After=network-online.target
Wants=network-online.target
[Container]
ContainerName=adguardhome
Image=docker.io/adguard/adguardhome:latest
AutoUpdate=registry
Network=host
AddCapability=NET_ADMIN
Environment=TZ=America/Chicago
Volume=adguardhome_work:/opt/adguardhome/work:Z
Volume=adguardhome_conf:/opt/adguardhome/conf:Z
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=multi-user.target

Save 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: lets podman-auto-update update the image, so no podman pull by hand.
  • TimeoutStartSec=900: time for the first image pull.
  • :Z on 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:

Terminal window
sudo podman volume create adguardhome_work
sudo podman volume create adguardhome_conf

Step 2: Reload systemd

Terminal window
sudo systemctl daemon-reload

This generates a transient adguardhome.service in /run/systemd/generator/.

Terminal window
systemctl cat adguardhome.service

If that fails, the file name or directory is wrong (*.container under /etc/containers/systemd/).

Step 3: Start the container

Terminal window
sudo systemctl start adguardhome.service

Follow the logs:

Terminal window
sudo journalctl -u adguardhome.service -f

Check it’s running:

Terminal window
sudo podman ps -a
sudo systemctl status adguardhome.service

You should see your adguardhome container up and humming.

Enable AUTO-UPDATE:

Terminal window
sudo systemctl enable --now podman-auto-update.timer
systemctl list-timers podman-auto-update.timer

Only 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:3000

Set 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

Terminal window
sudo nano /etc/nftables.conf

Add 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:

Terminal window
sudo nft -c -f /etc/nftables.conf

If there are no errors, apply it:

Terminal window
sudo nft -f /etc/nftables.conf

Keep 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

Terminal window
sudo systemctl enable nftables
sudo systemctl start nftables

On 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

Terminal window
sudo nft list ruleset

Test DNS from another device on your network:

Terminal window
nslookup google.com YOUR_COREOS_IP
dig @YOUR_COREOS_IP example.com

Only 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:

Terminal window
sudo reboot

After the reboot:

Terminal window
sudo podman ps -a
sudo systemctl status adguardhome.service nftables
sudo nft list ruleset | head

If 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 Hostname or RestartPolicy. Those aren’t supported now.
  • Hostname: Defaults to adguardhome from ContainerName. For adguard-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_work and adguardhome_conf hold 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.service and ss -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