Installation
Quick Install (Linux / macOS)
Section titled “Quick Install (Linux / macOS)”curl -fsSL https://dwaar.dev/install.sh | shThis detects your OS and architecture, downloads the latest release, and installs to /usr/local/bin/dwaar.
Debian / Ubuntu (APT)
Section titled “Debian / Ubuntu (APT)”First-class .deb packages with systemd integration, automatic updates, and proper file ownership.
Add the Dwaar repository:
# Import the GPG keycurl -fsSL https://pkg.dwaar.dev/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/dwaar-archive-keyring.gpg
# Add the repositoryecho "deb [signed-by=/usr/share/keyrings/dwaar-archive-keyring.gpg] https://pkg.dwaar.dev/apt stable main" | \ sudo tee /etc/apt/sources.list.d/dwaar.list
# Installsudo apt updatesudo apt install dwaarWhat the .deb package includes:
| File | Purpose |
|---|---|
/usr/bin/dwaar | Main binary |
/usr/bin/dwaar-ingress | Kubernetes ingress controller binary |
/etc/dwaar/Dwaarfile | Default config (editable) |
/etc/dwaar/certs/ | TLS certificate storage |
/lib/systemd/system/dwaar.service | Systemd unit file |
/usr/share/doc/dwaar/ | Man page and changelog |
After install:
# Edit configsudo nano /etc/dwaar/Dwaarfile
# Start and enablesudo systemctl enable --now dwaar
# Check statussudo systemctl status dwaarjournalctl -u dwaar -fUpgrade:
sudo apt update && sudo apt upgrade dwaarThe systemd service handles graceful reload automatically on upgrade.
RHEL / Fedora / Rocky (RPM)
Section titled “RHEL / Fedora / Rocky (RPM)”# Add the repositorysudo tee /etc/yum.repos.d/dwaar.repo << 'EOF'[dwaar]name=Dwaarbaseurl=https://pkg.dwaar.dev/rpm/stableenabled=1gpgcheck=1gpgkey=https://pkg.dwaar.dev/gpg.keyEOF
# Installsudo dnf install dwaarAlpine (APK)
Section titled “Alpine (APK)”# Add the repositoryecho "https://pkg.dwaar.dev/alpine/stable" | sudo tee -a /etc/apk/repositorieswget -qO /etc/apk/keys/dwaar.rsa.pub https://pkg.dwaar.dev/gpg.pub
# Installsudo apk add dwaarmacOS (Homebrew)
Section titled “macOS (Homebrew)”brew tap permanu/dwaarbrew install dwaarFrom GitHub Releases
Section titled “From GitHub Releases”Download the binary for your platform from GitHub Releases:
| Platform | Binary | Checksum |
|---|---|---|
| Linux x86_64 | dwaar-linux-amd64 | dwaar-linux-amd64.sha256 |
| Linux ARM64 | dwaar-linux-arm64 | dwaar-linux-arm64.sha256 |
| macOS x86_64 | dwaar-darwin-amd64 | dwaar-darwin-amd64.sha256 |
| macOS ARM64 (Apple Silicon) | dwaar-darwin-arm64 | dwaar-darwin-arm64.sha256 |
# Download and verifywget https://github.com/permanu/Dwaar/releases/latest/download/dwaar-linux-amd64wget https://github.com/permanu/Dwaar/releases/latest/download/dwaar-linux-amd64.sha256sha256sum -c dwaar-linux-amd64.sha256
# Installchmod +x dwaar-linux-amd64sudo mv dwaar-linux-amd64 /usr/local/bin/dwaarDocker
Section titled “Docker”docker run -d \ --name dwaar \ -p 80:80 \ -p 443:443 \ -p 443:443/udp \ -v ./Dwaarfile:/etc/dwaar/Dwaarfile \ -v dwaar-data:/var/lib/dwaar \ ghcr.io/permanu/dwaar:latestSee Docker Deployment for volumes, compose, and health checks.
From Source
Section titled “From Source”Requires Rust 1.94+ and OpenSSL development headers:
# Ubuntu/Debiansudo apt install build-essential pkg-config libssl-dev
# Clone and buildgit clone https://github.com/permanu/Dwaar.gitcd Dwaarcargo build --releasesudo cp target/release/dwaar /usr/local/bin/For a PGO-optimized build (10-15% faster):
./scripts/pgo-build.shVerify Installation
Section titled “Verify Installation”dwaar version# Validate your configdwaar validateNext Steps
Section titled “Next Steps”- Quick Start — get a proxy running in 60 seconds
- Dwaarfile Reference — learn the config format
- Systemd Service — production service setup