返回资讯中心
外部精选
软件工程
#开发者实时流

Show HN: Propylea – Sub-microsecond L7 reverse proxy and active defense in Rust

/ __ \_________ ____ __ ______ / /__ ____ _

Hacker News 最新rickplus2026/11/10 · 今天30 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。


/ __ _________ ____ __ ______ / /__ ____ _ / // / __/ __ / __ / / / / / _ / / _ / __ `/ / __/ / / // / // / // / / __/ / __/ // / / / _/ ./_, //_/_/_/_,/ // /___/ 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, propylea stands directly on ports 80 and 443 as 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.

⚡ Why Propylea?

Modern web infrastructure is plagued by two persistent problems:

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).

🧭 Sovereign Tool Responsibilities at a Glance

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

🛡️ Understanding Layer Boundaries: The Defense-in-Depth Paradigm

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:

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

⚡ The Sovereign Frontier: Emancipation from Cloud Ingress Feudalism

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

Loading

🧬 Systems Provenance: Disciplined Engineering & Frontier Pair Programming

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:

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:

  1. Build Propylea (Linux, macOS, Windows)

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-gnu

  1. Configure Your Routes

Create 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 = true

🏇 Speculative Hedged Tournament Racing (hedged-racing Feature)

When 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:

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.toml

  1. Aut

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →