Skip to content
@routewarden

RouteWarden

Open-source, high-performance security middleware and edge defense tools.
RouteWarden Logo

RouteWarden

Open-source, high-performance security middleware and edge defense tools.

Routewarden - Zero-dependency edge defense for Traefik, Caddy & NGINX | Product Hunt

Documentation Site Interactive Playground Traefik Plugin Caddy Module NGINX Lua Module TCP Warden RouteWarden CLI Security Dashboard MIT License


About RouteWarden

RouteWarden builds lightweight, high-performance perimeter defense middleware for modern reverse proxies and container environments.

The goal is straightforward: intercept automated scanners, directory traversal, sensitive file probing, and path evasion attacks before requests reach your backend services.


Projects

A security middleware plugin for Traefik:

  • Scanner and Probe Defense: Blocks automated scans looking for .env, configuration backups, credentials, and exposed admin panels.
  • Anti-Evasion Engine: Normalizes complex path variations including multi-layer URL encoding (%252e), semicolon matrix parameters (/;param/.env), backslashes, and null bytes.
  • IP & CIDR Allowlisting: Supports granular client IP filtering with X-Forwarded-For, X-Real-IP, or socket RemoteAddr.
  • Flexible Responses: Return standard 404 Not Found cloaking, 403 Forbidden, custom JSON/HTML pages, Cloudflare Turnstile / hCaptcha challenges, silent TCP drops, or gzip bombs.
  • Pure Go: Built with standard library Go for seamless Yaegi runtime compatibility without external dependencies.

A native security module for the Caddy web server:

  • Native Caddy Middleware: Plugs directly into the Caddy v2 HTTP pipeline and Caddyfile syntax.
  • Shared Protection Engine: Uses RouteWarden's signature path normalization and zero-config sensitive path protection.
  • Declarative Caddyfile Directives: Easy to configure alongside your existing proxy definitions.
  • High Throughput: Minimal latency overhead, built to match Caddy's asynchronous architecture.

A zero-dependency Lua security module for NGINX & OpenResty:

  • OpenResty & NGINX Lua: Runs in the access_by_lua phase to block malicious requests before proxying.
  • Full Engine Parity: Complete feature parity with Go cores, including all 13 response modes, CIDR allowlists, query parameter inspection, and anti-evasion normalization.
  • Hardware Acceleration: Automatically utilizes PCRE JIT (ngx.re) when available with pure-Lua pattern matching fallback.
  • CrowdSec Integration: Emits single-line structured JSON security events for log acquisition and automated firewall remediation.

A high-performance Layer 4 (TCP/UDP) reverse proxy and defense daemon:

  • L4 Zero-Trust Defense: Network-layer security filtering for SSH, database (PostgreSQL, MySQL, Redis), DNS, BitTorrent, and custom protocols.
  • Dynamic Port Filtering & GeoIP: High-speed CIDR routing, IP blocking, and GeoIP country resolution.
  • Protocol Inspection Plugins: Deep protocol parsers with protocol anomaly detection.
  • Structured JSON Event Logs: Emits unified security telemetry to stdout and UDP syslog for SIEM and log ingestion.

cli (rwarden)

The developer CLI and configuration tool for RouteWarden:

  • Offline Path & Pattern Simulation: Test URLs, query params, and evasion vectors against RouteWarden's normalization engine without running a web server.
  • Configuration Validator & Linter: Validate and lint routewarden.json against the official schema and catch ReDoS flaws (rwarden audit).
  • Gateway Config Generator: Compile a unified routewarden.json specification directly into Traefik dynamic YAML, Docker Compose labels, Caddyfile directives, or OpenResty Lua tables.
  • Distributed Remote Shipper (rwarden push): Stream encrypted gateway access logs and security events from edge nodes and containers with X25519 ECDH + AES-256-GCM encryption.
  • Detached Daemon Mode: Native background process detachment (-d / --detach), PID tracking, and lifecycle management (rwarden status, rwarden stop).
  • Official Containers: Multi-arch images published to GHCR: cli:latest (full toolkit), shipper:latest (~6.2 MB micro-image for edge nodes), and dashboard:latest (standalone SOC UI).

Lightweight real-time threat intelligence and security monitoring powered by RouteWarden's embedded SOC engine and rwarden monitor:

  • One-Command Deployment: Launch an ultra-lightweight real-time security dashboard consuming only ~8MB RAM via rwarden dashboard (http://localhost:7890).
  • Interactive Security Panels & World Map: Real-time HTTP & L4 threat metrics, Leaflet geographic origin map, top offender IPs, target URL probes, and status distributions.
  • Live SSE Event Stream & Verdict Tabs: Sub-second SSE stream (stream.audit.live) with instant search, verdict filtering (BLOCK, TARPIT, ALLOW), and pause/resume controls.
  • Automated Container Discovery: Automatically discovers and streams logs from reverse proxy containers labeled routewarden=true or routewarden.logs=true via Docker socket.
  • Embedded SQLite Persistence: Zero-latency telemetry batching with WAL mode and 30-day auto-retention.

Documentation & Resources

Resource Description
Security Dashboard Complete guide to deploying RouteWarden's lightweight real-time SOC security dashboard and log monitoring.
CLI Documentation RouteWarden developer CLI installation, testing commands, and configuration generation guides.
TCP Warden Docs Layer 4 TCP/UDP security proxy configuration, protocol plugins (DNS, BitTorrent), and L4 IP access control.
Interactive Playground Test normalization rules, patterns, and response handling live in your browser.
Documentation Full guides, configuration reference, and architecture details for Traefik, Caddy, and NGINX.
Getting Started Quickstart setup with Docker Compose, Kubernetes, Caddyfile, and OpenResty.
Anti-Evasion Engine How path normalization and traversal protection work under the hood.
Recipes & Examples Setup examples for Immich, Zero-Trust Webhooks, Vaultwarden, and WordPress.

Ecosystem

  • traefik-warden: Traefik middleware plugin written in pure Go.
  • caddy-warden: Caddy v2 HTTP middleware module.
  • nginx-warden: NGINX & OpenResty Lua security module.
  • tcp-warden: High-performance Layer 4 TCP/UDP security proxy and daemon.
  • cli: Unified CLI developer tool (rwarden) for rule testing and gateway config generation.
  • Security Observability & Dashboard: Ultra-lightweight real-time SOC security dashboard and log monitoring.

Contributing & Community

RouteWarden is open source and community-driven. We welcome contributions, bug reports, and suggestions.

Popular repositories Loading

  1. traefik-warden traefik-warden Public

    Stop automated scanners from finding your .env files, backup archives, and admin endpoints before they ever reach your backend.

    Go 2

  2. routewarden.github.io routewarden.github.io Public

    Documentation for routewarden

    JavaScript 1

  3. caddy-warden caddy-warden Public

    Native security middleware for Caddy v2 to protect sensitive files, block reconnaissance bots, and stop path evasion tricks.

    Go 1

  4. .github .github Public

    1

  5. nginx-warden nginx-warden Public

    Stop sensitive file leaks (.env, .git, backups), neutralize path-evasion attacks, whitelist IPs, and challenge threats before requests reach your upstream services

    Lua 1

  6. cli cli Public

    Stop sensitive file leaks (.env, .git, backups), neutralize path-evasion attacks, whitelist IPs, and challenge threats before requests reach your upstream services

    Go 1

Repositories

Showing 9 of 9 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…