Commit Graph

34 Commits

Author SHA1 Message Date
infosave2007 326421f07b feat: enhance AWG2 protocol handling by adding config directory management and fixing empty peer block in install script 2026-04-04 16:02:11 +03:00
infosave2007 1c4b080ee5 feat: Add AIVPN support and enhance client statistics tracking
- Introduced AIVPN server detection and statistics fetching in ServerMonitoring.
- Implemented AIVPN client statistics handling in VpnClient, including raw and offset counters for traffic.
- Enhanced AWG parameters to include S3 and S4.
- Updated database schema to accommodate new AIVPN statistics fields.
- Added a script for remote reset and reinstallation of protocols.
- Improved client view template to ensure proper display of connection instructions.
- Added translations for connection instructions in multiple languages.
- Ensured host-level NAT for AWG subnet in VpnServer.
2026-04-04 15:27:40 +03:00
infosave2007 0bc23e11db feat: add AWG2 protocol support and enhance API documentation for protocol management 2026-04-04 13:59:37 +03:00
infosave2007 ec5e045ab6 feat: update AIVPN migration script to output connection variables for web panel parsing 2026-04-04 11:02:06 +03:00
infosave2007 26a6ca526d feat: add support for awg2, mtproxy, and aivpn protocols, and implement user role-based access control. 2026-04-04 09:56:49 +03:00
infosave2007 a037f13325 feat: Add missing translations for protocol management UI and update protocol visibility 2026-02-14 18:23:57 +03:00
infosave2007 d1eb910e6a feat: Update client IP handling for X-Ray configuration and enable text content display by default 2026-02-14 11:39:04 +03:00
infosave2007 7b845e952d feat: Add online clients tracking and display on dashboard and server views 2026-01-30 21:07:30 +03:00
infosave2007 db881a39e3 feat: Implement single IP enforcement for Xray VLESS protocol with online tracking 2026-01-30 20:09:39 +03:00
infosave2007 47b97d9a76 feat: Enforce 1 user 1 connection for X-ray and fix active stats speed 2026-01-30 15:04:23 +03:00
infosave2007 7254bd1547 cleanup: remove duplicate amnezia-wg protocol from migration
Only amnezia-wg-advanced should be used (installed via migration 044).
The simple amnezia-wg was a duplicate causing confusion.
2026-01-27 15:33:57 +03:00
infosave2007 cb3165670a fix(awg): fix AWG Advanced install script - create container before generating keys
- Container now starts FIRST with docker run, then wg genkey is called inside it
- After config creation, explicitly reload wg0 interface with 'ip link del wg0' + 'wg-quick up'
- This ensures AWG obfuscation parameters (Jc, S1, S2, H1-H4) are applied to kernel
- Removed duplicate 'amnezia-xray' protocol from migration 047
2026-01-27 14:46:38 +03:00
infosave2007 ca51fa62dd feat: XRay Reality key backup and restoration
- Modified migrations/048_enable_xray_stats.sql to accept existing keys via env vars (PRIVATE_KEY, SHORT_ID)
- Updated InstallProtocolManager.php to extract and store reality_private_key after XRay installation
- Added key restoration logic in buildExports() to reuse saved keys during reinstallation
- Fixed VpnClient.php to correctly parse JSON stats output from XRay API
- Security fix: removed exposed port 2375 from docker-compose.yml (dind container)
2026-01-26 21:41:26 +03:00
infosave2007 a86e0cac9a Fix: Randomize AmneziaWG obfuscation parameters (H1..H4) in install script logic 2026-01-24 20:21:46 +03:00
infosave2007 e3f0e954ac Fix: Client deletion UI, Enable XRay stats, fix dns_servers schema 2026-01-24 19:53:23 +03:00
infosave2007 071c37cb39 fix(db): Add missing migration 047 to create protocols table 2026-01-24 15:35:41 +03:00
infosave2007 7734f54137 fix(xray): Fix X-Ray install script and QR code generation
- Fix docker run command in install script (use single line instead of
  backslash continuations which break when stored in MySQL)
- Handle new xray x25519 output format that uses 'Password' instead of 'Public key'
- Make addClientToServer method public for backup restore functionality
- Created migration 046 with complete fix for X-Ray VLESS protocol
2026-01-24 13:03:05 +03:00
infosave2007 5bffc0fbbd fix: set xray default port to 443 to match android client 2026-01-23 20:07:27 +03:00
infosave2007 8fd8e19317 fix: add flow xtls-rprx-vision to xray server config 2026-01-23 19:55:56 +03:00
infosave2007 e11cb574c6 fix: proper json escaping in xray install script 2026-01-23 19:33:58 +03:00
infosave2007 c92696ad52 fix: update xray install script to correct variable expansion 2026-01-23 19:22:01 +03:00
infosave2007 ea82b78a7d feat: ssh auth, protocol management, and cleanup 2026-01-23 17:55:40 +03:00
infosave2007 3d9cc02963 feat: Add LDAP/Active Directory integration with group-based access control
- Add PHP LDAP extension to Docker container
- Implement LdapSync class for authentication and user synchronization
- Add automatic user sync via cron (every 30 minutes)
- Create role-based access control system (admin, manager, viewer)
- Add LDAP configuration UI in settings
- Support for both Active Directory and OpenLDAP
- Group-to-role mapping with flexible configuration
- Add 50+ translations (EN + RU) for LDAP features
- Include comprehensive setup documentation
- Enhance Auth::login() with LDAP fallback
- Add LDAP settings page with connection testing
2025-11-10 18:01:52 +03:00
infosave2007 298d17bf75 fix: Update user creation script to use mysql_native_password authentication 2025-11-08 17:49:03 +03:00
infosave2007 4559a2f1a6 fix: Ensure user creation and privileges are granted for localhost 2025-11-08 17:46:30 +03:00
infosave2007 1596325e82 Add automatic user creation on database init 2025-11-08 17:41:33 +03:00
infosave2007 993758b309 feat: Implement migration procedure for translations table structure and insert new translations 2025-11-08 17:26:05 +03:00
infosave2007 257edb8226 feat: Implement server and client metrics collection and monitoring
- Added a new PHP script for collecting server metrics every 30 seconds.
- Created a ServerMonitoring class to handle metrics collection for CPU, RAM, Disk, and Network.
- Introduced database tables for storing server and client metrics.
- Updated server view template to display real-time metrics using Chart.js.
- Added translations for monitoring UI elements.
- Created a new monitoring template for detailed server metrics visualization.
- Implemented client speed tracking and display in the monitoring UI.
2025-11-08 15:35:17 +03:00
infosave2007 fc39346240 feat: добавлена возможность импорта из wg-easy и 3x-ui панелей
Основные изменения:
- Создан класс PanelImporter для парсинга и импорта клиентов
- Добавлена поддержка wg-easy (db.json)
- Добавлена поддержка 3x-ui (export JSON)
- Создана таблица panel_imports для отслеживания истории
- Добавлен UI для загрузки backup файлов при создании сервера
- Добавлены API endpoints: POST /api/servers/{id}/import и GET /api/servers/{id}/imports
- Автоматический импорт после деплоя сервера
- Переводы на всех 6 языках (EN, RU, ES, DE, FR, ZH)
- Обновлена документация в README

Функционал:
- Импорт клиентов с сохранением ключей и IP (wg-easy)
- Импорт клиентов с автогенерацией ключей (3x-ui)
- Поддержка экспирации и лимитов трафика из исходных панелей
- История импортов с информацией о количестве клиентов
- Обработка ошибок с детальным логированием
2025-11-08 12:40:43 +03:00
infosave2007 bbb0fbeeb9 feat: добавлена возможность ручного ввода времени и трафика
- Добавлены custom input поля для expiration (секунды) и traffic (МБ)
- Добавлена функциональность редактирования клиента
- Исправлена migration 007 (AFTER expires_at)
- Удалены дублирующиеся миграции (0025, 0044, 0053, 0057)
- Удалён старый init.sql (заменён на 001_init.sql)
- Добавлены переводы для custom полей на 6 языках
2025-11-08 10:45:05 +03:00
infosave2007 b6cf9cbab7 Add traffic limit functionality
- Add traffic_limit field to vpn_clients table (migration 007)
- Add traffic limit management methods in VpnClient class
- Add API endpoints: set-traffic-limit, traffic-limit-status, overlimit
- Add UI for setting limits when creating clients
- Add traffic limit column in clients table with visual indicators
- Add automatic traffic limit check via cron (bin/check_traffic_limits.php)
- Add translations for traffic limits (6 languages)
- Update README with traffic limit documentation
2025-11-08 09:56:25 +03:00
infosave2007 ea516bdd6f feat(database): add complete database schema with user, server, client, and translation tables 2025-11-08 09:14:59 +03:00
infosave2007 1f91f17f57 Add multilingual support with translations for German, Russian, French, and Chinese
Added time limits and backup functions for servers
2025-11-08 09:14:20 +03:00
infosave2007 a33af60f2d Add project files 2025-11-07 13:34:06 +03:00