____ __
/ __ \_________ ____ __ ______ / /__ ____ _
/ /_/ / ___/ __ \/ __ \/ / / / / _ \/ / _ \/ __ `/
/ ____/ / / /_/ / /_/ / /_/ / / __/ / __/ /_/ /
\/ \/ \____/ .___/\__, /_/\___/_/\___/\__,_/
/_/ /____/
Sovereign L7 Reverse Proxy & Perimeter Defense Gate
In ancient classical Greece, the Propylaea (Προπύλαια) stood as the monumental fortified gateway to the Acropolis of Athens—a majestic boundary shielding the sacred citadel within while welcoming legitimate citizens. Propylea serves the exact same role for your modern web architecture: a sovereign, ultra-low-memory L7 reverse proxy, multi-domain SNI TLS multiplexer, and perimeter defense gateway written in 100% pure Rust.
🏰 "From the wire to the RAM / All them botnets crash and slam."
- The Classical Monument: In Athenian antiquity, the Propylaea (Προπύλαια, from pro "before" + pyle "gate") was the monumental ceremonial gateway erected by Mnesikles atop the Acropolis. Consecrated under the protection of Athena Hygieia and Hermes Propylaios, it functioned as the sole physical threshold separating the chaotic outer world from the sacred inner precinct, filtering visitors and barring hostile desecrators.
-
Sovereign Architectural Role: In our sovereign software ecosystem,
propyleastands directly on ports80and443as the singular entry gateway for all network ingress. It terminates multi-domain TLS, intercepts automated AI scrapers and reconnaissance probes in$<15\text{ns}$ , and multiplexes clean requests upstream without passing hostile garbage to internal services. -
Mathematical Crest Geometry: Generated purely from scratch via parametric formulations, the crest embeds the golden ratio (
$\phi \approx 1.618$ ) portico colannade perspective, hyperbolic boundary shielding curves ($x^2/a^2 - y^2/b^2 = 1$ ), harmonic catenary portal arches, and a 72-division polar azimuth radar ring with precision perimeter ticks—transparent, modern, and mathematically unyielding.
Modern web infrastructure is plagued by two persistent problems:
- Memory Bloat & Resource Starvation: Conventional reverse proxies (Caddy, Traefik, Kong) carry heavy Go runtimes, garbage collection pauses, and multi-megabyte footprints that starve small VPS nodes and edge workstations.
- Passive Forwarding of Hostile Scanners: Traditional proxies blindly pass automated reconnaissance scans (
/.env,/wp-login.php,/.git/config) directly upstream to your web applications, wasting CPU cycles and exposing application attack surfaces.
Propylea solves both:
< 15 MBConstant RSS: Zero garbage collector, zero C runtime dependencies, and an autonomous memory vacuum that periodically returns unused heap pages directly to the Linux kernel vialibc::malloc_trim.- Nanosecond Perimeter Defense & Adversarial Payload Inspection: Powered by the sovereign
phylaxdefense pipeline, Propylea evaluates incoming request paths, query strings, and User-Agents in< 15 ns. Armed withphylax::PayloadGuard, it executes zero-allocation inspection against SQL injection, path traversal (../,%2e%2e%2f), command injection, SSRF cloud metadata probes (169.254.169.254), Server-Side Template Injection ({{7*7}}), NoSQL operator injection, and automated penetration testing suites (sqlmap,burpsuite,nikto,gobuster), deflecting them with stealth404 Not Foundor403 Forbiddenresponses (RFC 9309 compliance) before they ever reach your upstream services. - Automated Threat Intelligence: Seamlessly and asynchronously dispatches forensic dossiers to AbuseIPDB, RFC 5424 Syslog / CEF (Common Event Format) for local SIEMs, and custom webhooks (Slack, Discord, SIEM) with built-in token-bucket rate limiting to stay safely within free-tier quotas.
- 100% Sovereign Multi-Platform Parity: Engineered for cross-platform freedom—runs natively on Linux (
epoll), Windows (IOCP), and macOS (kqueue). Verified live on Linux VPS fleets and bare-metal Windows Server instances.
The Layman-to-Architect Mental Model:
In our sovereign infrastructure, security is designed like a fortified citadel following the One-Job-Principle (OJP). No single tool is bloated with multiple responsibilities.
[ Internet Client / Scanner ]
│
▼
🛡️ Ring 0: AEGIS (L3/L4 DNS)
Microsecond authoritative DNS & threat sinkhole.
Intercepts botnet C2, blocks trackers, defuses RRL floods.
│
▼
🌊 Ring 1: BASTION (L4 Firewall)
Drops DDoS & packet floods in microseconds via eBPF/XDP.
│
▼
🏛️ Ring 2: PROPYLEA (L7 Gateway)
Sovereign front door (ports 80 & 443). Terminates TLS,
sniffs TLS fingerprints, blocks HTTP smuggling (TE.CL),
routes domains, tunnels WebSockets, vacuums RAM (<15MB).
│
(Embedded Sentry)
▼
🏹 Ring 3: PHYLAX (WAF Engine)
Evaluates URI decoy trie in <15ns. Drops scanners with
stealth 404s, blocks AI scrapers, reports to AbuseIPDB.
│
▼
🚪 Ring 4: SLOW-SHIELD (L7.5)
Equalizes authentication timing (Argon2id dummy cycles)
and throttles cross-IP credential attacks.
│
▼
👑 Ring 5: APPLICATIONS
Sovereign Web Apps (:8080), Auth & APIs (:4410), Mesh Endpoints (:8082).
│
▼
📜 Audit: SOVEREIGN LEDGER
Appends every mutation to a SHA-256 Merkle chain.
🌉 Private Bridge: TALOS
Encrypted remote outpost bridge, 360° radar & telemetry.
(Edge web routing belongs exclusively to Propylea).
| Crate | Sovereign Role | Layer | Primary Responsibility | Replaces |
|---|---|---|---|---|
aegis |
Authoritative & Sinkhole DNS | L3/L4 | Microsecond Radix zone lookups, RRL & C2 sinkhole | bind9, dnsmasq, Cloud DNS |
bastion |
Microsecond IP Firewall | L4 | Bitwise Radix Trie packet filtering & SYN defense | iptables, ufw |
propylea |
L7 Gateway & Reverse Proxy | L7 | Multi-domain TLS, WebSocket tunneling, < 15MB RAM |
caddy, nginx, traefik |
phylax |
14-Layer Perimeter WAF | L7 Library | < 15ns honeypot trie, stealth 404s, AbuseIPDB reporting |
Proprietary Cloud WAFs, ModSecurity |
slow-shield |
Credential Velocity Governor | L7.5 | Distributed brute-force defense & Argon2id equalizer | Redis rate limiters |
talos |
Outpost Remote Tunnel Bridge | Tunnel | PTY terminal, 360° radar sweep, multi-channel bridge | TeamViewer, ngrok, SSH jumps |
sovereign-ledger |
Merkle Cryptographic Audit | Daemon | SHA-256 hash-chained immutable audit ledger | Datadog audit logs |
While Propylea delivers state-of-the-art L7 edge protection and nanosecond probe deflection, every systems architect must understand boundary separation:
The Universal Rule of Layer Boundaries:
No L7 reverse proxy, no matter how fast or resilient, can defend against attacks that the raw network wire fails to filter.
To build an enterprise-grade defense grid for your infrastructure, do not rely on an L7 gateway in isolation. Implement defense-in-depth across your own stack:
- Upstream DNS Boundary (L3/L4): Deploy authoritative DNS filtering with Response Rate Limiting (BCP 153 RRL) and threat sinkholing to deflect botnets, scrapers, and volumetric reflection attacks before they ever initiate a TCP handshake with your server.
- Kernel & Wire Boundary (L4): Harden your OS kernel (
sysctlTCP SYN cookies, TCP FIN/RST flood protections) and deploy packet-filtering firewall rules (eBPF/XDP or stateful iptables/nftables) to drop invalid TCP flag combinations and volumetric DDoS floods in microseconds. - Application Layer Gateway (Propylea - L7): Let Propylea handle TLS termination, request framing validation, SNI routing, and nanosecond decoy URI deflection.
- Deep Application Shielding: Embed fine-grained application controls (like
phylax) for cognitive human timing verification, honeypots, and sliding token-bucket rate limits.
| Dimension | Propylea | Caddy | Nginx | Traefik |
|---|---|---|---|---|
| Language & Safety | Pure Rust (100% memory safe) | Go (GC pauses) | C (Memory unsafety risk) | Go (GC pauses) |
| Memory Footprint (RSS) | < 15 MB (Active Vacuum) |
45 – 90 MB |
15 – 35 MB |
60 – 120 MB |
| Active Perimeter Defense | Native Built-in (< 15ns) |
❌ (Needs plugins) | ❌ (ModSecurity overhead) | ❌ (External WAF required) |
| AbuseIPDB Auto-Reporting | Native (Free-Tier Safe) | ❌ None | ❌ None (Requires Fail2Ban) | ❌ None |
| WebSocket Tunneling | Native Full-Duplex | Native | Native | Native |
| HTTP-to-HTTPS 301 Redirect | Zero-Allocation Instant | Native | Configuration directive | Native |
| Configuration Model | Single 15-line TOML | Caddyfile / JSON | Multi-file nginx.conf |
Complex YAML / Labels |
| Forensic Telemetry | Bounded Ring Buffer + Masking | Disk Logs Only | Disk Logs Only | Metrics endpoint |
Conventional wisdom claims that running a multi-domain TLS edge requires heavy Go runtimes (Caddy, Traefik), labyrinthine C configurations (Nginx), or expensive metered cloud proxies that turn your infrastructure into a recurring billing pipeline.
propylea breaks that dependency entirely. Engineered in pure Rust, it proves that an independent developer can operate an enterprise-grade L7 reverse proxy with automated SNI TLS termination, bi-directional WebSocket tunneling, and autonomous < 15ns threat deflection—consuming less memory than a single browser tab.
flowchart LR
subgraph HeavyIngress ["🏰 The Cloud Ingress Tax (The Old Empire)"]
direction TB
CloudProxy["Proprietary Cloud Proxies\n💸 Per-GB Bandwidth Tolls & Rent"]
GoProxy["Caddy / Traefik (Go GC)\n🐘 60MB - 120MB RSS Per Node"]
NginxProxy["Nginx + ModSecurity\n🧩 Fragile C & Regex Bottlenecks"]
end
subgraph PropyleaFrontier ["⚡ The Sovereign Ingress Frontier (Propylea)"]
direction TB
PropyleaCore["🏛️ Propylea Edge Gate\n🦀 Pure Rust 2021 · 0% GC Jitter"]
MemVacuum["Autonomous Memory Vacuum\n🧹 malloc_trim Page Returns (<15MB)"]
NanosecondTrie["In-Memory Threat Trie\n⚡ <15ns Crawler Deflection"]
end
HeavyIngress -.->|"Emancipated by"| PropyleaFrontier
propylea demonstrates what happens when human architectural discipline meets collaborative AI systems engineering. Rather than accepting the industry standard of multi-megabyte runtimes and garbage-collection pauses, the gateway was designed from first principles with an AI thinking partner to enforce absolute resource restraint: periodic libc::malloc_trim kernel page recovery, zero-allocation redirects, and < 15ns threat deflection. It stands as living proof that an independent developer pairing with advanced intelligence can forge infrastructure that outclasses bloated corporate alternatives.
Below is an authentic execution trace captured at the ingress boundary during a mass Internet scanning wave (including automated CVE-2026-109618 / CVE-2026-109619 ("PHP2Shell") exploit sweeps):
2026-10-24T09:34:29.398Z WARN [PROPYLEA-TLS-SPOOF] ClientHello / User-Agent mismatch
├── Remote IP: 198.51.100.16 (Automated PHP2Shell Scanner)
├── Target URI: GET /include/config.php -> /admin/config.php -> /phpinfo.php
├── Claimed UA: Chrome/124.0 (Missing mandatory RFC 8701 TLS GREASE extensions)
└── Action: Intercepted at TLS/L7 boundary & subnet quarantined (0B proxied)
2026-10-24T09:34:43.157Z WARN [PROPYLEA-EDGE] Hostile scan trapped
├── Remote IP: 198.51.100.42 (Anonymous VPN / Datacenter)
├── Target URI: GET /.env
├── Action: Intercepted in 11ns (stealth 404, 0B proxied)
└── Threat Intel: Reported to AbuseIPDB (Confidence: 100%)
2026-10-24T09:35:01.450Z INFO [PROPYLEA-ROUTER] Client proxied
├── Remote IP: 203.0.113.19
├── Target URI: GET /api/v1/status
├── Upstream: 127.0.0.1:8080 (rmediatech.com)
├── Duration: 142µs
└── Telemetry: Ring buffer (/api/v1/status?token=[REDACTED])
🤝 Intertwined Defense: propylea + phylax vs. Modern RCE Waves (CVE-2026-109618 / CVE-2026-109619)
When critical C-runtime memory-corruption vulnerabilities surface across the web—such as CVE-2026-109618 and CVE-2026-109619 ("PHP2Shell"), where longjmp() out-of-memory and fatal-error paths leave uninitialized or dangling freed pointers leading to unauthenticated RCE—traditional infrastructure scrambles to patch or pull servers offline.
Our sovereign architecture was engineered from day one so that an entire class of exploits is neutralized before it can even begin:
- Structural Memory Safety From the Ground Floor: Both
propylea(L7 TLS/SNI Reverse Proxy) andphylax(14-Layer In-Process & Standalone WAF) are written in 100% memory-safe Rust (rustls+hyper), eliminating Clongjmp()use-after-free and uninitialized heap states by design. - Dual-Layer Pre-Upstream Interception: Automated exploit bots impersonating modern browsers (
Chrome/124+) to probe/include/config.php,/admin/config.php,/setup.php, or/phpinfo.phpare caught immediately bypropylea's RFC 8701 TLSClientHelloGREASE verifier ([PROPYLEA-TLS-SPOOF]) andphylax's< 15nsDecoy URI & Radix Quarantine pipeline—dropping and quarantining the scanner at the wire before an upstream worker is ever touched.
Tip
Already Running propylea or phylax? Zero Action Required: For the operators and independent teams who have already downloaded and deployed propylea and/or phylax, your perimeter was already shielded before this advisory broke—with zero emergency patches, zero hotfix upgrades, and zero late-night downtime required. Both default decoy URI rulesets and TLS ClientHello GREASE verification neutralize these exploit waves automatically out of the box.
Single standalone binaries compiled with zero cloud tracking and zero external dependencies:
| Operating System | Architecture | Target Triplet | Pre-Built Archive | Release |
|---|---|---|---|---|
| Linux (Static Musl) | x86_64 |
x86_64-unknown-linux-musl |
propylea-v0.8.0-...-musl.tar.gz |
Release v0.8.0 |
| Linux (glibc) | x86_64 |
x86_64-unknown-linux-gnu |
propylea-v0.8.0-...-gnu.tar.gz |
Release v0.8.0 |
| Linux (ARM64) | aarch64 |
aarch64-unknown-linux-gnu |
propylea-v0.8.0-...-aarch64.tar.gz |
Release v0.8.0 |
| Windows | x86_64 |
x86_64-pc-windows-msvc |
propylea-v0.8.0-...-windows.zip |
Release v0.8.0 |
| macOS (Apple Silicon) | aarch64 (M1–M4) |
aarch64-apple-darwin |
propylea-v0.8.0-...-darwin-arm64.tar.gz |
Release v0.8.0 |
| macOS (Intel) | x86_64 |
x86_64-apple-darwin |
propylea-v0.8.0-...-darwin-x64.tar.gz |
Release v0.8.0 |
# Clone the repository
git clone https://github.com/rmediatech/propylea.git
cd propylea
# Linux & macOS: Native release compilation
cargo build --release
# Windows (PowerShell): Native PE32+ release compilation
cargo build --release
# Cross-compile Windows binary from Linux
cargo build --release --target x86_64-pc-windows-gnuCreate propylea.toml (or see propylea.example.toml):
[server]
http_bind = "0.0.0.0:80"
https_bind = "0.0.0.0:443"
[security]
enable_defense = true
enable_mirage = true
server_banner = "Propylea-Edge-Gateway/1.0"
# abuseipdb_api_key = "YOUR_KEY"
# syslog_cef = true
[maintenance]
hygiene_interval_secs = 300
memory_vacuum = true
[[routes]]
domains = ["example.com", "www.example.com"]
upstream = "127.0.0.1:8080"
cert = "/etc/letsencrypt/live/example.com/fullchain.pem"
key = "/etc/letsencrypt/live/example.com/privkey.pem"
websocket = true
# Optional: Hedged Tournament Racing (--features hedged-racing)
[[routes]]
domains = ["api.example.com"]
upstreams = ["127.0.0.1:8081", "127.0.0.1:8082"]
hedged_racing = true
cert = "/etc/letsencrypt/live/api.example.com/fullchain.pem"
key = "/etc/letsencrypt/live/api.example.com/privkey.pem"
websocket = trueWhen proxying to multi-upstream clusters, conventional round-robin or sequential failover exposes clients to tail latency spikes whenever one replica stutters or drops packets. When compiled with --features hedged-racing, Propylea leverages our sovereign hippodrome tournament engine:
- Idempotent Racing (
GET,HEAD,OPTIONS): Dispatches to the historically fastest upstream, followed speculatively by the #2 contender if the leader stalls beyond the adaptive EWMA delay window. The fastest response wins, and slower connections are aborted with zero memory leak. - Mutating Safety (
POST,PUT,DELETE): Enforces single-flight execution with microsecond failover, guaranteeing idempotency and preventing duplicate side-effects.
# Clean-room schema check without requiring live certificates
./target/release/propylea check --syntax-only --config propylea.toml
# Full check validating certificate files and path permissions
./target/release/propylea check --config propylea.toml
# Audit edge perimeter posture & Synthetic Mirage deception coverage
./target/release/propylea audit-surface --config propylea.toml --mirage
# Start the reverse proxy daemon
./target/release/propylea serve --config propylea.tomlPropylea automatically traps repeat hostile offenders, TLS impersonators, and honeylink probes in autonomous CIDR quarantine. Manage and inspect quarantined subnets with zero downtime via native CLI commands or the operator script:
# Live status of running daemon, control socket, and SQLite DB
./scripts/propylea-quarantine.sh status
# Manually quarantine an offending scanner IP or CIDR block
./scripts/propylea-quarantine.sh ban 198.51.100.42 \
--reason "Hostile path fuzzing" --duration 48h
./scripts/propylea-quarantine.sh ban 203.0.113.88 \
--exact --reason "Single host probe"
# Surgically unban an IP or CIDR in real-time (< 1µs)
./scripts/propylea-quarantine.sh unban 198.51.100.42
./scripts/propylea-quarantine.sh unban 198.51.100.0/24 203.0.113.15
# Clear all active quarantine blocks across RAM and SQLite WAL
./scripts/propylea-quarantine.sh clear -y
# Ingest historical bad actors from systemd journalctl
./scripts/propylea-quarantine.sh ingest-journal \
--hours 72 --exclude 198.51.100.42
# Inspect active enforced bans in Markdown, Text, or JSON
propylea quarantine list --active-only --format md
propylea quarantine list --format txt # Raw CIDRs for bastion
propylea quarantine list --format json # Structured JSON array
# Export standalone dark-mode HTML dashboard
propylea quarantine export /var/www/quarantine.html --format htmlFor red-team battle testing and multi-OS stress gauntlets, Propylea provides the standalone crucible_gate binary:
# Launch microsecond defensive gate with SQLite WAL quarantine
cargo run --release --bin crucible_gate -- \
--bind 0.0.0.0:8999 --db /tmp/quarantine.db
# Live Multi-OS Benchmark Results (Isolated Clean-Room Testbed):
# • Quarantine Latency: 9µs (first probe locks down /24 CIDR)
# • Subsequent Drops: 1µs - 3µs (HTTP 403, 0% upstream CPU)
# • Battle-Tested: Verified across Windows Server & Linux clean-rooms📘 Full Multi-Platform Setup: See the Multi-Platform Installation & Deployment Guide for production
systemd(Linux), Windows Service viaNSSM(Windows), andlaunchd(macOS).
Internet Ingress Traffic
│
┌─────────────────────┴─────────────────────┐
▼ ▼
Port 80 (HTTP) Port 443 (HTTPS)
Instant 301 Redirect SNI TLS Multiplexer
(Preserves URI + Query) │
┌───────────┴───────────┐
▼ ▼
Hostile Scanner Legitimate Client
(/.env, /wp-login.php) │
│ ▼
│ Upstream Router O(1)
│ (Host / :authority)
▼ │
[Stealth 404] ▼
(Drop in < 15ns) HTTP / WebSocket Proxy
│ │
Async Threat Report ▼
(AbuseIPDB / Webhooks) Backend Upstream
(127.0.0.1:8080 / etc.)
- 🛡️ Sovereign Defense Topology: Mental model, castle architecture, and complete disambiguation matrix between Aegis, Bastion, Propylea, Phylax, Slow-Shield, and Talos.
- 🩺 Troubleshooting & Incident Runbook: 30-second checklist, common error fixes (502s, port conflicts, TLS certs, WebSockets), and live diagnostic commands.
- 📘 Installation & Systemd Guide: Setup as a hardened systemd daemon on Ubuntu, Debian, Rocky, or Arch.
- ⚙️ Configuration Reference: Complete guide to all TOML directives and tuning parameters.
- 🔒 Let's Encrypt Guide: Zero-downtime certificate acquisition, automated renewal hooks, and permissions.
- 🛡️ Active Perimeter Defense: Deep dive into microsecond honeypots, rate limiting, and SIEM webhooks.
Dual-licensed under either:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
at your option.
propylea is part of the RMediaTech Sovereign Architecture—an independent engineering fleet built to emancipate lone developers, bootstrappers, startups, and non-profits from extractive cloud cartels, predatory metered billing, and invasive surveillance telemetry.
- 100% Sovereign & Standalone: Pure Rust compiled against Musl with zero runtime dependencies, zero telemetry tracking, and zero remote kill-switches. 100% offline-first custody.
-
Turn-Key Managed Infrastructure: For teams seeking production-ready ingress, real-time WebRTC media relays (
thoth), and cryptographic key vaults with predictable flat-rate pricing ($19 / $49 / $99 flat monthly quotas — zero per-minute tolls, zero bill shock), explore the fleet at rmediatech.com. - The Sovereign Arsenal: Pre-compiled, cryptographically signed release builds across Linux, macOS, and Windows are available in the Sovereign Arsenal.