Commit Graph

274 Commits

Author SHA1 Message Date
infosave2007 57e331239c feat(xray): Implement universal client addition with fallback
- Added InstallProtocolManager::addClient and fallback logic for X-Ray VLESS
  to update server configuration (server.json) and restart container.
- Updated VpnClient::create to invoke InstallProtocolManager::addClient for
  scripted protocols, enabling dynamic user addition.
- Ensured UUID generation for X-Ray clients.
2026-01-24 14:08:43 +03:00
infosave2007 e4d4b4bdc0 feat(xray): Implement universal client addition with fallback
- Added InstallProtocolManager::addClient and fallback logic for X-Ray VLESS
  to update server configuration (server.json) and restart container.
- Updated VpnClient::create to invoke InstallProtocolManager::addClient for
  scripted protocols, enabling dynamic user addition.
- Ensured UUID generation for X-Ray clients.
2026-01-24 14:08:43 +03:00
infosave2007 dde0ff9ea1 fix(qr): Use raw VLESS URI in last_config->config
Instead of generating a JSON config for X-Ray, pass the raw VLESS URI string
wrapped in a JSON object  inside .
This matches the behavior of WireGuard config handling in the master branch
and is likely the expected format for Amnezia Android X-Ray import.
2026-01-24 13:48:57 +03:00
infosave2007 657fbf8df0 fix(qr): Use raw VLESS URI in last_config->config
Instead of generating a JSON config for X-Ray, pass the raw VLESS URI string
wrapped in a JSON object  inside .
This matches the behavior of WireGuard config handling in the master branch
and is likely the expected format for Amnezia Android X-Ray import.
2026-01-24 13:48:57 +03:00
infosave2007 174a2fb1e8 fix(qr): Add isThirdPartyConfig and reorder keys
- Added 'isThirdPartyConfig' => true to X-Ray config object. This flag is present in imported configs in Amnezia Android.
- Reordered keys so protocol object ('xray') comes before 'container' key, matching the order seen in WireGuard QR codes.
2026-01-24 13:45:56 +03:00
infosave2007 a508cc665c fix(qr): Add isThirdPartyConfig and reorder keys
- Added 'isThirdPartyConfig' => true to X-Ray config object. This flag is present in imported configs in Amnezia Android.
- Reordered keys so protocol object ('xray') comes before 'container' key, matching the order seen in WireGuard QR codes.
2026-01-24 13:45:56 +03:00
infosave2007 b2f42ec7ec fix(qr): Return to 12-byte Amnezia header but keep config wrapping
Reverting header to 12-byte format (0x07C00100 + compressedLen + uncompressedLen).
This header format is known to be scanned correctly by Amnezia app.
Previous failure with this header was due to missing config wrapping.
Now we have both: correct header AND correct content structure.
2026-01-24 13:42:20 +03:00
infosave2007 1006debc42 fix(qr): Return to 12-byte Amnezia header but keep config wrapping
Reverting header to 12-byte format (0x07C00100 + compressedLen + uncompressedLen).
This header format is known to be scanned correctly by Amnezia app.
Previous failure with this header was due to missing config wrapping.
Now we have both: correct header AND correct content structure.
2026-01-24 13:42:20 +03:00
infosave2007 939cba70b7 fix(qr): Use hybrid Chunked+Qt format for QR codes
The format that likely works with Amnezia Android is:
HEADER: 0x07C00100 (Magic 1984, Count 1, Id 0)
PAYLOAD: [UncompressedLen (4b)] + [Zlib Data]

This satisfies the Chunked QR check (magic 0x07C0) and then passes
the payload to qUncompress, which expects the 4-byte uncompressed length prefix.

Previous attempts failed because:
1. 12-byte header included compressedLen, which qUncompress interpreted as uncompressedLen (causing size mismatch error)
2. 4-byte header (Qt only) failed the Magic check
2026-01-24 13:38:32 +03:00
infosave2007 dc23a8f213 fix(qr): Use hybrid Chunked+Qt format for QR codes
The format that likely works with Amnezia Android is:
HEADER: 0x07C00100 (Magic 1984, Count 1, Id 0)
PAYLOAD: [UncompressedLen (4b)] + [Zlib Data]

This satisfies the Chunked QR check (magic 0x07C0) and then passes
the payload to qUncompress, which expects the 4-byte uncompressed length prefix.

Previous attempts failed because:
1. 12-byte header included compressedLen, which qUncompress interpreted as uncompressedLen (causing size mismatch error)
2. 4-byte header (Qt only) failed the Magic check
2026-01-24 13:38:32 +03:00
infosave2007 00affda8f2 fix(qr): Wrap X-Ray config in 'config' field inside last_config
Amnezia Android expects the contents of 'last_config' to be a JSON object
containing a 'config' field which holds the actual protocol configuration string.
Previously we were putting the configuration directly into 'last_config',
which caused the import to fail.
2026-01-24 13:34:13 +03:00
infosave2007 f5ab0ec2e3 fix(qr): Wrap X-Ray config in 'config' field inside last_config
Amnezia Android expects the contents of 'last_config' to be a JSON object
containing a 'config' field which holds the actual protocol configuration string.
Previously we were putting the configuration directly into 'last_config',
which caused the import to fail.
2026-01-24 13:34:13 +03:00
infosave2007 e283fdac1d fix(qr): Revert to original 12-byte Amnezia header format
The working QR format from Amnezia app uses:
- 12-byte header: version (0x07C00100) + compressedLen + uncompressedLen
- zlib compressed JSON data

Previously I incorrectly changed this to Qt qCompress format (4-byte header).
This commit reverts to the correct Amnezia-compatible format.
2026-01-24 13:26:24 +03:00
infosave2007 48f85365bd fix(qr): Revert to original 12-byte Amnezia header format
The working QR format from Amnezia app uses:
- 12-byte header: version (0x07C00100) + compressedLen + uncompressedLen
- zlib compressed JSON data

Previously I incorrectly changed this to Qt qCompress format (4-byte header).
This commit reverts to the correct Amnezia-compatible format.
2026-01-24 13:26:24 +03:00
infosave2007 45c0985ace fix(qr): Use Qt qCompress format for QR code encoding
Amnezia Android uses qUncompress which expects:
- 4-byte big-endian uncompressed length prefix
- zlib compressed data (gzcompress output)

Previously we used a custom 12-byte header (version, compressedLen, uncompressedLen)
which was incompatible with Qt's qUncompress.

This fix ensures X-Ray QR codes can be properly decoded by Amnezia VPN app.
2026-01-24 13:17:57 +03:00
infosave2007 644ee460af fix(qr): Use Qt qCompress format for QR code encoding
Amnezia Android uses qUncompress which expects:
- 4-byte big-endian uncompressed length prefix
- zlib compressed data (gzcompress output)

Previously we used a custom 12-byte header (version, compressedLen, uncompressedLen)
which was incompatible with Qt's qUncompress.

This fix ensures X-Ray QR codes can be properly decoded by Amnezia VPN app.
2026-01-24 13:17:57 +03:00
infosave2007 25ff0949ce 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 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 cbcd260498 fix: set xray default port to 443 to match android client 2026-01-23 20:07:27 +03:00
infosave2007 5bffc0fbbd fix: set xray default port to 443 to match android client 2026-01-23 20:07:27 +03:00
infosave2007 6b15cbc942 fix: add flow xtls-rprx-vision to xray server config 2026-01-23 19:55:56 +03:00
infosave2007 8fd8e19317 fix: add flow xtls-rprx-vision to xray server config 2026-01-23 19:55:56 +03:00
infosave2007 aa956e0ab2 fix: proper json escaping in xray install script 2026-01-23 19:33:58 +03:00
infosave2007 e11cb574c6 fix: proper json escaping in xray install script 2026-01-23 19:33:58 +03:00
infosave2007 0a274ec263 fix: update xray install script to correct variable expansion 2026-01-23 19:22:01 +03:00
infosave2007 c92696ad52 fix: update xray install script to correct variable expansion 2026-01-23 19:22:01 +03:00
infosave2007 c9fecb45da feat: replace native confirm with custom modal to fix auto-close issue 2026-01-23 19:08:41 +03:00
infosave2007 14eda839bc feat: replace native confirm with custom modal to fix auto-close issue 2026-01-23 19:08:41 +03:00
infosave2007 6303abd181 fix: prevent confirm dialog from closing immediately on delete buttons 2026-01-23 18:57:27 +03:00
infosave2007 690881803d fix: prevent confirm dialog from closing immediately on delete buttons 2026-01-23 18:57:27 +03:00
infosave2007 bbab877eac feat: ssh auth, protocol management, and cleanup 2026-01-23 17:55:40 +03:00
infosave2007 ea82b78a7d feat: ssh auth, protocol management, and cleanup 2026-01-23 17:55:40 +03:00
Oleg Kirichenko 60fc55fd47 Merge pull request #14 from AmneziaVPN/patch-1
Update VpnClient.php
2025-12-06 20:58:26 +03:00
Oleg Kirichenko 4995147bad Merge pull request #14 from AmneziaVPN/patch-1
Update VpnClient.php
2025-12-06 20:58:26 +03:00
AmneziaVPN 69c93b2f51 Update VpnClient.php
fix new ip
2025-11-29 23:21:14 +03:00
AmneziaVPN 0d21915ac7 Update VpnClient.php
fix new ip
2025-11-29 23:21:14 +03:00
infosave2007 97bbc36032 chore(update): update auto-update script (migrations handling & translations) 2025-11-14 09:56:47 +03:00
infosave2007 efa2ce8647 chore(update): update auto-update script (migrations handling & translations) 2025-11-14 09:56:47 +03:00
infosave2007 dfdf5da368 fix: Improve LDAP configuration loading with table existence check 2025-11-11 19:04:53 +03:00
infosave2007 a292222933 fix: Improve LDAP configuration loading with table existence check 2025-11-11 19:04:53 +03:00
infosave2007 669baf1ba7 fix: Ensure Tailwind CSS devtools configuration is set correctly 2025-11-10 18:01:52 +03:00
infosave2007 c94580bbea fix: Ensure Tailwind CSS devtools configuration is set correctly 2025-11-10 18:01:52 +03:00
infosave2007 d70ed1bbf3 chore: Add LDAP_FEATURE.md to gitignore 2025-11-10 18:01:52 +03:00
infosave2007 28d04df3e7 chore: Add LDAP_FEATURE.md to gitignore 2025-11-10 18:01:52 +03:00
infosave2007 e7e901f6e5 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 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 406d3439e7 chore: Update gitignore 2025-11-10 18:01:52 +03:00
infosave2007 40abe38616 chore: Update gitignore 2025-11-10 18:01:52 +03:00
Oleg Kirichenko 19d0e65a57 Merge pull request #4 from themgmd/master
Добавлена возможность подключить сервер с нестандартным ssh портом
2025-11-10 17:30:42 +03:00
Oleg Kirichenko 8a68f3828f Merge pull request #4 from themgmd/master
Добавлена возможность подключить сервер с нестандартным ssh портом
2025-11-10 17:30:42 +03:00