How zehome/mlvpn works
Main Components
a) Core Components:
• Privilege Separation Layer
• Cryptography Module
• Link Aggregation Engine
• Network Interface Management
• Control System
• Monitoring System
b) Platform-Specific Components:
• TUN/TAP Implementations (Linux/BSD/Darwin)
• System Integration Components
┌─ User Space ──────────────────────────────────────┐
• ┌─ Unprivileged Process ───────────────────┐ │
• ┌─ Core Components ─────────────────┐ │ │
• Link Aggregation Engine │ │ │
• Reordering System │ │ │
• Buffer Management │ │ │
• Monitoring & Statistics │ │ │
• ┘ │ │
• ┌─ Security Layer ─────────────────┐ │ │
• Salsa20 Encryption │ │ │
• Poly1305 Authentication │ │ │
• ┘ │ │
• ┘ │
• ┌─ Privileged Process ────────────────────┐ │
• TUN/TAP Interface Management │ │
• System Configuration │ │
• Privilege Separation Handler │ │
• ┘ │
• ┘
┌─ Kernel Space ────────────────────────────────────┐
• TUN/TAP Devices │
• Network Stack Integration │
• ┘
Key Relationships to Highlight
a) Vertical Relationships:
• Privilege separation between root and unprivileged processes
• Communication between user space and kernel space through TUN/TAP
• System call boundaries
b) Horizontal Relationships:
• Data flow between components
• Control flow between modules
• Security layer integration
Important Implementation Details
• Privilege separation architecture clearly
• Platform-specific implementations (Linux/BSD/Darwin)
• Cryptographic boundaries
• Monitoring and control paths
External Interfaces
• Network interfaces (physical)
• Virtual interfaces (TUN/TAP)
• Configuration interface
• Monitoring interface