Self-Hosted Server Environment

Debian • WireGuard • AdGuard Home • Postfix • Docker

Overview

I built a fully self-hosted server on Debian to manage networking, mail, and privacy for my personal systems. The setup includes a WireGuard VPN for secure remote access, AdGuard Home for DNS-level ad blocking, and a Postfix/Dovecot mail stack with SPF, DKIM, and DMARC authentication. This project taught me how to deploy, secure, and maintain production-grade infrastructure from the ground up.

Linux Networking DevOps Docker WireGuard AdGuard Postfix

Stack & Technologies

Operating SystemDebian 12
NetworkingWireGuard VPN, iptables / ufw
DNS FilteringAdGuard Home
Mail StackPostfix, Dovecot, OpenDKIM
Security & AuthSPF, DKIM, DMARC, TLS (Certbot)
ContainerizationDocker, Docker Compose
MonitoringPrometheus, Grafana
AutomationBash Scripting, Cron Jobs

Architecture

[ Client Devices ]
        │
        ▼
[ WireGuard VPN Tunnel ]
        │
        ▼
[ Debian Host Server ]
   ├── AdGuard Home → DNS Filtering
   ├── Postfix + Dovecot → Mail Services
   ├── OpenDKIM / SPF / DMARC → Authentication
   ├── Docker Containers → Monitoring & Logging
   └── Certbot + Cron → Auto SSL Renewal
      

Key Features

What I Learned

Outcomes

Links