adguardhome
Network-wide ads & trackers blocking DNS server, running natively on FreeBSD.
Quick Start
Environment Variables
| Variable |
Description |
Default |
AGH_USER |
User to run as (bsd or root) |
bsd |
TZ |
Timezone for the container |
UTC |
S6_LOG_ENABLE |
Enable/Disable file logging |
1 |
S6_LOG_MAX_SIZE |
Max size per log file (bytes) |
1048576 |
S6_LOG_MAX_FILES |
Number of rotated log files to keep |
10 |
FreeBSD Notes
On FreeBSD, binding to port 53 requires root privileges. Set AGH_USER=root when using privileged ports directly (e.g., with macvlan/host networking).
First Run
- Access the setup wizard at
http://<container-ip>:3000
- Configure DNS listen address and port
- Configure web interface port
- Set admin username and password
- Complete the wizard
Logging
This image uses s6-log for internal log rotation.
- System Logs: Stored at /config/logs/daemonless/adguardhome/
- Application Logs: AdGuard Home logs in /config/work/
- Podman Logs: Output is mirrored to the console, so podman logs still works.
| Tag |
Source |
Description |
:latest |
Upstream Releases |
Latest upstream release |
:pkg |
FreeBSD Quarterly |
FreeBSD package (quarterly branch) |
:pkg-latest |
FreeBSD Latest |
FreeBSD package (latest branch) |
Volumes
| Path |
Description |
/config |
Configuration and data directory |
/config/conf |
AdGuardHome.yaml configuration |
/config/work |
Working directory (query logs, filters) |
Ports
| Port |
Protocol |
Description |
| 53 |
TCP/UDP |
DNS queries |
| 67-68 |
UDP |
DHCP server |
| 80 |
TCP |
Web UI (HTTP) |
| 443 |
TCP/UDP |
Web UI (HTTPS) / DNS-over-HTTPS |
| 784 |
UDP |
DNS-over-QUIC |
| 853 |
TCP |
DNS-over-TLS |
| 853 |
UDP |
DNS-over-QUIC |
| 3000 |
TCP |
Setup wizard (initial config) |
| 5443 |
TCP/UDP |
DNSCrypt |
| 6060 |
TCP |
Debug/profiling |
| 8853 |
UDP |
DNS-over-QUIC (alternate) |
Multi-Instance Sync
For redundant DNS with synchronized configuration, use adguardhome-sync.
Notes
- User: Configurable via
AGH_USER (default: bsd, set to root for port 53)
- Base: Built on
ghcr.io/daemonless/base (FreeBSD)
- First Run: Setup wizard configures DNS and web ports
Links