ALERT_DAEMON

Action deployed successfully.

OpenWrt Automated Infrastructure

PRODUCTION
Category: Network Engineering & Automation
OpenWrtWireGuardTailscaleSQM CAKEShell ScriptingDNS over HTTPSAutomation

// Infrastructure Path Flow

Automated Script ProvisioningSQM CAKE & DoH Edge SecurityTailscale & WireGuard MeshAsynchronous Telegram Telemetry

Project Overview

This project delivers a fully automated, version-controlled infrastructure deployment framework designed to transform consumer routers into enterprise-grade edge gateways. The primary motivation was to overcome standard vendor firmware limitations, eliminate severe multi-site bufferbloat, and enforce zero-trust security and absolute DNS privacy across disparate local networks.

By avoiding manual GUI configurations, this suite ensures that entire network environments can be programmatically provisioned, optimized, and monitored using lightweight, reproducible scripts.

System Architecture & Flow

The framework automates the network lifecycle from initial bare-metal flash to continuous cloud-backed monitoring.

  1. Edge Gateway Provisioning: High-performance JCG Q20 and ZTE E8820S routers are flashed with custom OpenWrt images. Upon first boot, a GitHub-hosted automation script environment optimizes the physical layer, configuring ZRAM memory expansions to handle high connection states alongside automated WISP/LAN client routing.
  2. Traffic Optimization & Privacy: The gateway applies dynamic Smart Queue Management (SQM CAKE) to automatically adjust to fluctuating bandwidth limits and eliminate bufferbloat. Simultaneously, network traffic is subjected to strict DNS over HTTPS (DoH) privacy protocols paired with ultra-lightweight, host-level ad and tracker blocking via adblock-lean.
  3. Zero-Trust Mesh Networking: To bridge independent locations securely, Tailscale and WireGuard daemons are compiled and configured directly into the automated deployment cycle, establishing a secure, encrypted overlay network without exposing external open ports.
  4. Asynchronous Telemetry & Alerting: System events trigger low-overhead OpenWrt hotplug scripts. These scripts communicate asynchronously with a Google Apps Script webhook, routing critical infrastructure telemetry, security notifications, and brute-force detection logs straight to a dedicated Telegram channel.

Key Technical Specifications

Deployment & Usage

The infrastructure suite can be deployed to a freshly flashed OpenWrt router via a simple bootstrap execution over SSH.

Sources available under public GPL v3.