2026-01-28 22:37:47 +03:00
# OpenVPN Monitor & Profiler
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
A modern, full-stack management solution for OpenVPN servers. It combines real-time traffic monitoring, historical analytics, and comprehensive user profile/PKI management into a unified web interface.
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
## <20> ️ Project Architecture
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
The project is modularized into three core components:
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
| Component | Directory | Description |
| :--- | :--- | :--- |
| **Core Monitoring ** | `APP_CORE/` | Flask-based API (v3) for log parsing, real-time stats, and historical TSDB. |
| **Profiler ** | `APP_PROFILER/` | FastAPI-based module for managing PKI, Certificates, and Server Configs. |
| **User Interface ** | `APP_UI/` | Vue 3 + Vite Single Page Application (SPA) serving as the unified dashboard. |
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
## 📚 Documentation
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
Detailed documentation has been moved to the `DOCS/` directory.
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
- **[Installation & Deployment ](DOCS/General/Deployment.md )**: Setup guide for Linux (Alpine/Debian).
- **[Service Management ](DOCS/General/Service_Management.md )**: Configuring Systemd/OpenRC services.
- **[Security & Auth ](DOCS/General/Security_Architecture.md )**: 2FA, JWT, and Security details.
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
### API References
- **[Core Monitoring API ](DOCS/Core_Monitoring/API_Reference.md )**: Endpoints for stats, sessions, and history.
- **[Profiler Management API ](DOCS/Profiler_Management/API_Reference.md )**: Endpoints for profiles, system config, and control.
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
## 🚀 Quick Start (Dev Mode)
2026-01-09 11:04:37 +03:00
2026-01-28 22:37:47 +03:00
### 1. Core API (Flask)
2026-01-09 11:04:37 +03:00
```bash
2026-01-28 22:37:47 +03:00
cd APP_CORE
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 openvpn_api_v3.py
# Runs on :5001 (Monitoring)
2026-01-09 11:04:37 +03:00
```
2026-01-28 22:37:47 +03:00
### 2. Profiler API (FastAPI)
2026-01-09 11:04:37 +03:00
```bash
2026-01-28 22:37:47 +03:00
cd APP_PROFILER
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 main.py
# Runs on :8000 (Management)
2026-01-12 11:44:50 +03:00
```
2026-01-28 22:37:47 +03:00
### 3. Frontend (Vue 3)
2026-01-12 11:44:50 +03:00
```bash
2026-01-28 22:37:47 +03:00
cd APP_UI
npm install
npm run dev
# Runs on localhost:5173
2026-01-12 11:44:50 +03:00
```
---
2026-01-28 22:37:47 +03:00
## ⚠️ Important Notes
2026-01-09 10:30:49 +03:00
2026-01-28 22:37:47 +03:00
1. **Environment ** : Production deployment relies on Nginx to proxy requests to the backend services. See the [Deployment Guide ](DOCS/General/Deployment.md ).
2. **Permissions ** : The backend requires `sudo` or root privileges to manage OpenVPN processes and write to `/etc/openvpn` .