Skip to content

Aethel-Systems/AethelNet

Repository files navigation

AethelNet: Industrial-Grade Local Edge Cloud Infrastructure Platform

AethelNet is a "full-stack" infrastructure platform specifically designed for private networks and industrial edge environments. It integrates DNS governance, a high-performance HTTPS gateway, edge computing (JavaScript Workers), static site hosting (Pages), and an enterprise-grade mail system (AethelMail). It aims to provide a Cloudflare-like edge cloud experience for offline networks or enterprise intranets.


Core Architecture Design

AethelNet utilizes a four-layer plane architecture to ensure high decoupling between control flow and data flow:

  • Data Plane: Driven by efficient coroutines, it handles DNS resolution, TLS termination, WAF filtering, protocol routing, and edge caching.
  • Compute Plane: Features a built-in QuickJS engine, supporting the execution of JavaScript scripts at the edge with Cloudflare Workers compatibility.
  • Control Plane: Provides multi-tenant management, automated certificate issuance (Internal CA), TTL policy governance, and resource quota control.
  • User Plane: Integrates a visual Web Dashboard with bilingual support (Chinese/English), offering real-time traffic analytics and resource orchestration capabilities.

Core Features

1. Edge Gateway & Security

  • Smart DNS: Automatic TLD routing (default .iya), supporting deep TTL policy governance (min/max/negative cache/Stale-while-revalidate controls).
  • Dynamic TLS: Built-in Root Certificate Authority (Root CA) that automatically issues leaf certificates in real-time based on the accessed domain name.
  • WAF: Millisecond-level request inspection to defend against common attacks such as SQL injection, XSS, and cross-directory access.
  • Protocol Conversion: Supports automatic redirection from HTTP to secure HTTPS links.

2. AethelWorkers Compute Engine

  • Standard Compatibility: Follows the Fetch API standard (Request/Response/Headers).
  • Lightweight Isolation: Each Worker runs in an independent stack space with controllable memory limits and ultra-low startup latency.
  • Edge Persistence: Provides KV storage interfaces and distributed cache (Caches) support.

3. AethelMail System

  • Full Protocol Support: Offers standard SMTP access, IMAP access, and a proprietary lightweight JSON mail protocol.
  • Identity Integration: Mail accounts are deeply bound to the platform's Principal identity, supporting automated system mail notifications.

4. Automated O&M

  • Ubuntu Native Optimization: Automatically configures systemd-resolved routing, lo loopback address binding, and system-level CA trust.
  • Root/Rootless Modes: Supports both high-privilege production deployment and low-privilege (Rootless) development verification.

Technical Specifications

Metric Description
Language Python 3.11+ (Asynchronous IO)
Runtime QuickJS (C-level Binding)
Database SQLite (WAL mode) / SQLAlchemy 2.0
Web Framework FastAPI + Hypercorn (Dual-stack)
Network TLD .iya (Internal Yellow Area)
Default Gateway 1.8.8.2 (IPv4) / fd00:8::2 (IPv6)

Quick Start

Prerequisites

  • macOS 13+
  • Ubuntu 22.04 LTS or higher
  • Python 3.11+
  • System Privileges: sudo is required for production deployment.

Production Deployment (Ubuntu)

Run the following command to complete the full-stack installation, network interface binding, and system service registration:

sudo ./scripts/deploy-ubuntu-root.sh

Once deployed, you can access the dashboard via:

  • Dashboard URL: https://noteaethel.iya
  • Initial account: ae12321@aesystem.iya (Password: aem12345 or see bootstrap_admin_credentials.txt)

Developer Mode (Rootless)

If you only need to verify features or run in a restricted environment, use the rootless mode:

./scripts/rootless-test.sh

Note: In this mode, DNS runs on port 1053 and HTTPS runs on port 8443.


Directory Structure

aethelnet/
├── api/          # Core RESTful interfaces
├── core/         # Configuration, Security base, I18N
├── dns/          # DNS protocol stack & recursive resolver
├── mail/         # SMTP/IMAP protocol implementation
├── models/       # Database models (SQLAlchemy)
├── proxy/        # HTTP/HTTPS routing and forwarding logic
├── runtime/      # Worker JS runtime & Polyfills
├── services/     # Business logic (Certs, Accounts, WAF, etc.)
├── storage/      # File system abstraction
└── templates/    # Dashboard UI templates

Security Disclaimer

  1. Certificate Trust: Before accessing the dashboard for the first time, please download and trust the AethelNet Root CA via http://1.8.8.2/_aethelnet/install.
  2. Important Security Notice: This system is designed exclusively for internal networks. Exposing it directly to the public internet is not supported, may be insecure, and violates intended usage.

About

AethelNet is a "full-stack" infrastructure platform specifically designed for private networks and industrial edge environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors