6 Commits

Author SHA1 Message Date
Public relations & Virtual technology 0b69465da1 Merge pull request #68 from leonidorlov-hash/fix-awg2-h-ranges
Fix AWG 2.0: generate non-overlapping H-ranges instead of fixed values
2026-07-07 11:02:34 +03:00
anton_k 093c1403ea Fix: make start.sh read subnet dynamically from server config
start.sh was generated once at install time with a hardcoded
10.8.1.0/24 subnet in iptables/NAT rules. When the user changed
the Address field in the server config via the web panel, the
config and client configs updated correctly but start.sh kept
the old subnet — breaking NAT/forwarding for the new network.

Changes:
- start.sh now reads SUBNET from the config file at runtime
  via grep instead of using a compile-time hardcoded value
- save_server_config() regenerates start.sh on every config save
  so existing containers with old hardcoded scripts are fixed
- _get_next_ip() computes the base network address from the
  live config instead of AWG_DEFAULTS

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-03 10:12:41 +03:00
leonidorlov-hash 67c8a042da Fix AWG 2.0 H-parameters: use non-overlapping ranges instead of fixed values
- Changed generate_awg_params() to produce H1-H4 as min-max ranges
  when use_ranges=True (AWG and AWG2 protocols)
- Ranges are guaranteed non-overlapping by splitting [1B, 4.29B] into
  4 equal zones and picking a sub-range within each zone
- This matches the official AmneziaWG 2.0 spec requirement that
  H-ranges must not intersect
- Legacy AWG (use_ranges=False) continues to use fixed single values
- Fixes "Unable to set device configuration" error in AmneziaWG 2.0.1
  Windows client caused by overlapping H-ranges
2026-07-02 00:55:51 +03:00
Public relations & Virtual technology a62f9587ef Add public tunnels and fix protocol connection bugs
Add public tunnel management and fix connection stability issues

- Add Tunnels block to settings with Local Server, Cloudflare Quick Tunnel, and ngrok support
- Implement one-click tunnel install, enable, stop, and delete actions
- Persist tunnel PID and public URL state across panel restarts
- Improve tunnel process detection and cleanup on Windows, Linux, and Docker
- Add tunnel translations and README documentation

- Fix settings save 422 when server list is empty and Remnawave auto-create is disabled
- Fix AWG Legacy config path resolution by detecting actual wg0.conf/awg0.conf inside container
- Fix Xray client add/toggle/remove flow to use runtime API without restarting the container
- Fix WireGuard Show config calls by routing get_client_config through the unified manager adapter
2026-06-19 19:28:51 +03:00
DmitryTeplov182 c2217ce1e1 Fix local directory path for Telemt file uploads in telemt_manager.py 2026-06-03 18:15:44 +00:00
Public relations & Virtual technology 29def95df8 v1.4.3
Add SOCKS5 support
Add AdGuard Home integration
Add node status and latency tracking
Add drag-and-drop server management
Upgrade Xray from v1.8 to v26.3.27 with backward compatibility
Fix Telemt dependency installation
Extend Telegram bot to support all protocols
Improve server cleanup process
Enhance API structure (system routes moved to a separate group)
Add JWT token generation for external integrations
2026-05-04 16:01:06 +03:00