# Edgeweir: Self-Hosted, Open-Source CDN / WAF Control Plane, AGPL

**URL:** <https://www.nodeloc.com/t/topic/112189>\
**Category:** 编程开发\
**Tags:** 开源\
**Created:** [October 3, 2026, 10:51pm UTC](https://www.nodeloc.com/t/topic/112189 "2026-10-03T22:51:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvinli001](https://www.nodeloc.com/user_avatar/www.nodeloc.com/marvinli001/32/19383_2.png) [@marvinli001](https://www.nodeloc.com/u/marvinli001)\
**Post date:** [October 3, 2026, 10:51pm UTC](https://www.nodeloc.com/t/topic/112189/1 "2026-10-03T22:51:47Z")

</div>

**Edgeweir: Open-Source, Self-Hosted CDN / WAF Control Plane; Console + Edge Nodes Fully Open Source, No Feature Restrictions**

 ![image](https://www.nodeloc.com/uploads/default/original/3X/0/1/0190c5a402bd3e70271f49234bf17a9667655391.png)

GitHub:

> **[GitHub - marvinli001/edgeweir](https://github.com/marvinli001/edgeweir)**
>
> 通过在 GitHub 上创建帐户来为 marvinli001/edgeweir 开发做出贡献。

Nodes:

> **[GitHub - marvinli001/edgeweir-node](https://github.com/marvinli001/edgeweir-node)**
>
> 通过在 GitHub 上创建帐户来为 marvinli001/edgeweir-node 开发做出贡献。

Documentation:

> **[Edgeweir 文档 | Edgeweir](https://marvinli001.github.io/edgeweir/zh/)**
>
> 欢迎查阅 Edgeweir 官方技术文档。

Website:

> **[Edgeweir Cloud](https://edgeweir.com)**
>
> Edgeweir 是一套透明、现代的自托管 CDN 与边缘防护栈。

> If you find it useful, **give it a Star** ⭐ — it would mean a lot.

* * *

## Why I Built It

- There was no open-source, free, fully featured CDN control plane: WAF, CC protection, traffic scheduling, and node count should not be locked behind a license
- The GoEdge supply-chain poisoning incident: after the management console was compromised, malicious scripts were distributed via SSH to all nodes and injected into users’ websites. A CDN sits in the middle of all traffic, so its control plane must be open source and auditable

## Security Design

- The console does not store SSH credentials and has no remote execution channel
- Node private keys are generated locally and never leave the node; mTLS is used throughout after registration
- Registration tokens are single-use and only their SHA-256 hashes are stored
- cosign signature verification + per-package SHA-256 verification before node installation; console images are cosign-signed
- Certificate private keys and DNS API keys are stored using envelope encryption
- No callbacks, license checks, or telemetry

## Features

- **Origin and Caching** : origin pools / origin groups, active + passive health checks, session persistence, S3-signed origin pulls, WebSocket, expression-based cache rules, slicing, purging by URL / directory / Host / Cache-Tag, sitemap prewarming
- **HTTPS** : automatic issuance and renewal via ACME HTTP-01 / DNS-01, HTTP/2, HTTP/3, Brotli / Zstd / Gzip
- **WAF** : OWASP CRS (paranoia level, anomaly score thresholds, exclusions by rule ID), staged rules, rate limiting, redirects / rewrites, request and response header transformations
- **CC Protection** : four levels of challenges—Cookie / JS / PoW / image CAPTCHA—Under Attack mode, automatic tiered CC escalation at the node level, JA4 fingerprinting, IP blocking within seconds (global blocking via nftables kernel packet drops)
- **Layer 4 Forwarding** : TCP / UDP port pools, PROXY protocol v1 / v2, connection limits, add or remove ports without dropping connections
- **Traffic Scheduling** : regional probes, automatic removal of nodes based on node metrics, backup node groups / backup IPs, carrier routes (DNSPod, Tencent Cloud, Alibaba Cloud, Huawei Cloud)
- **Operations** : access logs and CSV export, optional ClickHouse, OpenAPI, 2FA / Passkey, audit logs, signed canary upgrades and rollbacks for nodes, backup and recovery

## Architecture

- Console: a single Node.js process and image, with PostgreSQL 18 as its sole dependency
- Nodes: Go agent + OpenResty, amd64 / arm64, Debian 12+ / Ubuntu 22.04+ / RHEL 9+
- Console and nodes: protobuf contract, Connect-RPC over mTLS
- End-to-end tests cover registration, deployments, caching, failover, challenges, CC, CRS, ban deployment (p95 ≤ 5s), Layer 4 forwarding, and traffic scheduling

## Deployment

> **[Edgeweir 文档 | Edgeweir](https://marvinli001.github.io/edgeweir/zh/)**
>
> 欢迎查阅 Edgeweir 官方技术文档。

Supports Docker Compose, BaoTa / aaPanel, Railway, [Fly.io](http://Fly.io), and [bunny.net](http://bunny.net). The console generates the node installation command; connect a node with a single command.

## Notes

- AGPL-3.0, suitable for compliant commercial use
- More features are under continuous development; Issues and forum feedback are welcome

One more request for a Star ⭐  
:ac17:

---

<div class="post-metadata">

**Author:** ![loc-yes](https://www.nodeloc.com/user_avatar/www.nodeloc.com/loc-yes/32/75262_2.png) [@loc-yes](https://www.nodeloc.com/u/loc-yes)\
**Post date:** [October 3, 2026, 11:36pm UTC](https://www.nodeloc.com/t/topic/112189/2 "2026-10-03T23:36:27Z")

</div>

Take a look.

---

<div class="post-metadata">

**Author:** ![qing](https://www.nodeloc.com/user_avatar/www.nodeloc.com/qing/32/1760_2.png) [@qing](https://www.nodeloc.com/u/qing)\
**Post date:** [October 4, 2026, 1:36am UTC](https://www.nodeloc.com/t/topic/112189/3 "2026-10-04T01:36:00Z")

</div>

Do you support HTTP/2 origin pulls?

---

<div class="post-metadata">

**Author:** ![WebURL](https://www.nodeloc.com/user_avatar/www.nodeloc.com/weburl/32/643_2.png) [@WebURL](https://www.nodeloc.com/u/WebURL)\
**Post date:** [October 4, 2026, 2:08am UTC](https://www.nodeloc.com/t/topic/112189/4 "2026-10-04T02:08:55Z")

</div>

Thanks for providing the resource information~

---

<div class="post-metadata">

**Author:** ![lovoup](https://www.nodeloc.com/user_avatar/www.nodeloc.com/lovoup/32/19024_2.png) [@lovoup](https://www.nodeloc.com/u/lovoup)\
**Post date:** [October 4, 2026, 3:33am UTC](https://www.nodeloc.com/t/topic/112189/5 "2026-10-04T03:33:04Z")

</div>

Thanks for sharing.

---

<div class="post-metadata">

**Author:** ![marvinli001](https://www.nodeloc.com/user_avatar/www.nodeloc.com/marvinli001/32/19383_2.png) [@marvinli001](https://www.nodeloc.com/u/marvinli001)\
**Post date:** [October 4, 2026, 5:30am UTC](https://www.nodeloc.com/t/topic/112189/6 "2026-10-04T05:30:28Z")

</div>

Supports HTTP/2 and gRPC for origin connections

---

<div class="post-metadata">

**Author:** ![Rison](https://www.nodeloc.com/user_avatar/www.nodeloc.com/rison/32/28946_2.png) [@Rison](https://www.nodeloc.com/u/Rison)\
**Post date:** [October 5, 2026, 10:38am UTC](https://www.nodeloc.com/t/topic/112189/7 "2026-10-05T10:38:11Z")

</div>

Impressive!

---

<div class="post-metadata">

**Author:** ![marvinli001](https://www.nodeloc.com/user_avatar/www.nodeloc.com/marvinli001/32/19383_2.png) [@marvinli001](https://www.nodeloc.com/u/marvinli001)\
**Post date:** [October 6, 2026, 2:44am UTC](https://www.nodeloc.com/t/topic/112189/8 "2026-10-06T02:44:21Z")

</div>

:ac17:
