infosave
b819eb35b0
fix(awg2): resolve issue #50 client key generation and install timeout
...
Issue #50 (AmneziaWG 2.0 / awg2): "Failed to generate client keys" when
creating clients, and "Invalid server response" on first install.
- VpnClient::generateClientKeys() built its own password-only SSH command
(PubkeyAuthentication=no, no sudo), bypassing VpnServer::executeCommand.
That broke key-based servers and hosts where docker requires sudo. Route
it through executeCommand so SSH-key auth and docker sudo auto-detection
apply, matching every other remote operation.
- VpnClient::getNextClientIP() read /opt/amnezia/awg/wg0.conf only; AWG2
uses awg0.conf. Read awg0.conf first, fall back to wg0.conf.
- deploy route: lift PHP time limit (set_time_limit(0) + ignore_user_abort)
so the multi-minute awg2 docker build is not killed mid-request, which
produced the truncated, non-JSON "Invalid server response".
- migration 070: drop `--no-cache` from the awg2 docker build so layers are
reused, making installs and retries fast and idempotent.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-05-29 10:31:59 +03:00
infosave2007
809b0ca63d
feat(migrations): Add WARP auto-integration with redsocks and iptables
...
- Implemented migration 067 to set up Cloudflare WARP with automatic routing for VPN client TCP traffic through a redsocks proxy.
- Included installation scripts for WARP and redsocks, along with iptables rules for traffic redirection.
- Added detection for X-Ray and patching of its outbound configuration.
- Created uninstall scripts to clean up configurations and remove installed packages.
fix(migrations): Enhance WARP install script for heredoc compatibility
- Implemented migration 068 to fix nested heredoc conflicts and streamline the WARP installation script for panel compatibility.
- Removed duplicate `set -eo pipefail` and adjusted formatting for better readability.
feat(migrations): Auto-detect AIVPN subnet for routing in WARP setup
- Implemented migration 069 to enhance the WARP installation script by adding detection for AIVPN subnets alongside existing AWG container detection.
- Updated routing logic to handle both container IPs and host-level VPN subnets.
- Ensured proper configuration of iptables for seamless traffic routing through the WARP proxy.
2026-04-25 10:40:21 +03:00
infosave2007
f04f9dd1cb
refactor: enhance SSH command handling and auto-detect sudo requirements for Docker commands
2026-04-24 16:15:04 +03:00
infosave2007
aae920a5c2
fix: update SSH command execution to use semicolons for reliability and improve disk usage calculation
2026-04-24 15:48:42 +03:00
infosave2007
c9792a5d5d
fix: update firebase/php-jwt dependency to version 7.0 issues/33 security advisories ("PKSA-y2cr-5h3j-g3ys")
2026-04-24 10:57:10 +03:00
infosave2007
63f3d202b6
fix: correct AIVPN byte counter mapping to match server-to-client and client-to-server traffic semantics
2026-04-24 07:16:09 +03:00
infosave2007
8eed687f66
refactor: consolidate metric collection into single SSH calls and add support for SSH key authentication
2026-04-24 07:07:57 +03:00
infosave2007
4c4b682256
fix: normalize SSH private key to prevent libcrypto errors caused by incorrect formatting
2026-04-24 06:48:18 +03:00
infosave2007
6c7bd421e3
refactor: migrate client management endpoints to web session auth and improve status validation
2026-04-24 06:44:08 +03:00
infosave2007
a8bb70a58f
fix: prevent secondary protocols from overwriting primary server configuration data
2026-04-23 18:31:05 +03:00
infosave2007
b99783e40f
fix: prioritize protocol metadata container name over server data during protocol installation
2026-04-23 18:04:20 +03:00
infosave2007
6006628f64
feat: add multi-protocol support for AWG2 with dynamic tool selection and configuration path resolution
2026-04-23 18:00:09 +03:00
infosave2007
e2767b3af2
chore: configure writable backup and log directories with appropriate permissions in Docker and PHP
2026-04-23 16:21:36 +03:00
infosave2007
ebcf09df08
fix: cast shell_exec output to string to prevent null pointer exceptions during split
2026-04-23 16:17:32 +03:00
infosave2007
8fd8dd092c
feat: implement AIVPN host binary fallback and update installation script for prebuilt binary
2026-04-21 18:56:05 +03:00
infosave2007
19e1107c9d
feat: new protocol QR
2026-04-20 21:34:27 +03:00
infosave2007
7bacc94e9c
feat: update QR code generation to use vpn:// format with JSON and zlib compression
2026-04-20 21:15:35 +03:00
infosave2007
c1282a058d
feat: add install_protocol field and server_protocols entry in save method
2026-04-20 20:55:24 +03:00
infosave2007
c29162ddb9
feat: add support for AWG2 QR code generation and vpn:// URL configuration
2026-04-20 19:52:33 +03:00
infosave2007
08e0a3499c
feat: update AWG2 configuration handling in InstallProtocolManager and VpnClient
2026-04-20 18:25:35 +03:00
infosave2007
2d8b73bc93
Merge branch 'master' of https://github.com/infosave2007/amneziavpnphp
2026-04-15 20:56:54 +03:00
infosave2007
ce2e26aff4
chore: remove obsolete binary image file
2026-04-15 20:45:21 +03:00
infosave2007
5d88728333
feat: enhance AWG2 support with additional parameters and backward compatibility improvements
2026-04-15 20:26:48 +03:00
infosave2007
1065b1d849
feat: enhance AWG2 support with additional parameters and backward compatibility improvements
2026-04-15 20:26:48 +03:00
infosave2007
191f85562a
feat: implement container name resolution and persistence for AIVPN servers
2026-04-11 11:11:18 +03:00
infosave2007
65b57344b4
feat: implement container name resolution and persistence for AIVPN servers
2026-04-11 11:11:18 +03:00
Oleg Kirichenko
edc73155cf
Fix duplicate step in VPN server setup
...
Removed duplicate step in VPN server setup instructions.
2026-04-10 12:15:05 +03:00
Oleg Kirichenko
58437c9d5c
Fix duplicate step in VPN server setup
...
Removed duplicate step in VPN server setup instructions.
2026-04-10 12:15:05 +03:00
infosave2007
af55843bc2
feat: enhance user roles migration with conditional column and index creation
2026-04-04 18:35:22 +03:00
infosave2007
17727f7b90
feat: enhance user roles migration with conditional column and index creation
2026-04-04 18:35:22 +03:00
infosave2007
ded0752d24
feat: enhance Dockerfile and README for improved installation and security practices
2026-04-04 18:29:38 +03:00
infosave2007
c590ec45fa
feat: enhance Dockerfile and README for improved installation and security practices
2026-04-04 18:29:38 +03:00
infosave2007
5eb07078ec
Merge feature/ssh-auth-draft into master — release v2.0.0
2026-04-04 18:13:12 +03:00
infosave2007
0098133520
Merge feature/ssh-auth-draft into master — release v2.0.0
2026-04-04 18:13:12 +03:00
infosave2007
8c4e7f65e7
feat: add available protocols section to README for better clarity
2026-04-04 18:07:55 +03:00
infosave2007
25ef9a7071
feat: add available protocols section to README for better clarity
2026-04-04 18:07:55 +03:00
infosave2007
3a1cfb1856
feat: enhance Docker command execution with improved error handling and path management
2026-04-04 17:22:38 +03:00
infosave2007
e4b83794c3
feat: enhance Docker command execution with improved error handling and path management
2026-04-04 17:22:38 +03:00
infosave2007
b0da2c300d
feat: update installation instructions for SQL migrations with improved clarity and consistency
2026-04-04 16:38:11 +03:00
infosave2007
228ae3f006
feat: update installation instructions for SQL migrations with improved clarity and consistency
2026-04-04 16:38:11 +03:00
infosave2007
ce3d74e49e
feat: enhance client speed metrics visualization with improved data processing and responsive table layout
2026-04-04 16:32:14 +03:00
infosave2007
3c143d5506
feat: enhance client speed metrics visualization with improved data processing and responsive table layout
2026-04-04 16:32:14 +03:00
infosave2007
d6eda37ebd
feat: enhance ServerMonitoring to resolve container names based on protocol and improve client metrics handling
2026-04-04 16:24:21 +03:00
infosave2007
7051d47b1b
feat: enhance ServerMonitoring to resolve container names based on protocol and improve client metrics handling
2026-04-04 16:24:21 +03:00
infosave2007
bb960645d7
feat: enhance VpnClient to support multi-protocol metadata and improve key generation error handling
2026-04-04 16:15:10 +03:00
infosave2007
ce664072fa
feat: enhance VpnClient to support multi-protocol metadata and improve key generation error handling
2026-04-04 16:15:10 +03:00
infosave2007
1574f54bef
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
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
51d5d13c41
feat: enhance SQL migration handling and add Docker installation instructions for remote servers
2026-04-04 15:48:15 +03:00
infosave2007
bc1d9d531b
feat: enhance SQL migration handling and add Docker installation instructions for remote servers
2026-04-04 15:48:15 +03:00