Compare commits

..
5 Commits
Author SHA1 Message Date
orohi 80160d0ef4 Fix Cascade egress verify to bind awg0 IP (v2.2.1).
Use client-subnet policy routing for curl checks instead of cascade peer Address; soft-warn when echo services fail but the route is OK.
2026-07-27 04:27:00 +03:00
orohi ac76a0e540 Release v2.2.0: restore safe Cascade double-VPN for servers.
Reintroduce entry-to-exit AmneziaWG/WireGuard cascade inspired by ryderams/amneziawg-cascade, with handshake and egress checks and no remote curl|bash.
2026-07-27 04:09:16 +03:00
orohi bf7bd16fcd Release v2.1.0: mark NaiveProxy stable with client notes.
Stable NaiveProxy; note that v2rayN must not be used, Karing is confirmed, other clients are untested.
2026-07-26 11:23:10 +03:00
orohiandCursor 24e793d943 Add NaiveProxy client hint for v2rayN IPv6 DNS failures.
Show guidance when copying config if latency fails due to Google DNS over IPv6.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 10:31:41 +03:00
orohiandCursor 415cfea5eb Fix NaiveProxy share links to always include port 443.
v2rayN treated links without an explicit port as invalid/80 and failed TLS.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 10:26:37 +03:00
10 changed files with 4327 additions and 2736 deletions
+25 -2
View File
@@ -63,7 +63,7 @@ Configuration panel for system parameters and preferences:
* **Classic WireGuard**: Standard, high-performance WireGuard protocol for unmatched speed and broad device compatibility with traffic monitoring support.
* **Xray (XTLS-Reality)**: Stealthy protocol that masks VPN traffic as standard HTTPS browsing. Pinned to **Xray-core v26.x**; transparently reads both the **panel layout** (`meta.json` + `clientsTable.json`) and the **native Amnezia client layout** (`xray_*.key` files + `clientsTable`), so a node first installed via the official mobile/desktop app can be attached to the panel without re-installation.
* **Hysteria 2**: QUIC/HTTP3 proxy from [apernet/hysteria](https://github.com/apernet/hysteria) via `tobyxdd/hysteria:v2` — Let's Encrypt TLS, salamander obfuscation, password auth, `hy2://` share links. Per-server SSL domain/email defaults, renew from settings; install requires free TCP **80** and **443**.
* **NaiveProxy**: HTTPS/HTTP2 camouflage proxy via [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) (Caddy + [klzgrad/forwardproxy](https://github.com/klzgrad/forwardproxy) naïve fork). ACME TLS on the domain, per-client basic auth, `naive+https://` share links. Requires free TCP **80** and **443**.
* **NaiveProxy** (stable): HTTPS/HTTP2 camouflage proxy via [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) (Caddy + [klzgrad/forwardproxy](https://github.com/klzgrad/forwardproxy) naïve fork). ACME TLS on the domain, per-client basic auth, `naive+https://` share links. Requires free TCP **80** and **443**. **Use Karing** as the client — do **not** use v2rayN; other clients are untested.
* **Telemt (Telegram MTProxy)**: High-performance Telegram MTProxy with TLS emulation and comprehensive management (quotas, IP limits, real-time session tracking). Robust install path that auto-configures Docker's official apt/yum repository when needed.
* **Cloudflare WARP**: Add and manage WARP-powered connectivity from the panel for routing and network flexibility.
* **🛠 Services**:
@@ -79,6 +79,11 @@ Configuration panel for system parameters and preferences:
* **Reboot** the server directly from the UI.
* Strictly concurrent protocol status polling — all supported protocols/services checked in parallel for immediate feedback.
* **Asynchronous Processing**: Resilient, non-blocking background architecture prevents the UI panel from freezing, even if remote endpoints hang.
* **🔁 Cascade (double VPN)**:
* Route clients through an **entry** AmneziaWG/WireGuard server to an **exit** server (country-block bypass).
* Approach inspired by [ryderams/amneziawg-cascade](https://github.com/ryderams/amneziawg-cascade) (AWG2 entry→exit); applied via panel SSH — **no remote curl|bash** script download.
* Handshake wait + optional egress verify (curl --interface → ifconfig.me); exit return route persisted like ryderams vps2.
* Users keep using the **ENTRY** client config only — do not share the exit cascade peer.
* **🧩 Marketplace & Templates**:
* Market templates provide quick presets for installing and configuring supported protocols and services (including **Hysteria 2**).
* Multi-protocol management lets you run and control multiple protocol instances on the same server.
@@ -222,6 +227,24 @@ GitHub Actions workflows in `.github/workflows/`:
## 📋 Fix / changelog (this fork)
### v2.2.1
* **Cascade egress verify fix**: bind curl to ENTRY `awg0`/`wg0` IP (client-subnet policy route), not cascade peer Address.
* Soft-warn (no rollback) when policy route via `cascade` is OK but public-IP echo services fail.
### v2.2.0
* **Cascade (double VPN) restored** — stable entry→exit tunnel for AmneziaWG / WireGuard.
* Inspired by [ryderams/amneziawg-cascade](https://github.com/ryderams/amneziawg-cascade); logic runs over panel SSH (**no remote curl|bash**).
* Safety: require exit **handshake** when enabled; optional **egress verify**; subnet conflict check; exit `/32` return route with start.sh markers.
* UI on the server page with per-step settings (pin exit route, MSS clamp, verify egress, …). Defaults prefer **awg2**.
### v2.1.0
* **NaiveProxy — stable**: production-ready install (Caddy + klzgrad/forwardproxy), share links always include `:443`.
* **Client notes (important)**:
* **Do not use v2rayN** with NaiveProxy (broken DNS/IPv6 behaviour → latency 1 ms even when the server is fine).
* **Karing** — confirmed working.
* Other clients — untested / use at your own risk.
* Share-link and config UI hints updated accordingly.
### v2.0.0-beta
* **NaiveProxy** (Beta): install [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) server via Caddy + naïve [forwardproxy](https://github.com/klzgrad/forwardproxy) — domain TLS (ACME), per-client basic auth, `naive+https://` share links.
* Marketplace / server page / users / invites / Telegram / backups include NaiveProxy.
@@ -245,7 +268,7 @@ GitHub Actions workflows in `.github/workflows/`:
### v1.6.0
* **3x-ui multi-panel**: register several 3x-ui servers in Settings; pick a panel and load VLESS inbounds over its API when creating users/invites (share link comes from 3x-ui).
* **Docker / CI**: refreshed `Dockerfile` + compose, `.env.example`, CI checks, GHCR image workflow.
* **Cascade removed** for now (pending redesign — showed active while internet often did not work).
* **Cascade** was temporarily removed in this release (redesigned and restored in **v2.2.0**).
* **WG/AWG backups**: ZIP export of client `.conf` + restore with loading feedback.
* **API performance**: in-memory data cache, faster server check/stats.
* **Share / guest**: one-tap “Copy key”.
+258 -1
View File
@@ -46,6 +46,7 @@ from managers.awg_manager import AWGManager
from managers.xray_manager import XrayManager
from managers.wireguard_manager import WireGuardManager
from managers.backup_manager import BackupManager
from managers.cascade_manager import CascadeManager, normalize_settings, DEFAULT_SETTINGS as CASCADE_DEFAULT_SETTINGS
import telegram_bot as tg_bot
# Configure logging
@@ -101,7 +102,7 @@ else:
application_path = os.path.dirname(__file__)
DATA_FILE = os.path.join(application_path, 'data.json') # legacy JSON; used only for one-shot import / export
CURRENT_VERSION = "v2.0.0-beta"
CURRENT_VERSION = "v2.2.1"
RELEASES_REPO_URL = "https://git.evilfox.cc/test2/Amnezia-Web-Panel-main"
RELEASES_API_LATEST = "https://git.evilfox.cc/api/v1/repos/test2/Amnezia-Web-Panel-main/releases/latest"
BIN_DIR = os.environ.get('TUNNEL_BIN_DIR', os.path.join(application_path, 'bin'))
@@ -1742,6 +1743,24 @@ class HysteriaSettingsRequest(BaseModel):
email: Optional[str] = None
renew_ssl: bool = False
class CascadeSetupRequest(BaseModel):
entry_protocol: str = 'awg2'
exit_server_id: Optional[int] = None
exit_protocol: str = 'awg2'
enabled: bool = True
# Per-step cascade tuning
pin_exit_route: Optional[bool] = True
remove_eth_masquerade: Optional[bool] = True
force_forward: Optional[bool] = True
mss_clamp: Optional[bool] = True
wait_handshake: Optional[bool] = True
handshake_timeout_sec: Optional[int] = 25
allowed_ips: Optional[str] = '0.0.0.0/0'
keep_exit_dns: Optional[bool] = False
vpn_subnet_override: Optional[str] = ''
table_id: Optional[int] = 200
rule_priority: Optional[int] = 100
verify_egress: Optional[bool] = True
class ProtocolRequest(BaseModel):
protocol: str = 'awg'
@@ -3231,6 +3250,244 @@ async def api_hysteria_update_settings(request: Request, server_id: int, req: Hy
return JSONResponse({'error': str(e)}, status_code=500)
@app.post('/api/servers/{server_id}/cascade', tags=["Protocols"])
async def api_cascade_get(request: Request, server_id: int):
"""Return saved cascade settings and live tunnel status for this (entry) server."""
if not _check_admin(request):
return JSONResponse({'error': 'Forbidden'}, status_code=403)
try:
data = await asyncio.to_thread(load_data)
if server_id >= len(data['servers']):
return JSONResponse({'error': 'Server not found'}, status_code=404)
server = data['servers'][server_id]
cascade = dict(server.get('cascade') or {})
live = {'enabled': False, 'up': False}
entry_proto = cascade.get('entry_protocol') or ''
if cascade.get('enabled') and entry_proto and CascadeManager.is_wg_family(entry_proto):
def _status():
ssh = get_ssh(server)
ssh.connect()
try:
return CascadeManager(ssh).status(entry_proto)
finally:
ssh.disconnect()
live = await asyncio.to_thread(_status)
return {
'cascade': cascade,
'live': live,
'defaults': CASCADE_DEFAULT_SETTINGS,
'servers': [
{
'id': i,
'name': s.get('name') or s.get('host'),
'host': s.get('host'),
'protocols': list((s.get('protocols') or {}).keys()),
}
for i, s in enumerate(data['servers']) if i != server_id
],
}
except Exception as e:
logger.exception("Error reading cascade status")
return JSONResponse({'error': str(e)}, status_code=500)
@app.post('/api/servers/{server_id}/cascade/setup', tags=["Protocols"])
async def api_cascade_setup(request: Request, server_id: int, req: CascadeSetupRequest):
"""Enable or disable double-VPN cascade: clients → this entry → exit server."""
if not _check_admin(request):
return JSONResponse({'error': 'Forbidden'}, status_code=403)
if not CascadeManager.is_wg_family(req.entry_protocol):
return JSONResponse({'error': 'Cascade supports WireGuard / AmneziaWG only'}, status_code=400)
if req.enabled and not CascadeManager.is_wg_family(req.exit_protocol):
return JSONResponse({'error': 'Cascade supports WireGuard / AmneziaWG only'}, status_code=400)
try:
data = await asyncio.to_thread(load_data)
if server_id >= len(data['servers']):
return JSONResponse({'error': 'Server not found'}, status_code=404)
entry = data['servers'][server_id]
settings = normalize_settings({
'pin_exit_route': req.pin_exit_route,
'remove_eth_masquerade': req.remove_eth_masquerade,
'force_forward': req.force_forward,
'mss_clamp': req.mss_clamp,
'wait_handshake': req.wait_handshake,
'handshake_timeout_sec': req.handshake_timeout_sec,
'allowed_ips': req.allowed_ips,
'keep_exit_dns': req.keep_exit_dns,
'vpn_subnet_override': req.vpn_subnet_override,
'table_id': req.table_id,
'rule_priority': req.rule_priority,
'verify_egress': req.verify_egress,
})
if not req.enabled:
def _disable():
ssh = get_ssh(entry)
ssh.connect()
try:
return CascadeManager(ssh).disable(
req.entry_protocol,
settings=dict((entry.get('cascade') or {}).get('settings') or settings),
)
finally:
ssh.disconnect()
result = await asyncio.to_thread(_disable)
if result.get('status') == 'error':
return JSONResponse({'error': result.get('message', 'Failed to disable cascade')}, status_code=500)
prev = dict(entry.get('cascade') or {})
entry['cascade'] = {
'enabled': False,
'entry_protocol': req.entry_protocol or prev.get('entry_protocol'),
'exit_server_id': prev.get('exit_server_id'),
'exit_protocol': prev.get('exit_protocol') or req.exit_protocol,
'settings': settings,
'updated_at': datetime.now().isoformat(timespec='seconds'),
}
async with DATA_LOCK:
await asyncio.to_thread(save_data, data)
return {'status': 'success', 'cascade': entry['cascade']}
if req.exit_server_id is None:
return JSONResponse({'error': 'exit_server_id is required'}, status_code=400)
if req.exit_server_id < 0 or req.exit_server_id >= len(data['servers']):
return JSONResponse({'error': 'Exit server not found'}, status_code=404)
if req.exit_server_id == server_id:
return JSONResponse({'error': 'Entry and exit servers must be different'}, status_code=400)
exit_srv = data['servers'][req.exit_server_id]
def _enable():
exit_ssh = get_ssh(exit_srv)
exit_ssh.connect()
try:
exit_mgr = get_protocol_manager(exit_ssh, req.exit_protocol)
clients = _manager_call(exit_mgr, 'get_clients', req.exit_protocol) or []
cascade_name = f"cascade-from-{(entry.get('name') or entry.get('host') or 'entry')[:40]}"
cascade_name = re.sub(r'[^\w.\-]+', '_', cascade_name).strip('._') or 'cascade-entry'
existing = None
for c in clients:
ud = c.get('userData') or {}
if ud.get('clientName') == cascade_name or ud.get('cascade_entry_server_id') == server_id:
existing = c
break
if existing:
client_id = existing.get('clientId')
conf = _manager_call(
exit_mgr, 'get_client_config', req.exit_protocol,
client_id, exit_srv['host'],
(exit_srv.get('protocols') or {}).get(req.exit_protocol, {}).get('port', '55424'),
)
else:
add_res = _manager_call(
exit_mgr, 'add_client', req.exit_protocol, cascade_name,
exit_srv['host'],
(exit_srv.get('protocols') or {}).get(req.exit_protocol, {}).get('port', '55424'),
)
if not add_res.get('client_id'):
raise RuntimeError(add_res.get('message') or 'Failed to create cascade peer on exit')
client_id = add_res['client_id']
conf = add_res.get('config')
if not conf:
conf = _manager_call(
exit_mgr, 'get_client_config', req.exit_protocol,
client_id, exit_srv['host'],
(exit_srv.get('protocols') or {}).get(req.exit_protocol, {}).get('port', '55424'),
)
try:
table = exit_mgr._get_clients_table(req.exit_protocol) if hasattr(exit_mgr, '_get_clients_table') else []
for row in table:
if row.get('clientId') == client_id:
row.setdefault('userData', {})['cascade_entry_server_id'] = server_id
if hasattr(exit_mgr, '_save_clients_table'):
exit_mgr._save_clients_table(req.exit_protocol, table)
break
except Exception:
pass
finally:
exit_ssh.disconnect()
entry_ssh = get_ssh(entry)
entry_ssh.connect()
try:
applied = CascadeManager(entry_ssh).apply(
req.entry_protocol,
conf,
exit_srv.get('host') or '',
settings=settings,
)
finally:
entry_ssh.disconnect()
if applied.get('status') != 'success':
raise RuntimeError(applied.get('message') or 'Failed to apply cascade on entry')
if settings.get('wait_handshake') and not applied.get('handshake'):
try:
entry_ssh2 = get_ssh(entry)
entry_ssh2.connect()
try:
CascadeManager(entry_ssh2).disable(req.entry_protocol, settings=settings)
finally:
entry_ssh2.disconnect()
except Exception:
pass
raise RuntimeError(
applied.get('message')
or 'Cascade apply reported success but exit handshake is missing'
)
peer_ip = applied.get('cascade_peer_ip') or ''
if not peer_ip and conf:
peer_ip = CascadeManager._extract_address_ip(conf)
if peer_ip and hasattr(CascadeManager, 'ensure_exit_return_route'):
exit_ssh2 = get_ssh(exit_srv)
exit_ssh2.connect()
try:
route_res = CascadeManager(exit_ssh2).ensure_exit_return_route(
req.exit_protocol, peer_ip
)
applied['exit_return_route'] = route_res
finally:
exit_ssh2.disconnect()
return {
'client_id': client_id,
'client_name': cascade_name,
'applied': applied,
}
info = await asyncio.to_thread(_enable)
applied = info.get('applied') or {}
entry['cascade'] = {
'enabled': True,
'entry_protocol': req.entry_protocol,
'exit_server_id': req.exit_server_id,
'exit_protocol': req.exit_protocol,
'exit_client_id': info['client_id'],
'exit_client_name': info['client_name'],
'settings': settings,
'up': bool(applied.get('up')),
'handshake': bool(applied.get('handshake')),
'updated_at': datetime.now().isoformat(timespec='seconds'),
'last_error': None,
'diagnostics': applied.get('diagnostics') or '',
}
async with DATA_LOCK:
await asyncio.to_thread(save_data, data)
return {
'status': 'success',
'cascade': entry['cascade'],
'applied': applied,
'warning': applied.get('warning'),
}
except Exception as e:
logger.exception("Error setting up cascade")
return JSONResponse({'error': str(e)}, status_code=500)
@app.post('/api/servers/{server_id}/uninstall', tags=["Protocols"])
async def api_uninstall_protocol(request: Request, server_id: int, req: ProtocolRequest):
if not _check_admin(request):
+733
View File
@@ -0,0 +1,733 @@
"""Cascade (double-VPN) between two panel-managed WireGuard/AWG servers.
Traffic path:
Clients Entry server (accessible) Exit server (blocked / target) Internet
Implemented inside the entry Docker container as a second AWG/WG interface
(`cascade.conf`) with source-based routing for the VPN client subnet.
Inspired by ryderams/amneziawg-cascade (AWG2 entryexit), but executed via the
panel SSH session no remote curl|bash script download.
"""
from __future__ import annotations
import ipaddress
import re
import shlex
from datetime import datetime
from typing import Optional
WG_FAMILY = {'awg', 'awg2', 'awg_legacy', 'wireguard'}
CASCADE_MARKER = '# amnezia-web-panel-cascade'
EXIT_ROUTE_BEGIN = '# BEGIN awg-cascade-vps2'
EXIT_ROUTE_END = '# END awg-cascade-vps2'
DEFAULT_SETTINGS = {
'pin_exit_route': True,
'remove_eth_masquerade': True,
'force_forward': True,
'mss_clamp': True,
'wait_handshake': True,
'handshake_timeout_sec': 25,
'allowed_ips': '0.0.0.0/0',
'keep_exit_dns': False,
'vpn_subnet_override': '',
'table_id': 200,
'rule_priority': 100,
'verify_egress': True,
}
def normalize_settings(raw: Optional[dict]) -> dict:
settings = dict(DEFAULT_SETTINGS)
if isinstance(raw, dict):
for key, default in DEFAULT_SETTINGS.items():
if key not in raw or raw[key] is None:
continue
if isinstance(default, bool):
settings[key] = bool(raw[key])
elif isinstance(default, int):
try:
settings[key] = int(raw[key])
except (TypeError, ValueError):
settings[key] = default
else:
settings[key] = str(raw[key]).strip()
settings['handshake_timeout_sec'] = max(5, min(120, int(settings['handshake_timeout_sec'])))
settings['table_id'] = max(1, min(252, int(settings['table_id'])))
settings['rule_priority'] = max(1, min(32765, int(settings['rule_priority'])))
if not settings.get('allowed_ips'):
settings['allowed_ips'] = DEFAULT_SETTINGS['allowed_ips']
return settings
class CascadeManager:
def __init__(self, ssh_manager):
self.ssh = ssh_manager
@staticmethod
def proto_base(protocol: str) -> str:
return str(protocol or '').split('__', 1)[0]
@staticmethod
def is_wg_family(protocol: str) -> bool:
return CascadeManager.proto_base(protocol) in WG_FAMILY
@staticmethod
def _container_name(protocol: str) -> str:
base = CascadeManager.proto_base(protocol)
match = re.search(r'__(\d+)$', str(protocol or ''))
idx = int(match.group(1)) if match else 1
names = {
'awg': 'amnezia-awg',
'awg2': 'amnezia-awg2',
'awg_legacy': 'amnezia-awg-legacy',
'wireguard': 'amnezia-wireguard',
}
name = names.get(base)
if not name:
return ''
return name if idx <= 1 else f'{name}-{idx}'
@staticmethod
def _wg_binary(protocol: str) -> str:
return 'wg' if CascadeManager.proto_base(protocol) in ('awg_legacy', 'wireguard') else 'awg'
@staticmethod
def _quick_binary(protocol: str) -> str:
return 'wg-quick' if CascadeManager.proto_base(protocol) in ('awg_legacy', 'wireguard') else 'awg-quick'
@staticmethod
def _conf_dir(protocol: str) -> str:
return '/opt/amnezia/wireguard' if CascadeManager.proto_base(protocol) == 'wireguard' else '/opt/amnezia/awg'
@classmethod
def _cascade_conf(cls, protocol: str) -> str:
return f'{cls._conf_dir(protocol)}/cascade.conf'
@classmethod
def _cascade_up(cls, protocol: str) -> str:
return f'{cls._conf_dir(protocol)}/cascade-up.sh'
@staticmethod
def _server_conf(protocol: str) -> str:
base = CascadeManager.proto_base(protocol)
if base == 'wireguard':
return '/opt/amnezia/wireguard/wg0.conf'
if base == 'awg_legacy':
return '/opt/amnezia/awg/wg0.conf'
return '/opt/amnezia/awg/awg0.conf'
@staticmethod
def _server_iface(protocol: str) -> str:
base = CascadeManager.proto_base(protocol)
if base in ('wireguard', 'awg_legacy'):
return 'wg0'
return 'awg0'
@staticmethod
def _extract_endpoint_host(config_text: str) -> str:
for line in (config_text or '').splitlines():
if line.strip().lower().startswith('endpoint'):
rhs = line.split('=', 1)[-1].strip()
return rhs.rsplit(':', 1)[0].strip().strip('[]')
return ''
@staticmethod
def _extract_address_cidr(config_text: str) -> str:
for line in (config_text or '').splitlines():
stripped = line.strip()
if stripped.lower().startswith('address'):
rhs = stripped.split('=', 1)[-1].strip()
return rhs.split(',')[0].strip()
return ''
@staticmethod
def _extract_address_ip(config_text: str) -> str:
cidr = CascadeManager._extract_address_cidr(config_text)
if not cidr:
return ''
return cidr.split('/', 1)[0].strip()
@staticmethod
def prepare_exit_client_config(
raw_config: str,
endpoint_host: str,
*,
keep_dns: bool = False,
allowed_ips: str = '0.0.0.0/0',
) -> str:
"""Adapt a normal client config for use as an entry→exit cascade tunnel."""
effective_allowed = (allowed_ips or '').strip() or '0.0.0.0/0'
if effective_allowed in ('0.0.0.0/0, ::/0', '::/0, 0.0.0.0/0'):
effective_allowed = '0.0.0.0/0'
lines = []
in_interface = False
in_peer = False
has_table = False
has_mtu = False
for raw in (raw_config or '').splitlines():
stripped = raw.strip()
lower = stripped.lower()
if stripped.startswith('[') and stripped.endswith(']'):
in_interface = stripped.lower() == '[interface]'
in_peer = stripped.lower() == '[peer]'
lines.append(stripped)
continue
if in_interface and lower.startswith('dns') and not keep_dns:
continue
if in_interface and lower.startswith('table'):
has_table = True
lines.append('Table = off')
continue
if in_interface and lower.startswith('mtu'):
has_mtu = True
lines.append(stripped)
continue
if lower.startswith('endpoint'):
port = '51820'
if '=' in stripped:
rhs = stripped.split('=', 1)[1].strip()
if ':' in rhs:
port = rhs.rsplit(':', 1)[-1]
host = (endpoint_host or '').strip()
if host:
lines.append(f'Endpoint = {host}:{port}')
else:
lines.append(stripped)
continue
if in_peer and lower.startswith('allowedips'):
lines.append(f'AllowedIPs = {effective_allowed}')
continue
lines.append(stripped)
out = []
inserted_iface = False
for line in lines:
out.append(line)
if not inserted_iface and line.strip().lower() == '[interface]':
if not has_table:
out.append('Table = off')
if not has_mtu:
out.append('MTU = 1280')
inserted_iface = True
return '\n'.join(out).strip() + '\n'
@staticmethod
def _subnet_contains_ip(subnet: str, ip: str) -> bool:
try:
net = ipaddress.ip_network(subnet, strict=False)
return ipaddress.ip_address(ip) in net
except ValueError:
return False
def status(self, entry_protocol: str) -> dict:
container = self._container_name(entry_protocol)
if not container:
return {'enabled': False, 'up': False, 'handshake': False, 'error': 'Unsupported protocol'}
conf = self._cascade_conf(entry_protocol)
wg_bin = self._wg_binary(entry_protocol)
out, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} bash -lc "
f"'echo HAS=$(test -f {shlex.quote(conf)} && echo 1 || echo 0); "
f"echo IFACES=$({wg_bin} show interfaces 2>/dev/null); "
f"echo HANDSHAKE=$({wg_bin} show cascade latest-handshakes 2>/dev/null | awk \"{{print \\$2}}\" | head -1); "
f"echo TRANSFER=$({wg_bin} show cascade transfer 2>/dev/null | head -1); "
f"ip rule show 2>/dev/null | head -20; "
f"ip route show table 200 2>/dev/null | head -10'"
)
text = out or ''
has_conf = 'HAS=1' in text
ifaces_line = ''
handshake_ts = 0
for line in text.splitlines():
if line.startswith('IFACES='):
ifaces_line = line.split('=', 1)[1].strip()
if line.startswith('HANDSHAKE='):
try:
handshake_ts = int(line.split('=', 1)[1].strip() or '0')
except ValueError:
handshake_ts = 0
up = 'cascade' in ifaces_line.split()
handshake_ok = handshake_ts > 0
return {
'enabled': has_conf,
'up': up,
'handshake': handshake_ok,
'handshake_ts': handshake_ts,
'raw': text.strip()[:3000],
}
def _vpn_server_iface(self, entry_protocol: str) -> str:
base = self.proto_base(entry_protocol)
if base in ('awg_legacy', 'wireguard'):
return 'wg0'
return 'awg0'
def _vpn_server_ip(self, entry_protocol: str, container: str) -> str:
"""IPv4 on awg0/wg0 — traffic from this IP is policy-routed through cascade."""
iface = self._vpn_server_iface(entry_protocol)
out, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} sh -c "
f"{shlex.quote(f'ip -o -4 addr show dev {iface} 2>/dev/null')}",
timeout=15,
)
for line in (out or '').splitlines():
m = re.search(r'\binet\s+(\d+\.\d+\.\d+\.\d+)/\d+', line)
if m:
return m.group(1)
return ''
@staticmethod
def _parse_public_ipv4(text: str) -> str:
raw = (text or '').strip()
if not raw:
return ''
for line in reversed(raw.splitlines()):
line = line.strip()
if re.fullmatch(r'\d+\.\d+\.\d+\.\d+', line):
return line
m = re.search(r'\b(\d{1,3}(?:\.\d{1,3}){3})\b', raw)
return m.group(1) if m else ''
def _verify_egress(self, container: str, entry_protocol: str, subnet: str) -> dict:
"""Confirm client-subnet traffic exits via cascade (ryderams-style).
Bind curl to the VPN server IP on awg0/wg0 (NOT the cascade peer Address).
Policy routing only applies to the client subnet cascade Address must
not be used as --interface.
"""
server_ip = self._vpn_server_ip(entry_protocol, container)
iface = self._vpn_server_iface(entry_protocol)
if not server_ip:
return {
'ok': False,
'skipped': False,
'detail': f'Could not read IPv4 on {iface} for egress verify',
'bind': '',
}
route_out, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} sh -c "
f"{shlex.quote(f'ip route get 1.1.1.1 from {server_ip} 2>/dev/null | head -1')}",
timeout=15,
)
route_line = (route_out or '').strip()
route_via_cascade = bool(re.search(r'\bdev\s+cascade\b', route_line))
if not route_via_cascade:
return {
'ok': False,
'skipped': False,
'detail': (
f'Policy route from {server_ip} does not use cascade iface. '
f'Got: {route_line or "empty"}'
),
'bind': server_ip,
'route': route_line,
'subnet': subnet,
}
has_curl, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} sh -c "
f"{shlex.quote('command -v curl >/dev/null 2>&1 && echo YES')}",
timeout=15,
)
if 'YES' not in (has_curl or ''):
return {
'ok': True,
'skipped': True,
'warning': True,
'detail': 'curl not installed in container — egress IP check skipped (policy route OK)',
'bind': server_ip,
'route': route_line,
}
urls = (
'https://api.ipify.org',
'https://icanhazip.com',
'https://ifconfig.me/ip',
'http://api.ipify.org',
'http://icanhazip.com',
)
binds = [server_ip, 'cascade']
last_detail = 'empty response'
for bind in binds:
for url in urls:
inner = (
f'curl --interface {shlex.quote(bind)} -4 -sS --max-time 12 '
f'{shlex.quote(url)} 2>&1 || true'
)
egress_out, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} sh -c {shlex.quote(inner)}",
timeout=25,
)
egress_ip = self._parse_public_ipv4(egress_out or '')
if egress_ip:
return {
'ok': True,
'skipped': False,
'egress_ip': egress_ip,
'bind': bind,
'url': url,
'route': route_line,
'detail': f'{egress_ip} via {bind}',
}
last_detail = ((egress_out or '') or 'empty response').strip()[:300]
# Handshake + policy route OK; echo services often fail from VPS — keep cascade up.
return {
'ok': True,
'skipped': False,
'warning': True,
'detail': (
f'Policy route OK via cascade, but public-IP curl failed '
f'(bind {server_ip}). Last: {last_detail or "empty response"}'
),
'bind': server_ip,
'route': route_line,
'subnet': subnet,
}
def _vpn_subnet(self, entry_protocol: str, container: str, override: str = '') -> str:
if override and re.match(r'^\d+\.\d+\.\d+\.\d+/\d+$', override.strip()):
return override.strip()
conf = self._server_conf(entry_protocol)
out, _, _ = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} bash -lc "
f"\"grep -E '^Address' {shlex.quote(conf)} | head -1 | cut -d= -f2 | tr -d ' '\""
)
addr = (out or '').strip()
if not addr:
return '10.8.1.0/24'
if '/' in addr:
ip, cidr = addr.split('/', 1)
parts = ip.split('.')
if len(parts) == 4 and cidr.isdigit() and int(cidr) >= 24:
return f"{parts[0]}.{parts[1]}.{parts[2]}.0/{cidr}"
return addr
parts = addr.split('.')
if len(parts) == 4:
return f"{parts[0]}.{parts[1]}.{parts[2]}.0/24"
return '10.8.1.0/24'
def ensure_exit_return_route(self, protocol: str, peer_ip: str) -> dict:
"""Add /32 return route for the cascade peer on the exit container (ryderams vps2)."""
peer_ip = (peer_ip or '').strip().split('/', 1)[0]
if not re.match(r'^\d+\.\d+\.\d+\.\d+$', peer_ip):
return {'status': 'error', 'message': 'Invalid cascade peer IP'}
container = self._container_name(protocol)
if not container:
return {'status': 'error', 'message': 'Unsupported exit protocol'}
iface = self._server_iface(protocol)
route_cmd = f'ip route replace {peer_ip}/32 dev {iface}'
script = f"""#!/bin/bash
set -e
START=/opt/amnezia/start.sh
{route_cmd} 2>/dev/null || true
[ -f "$START" ] || {{ echo CASCADE_EXIT_ROUTE_OK; exit 0; }}
if grep -q '{EXIT_ROUTE_BEGIN}' "$START" 2>/dev/null; then
tmp=$(mktemp)
awk -v b='{EXIT_ROUTE_BEGIN}' -v e='{EXIT_ROUTE_END}' '
$0==b {{skip=1; next}}
$0==e {{skip=0; next}}
!skip {{print}}
' "$START" > "$tmp" && mv "$tmp" "$START"
fi
printf '\\n%s\\n%s\\n%s\\n' '{EXIT_ROUTE_BEGIN}' '{route_cmd} || true' '{EXIT_ROUTE_END}' >> "$START"
echo CASCADE_EXIT_ROUTE_OK
"""
self.ssh.upload_file(script, '/tmp/_amnz_cascade_exit_route.sh')
out, err, code = self.ssh.run_sudo_command(
f"docker cp /tmp/_amnz_cascade_exit_route.sh {shlex.quote(container)}:/tmp/_exit_route.sh && "
f"docker exec {shlex.quote(container)} bash /tmp/_exit_route.sh && "
f"docker exec {shlex.quote(container)} rm -f /tmp/_exit_route.sh",
timeout=60,
)
self.ssh.run_command('rm -f /tmp/_amnz_cascade_exit_route.sh')
if code != 0 or 'CASCADE_EXIT_ROUTE_OK' not in (out or ''):
return {
'status': 'error',
'message': ((err or out) or 'Failed to set exit return route').strip()[:400],
}
return {'status': 'success', 'peer_ip': peer_ip, 'iface': iface}
def apply(
self,
entry_protocol: str,
exit_client_config: str,
exit_host: str,
settings: Optional[dict] = None,
) -> dict:
opts = normalize_settings(settings)
container = self._container_name(entry_protocol)
if not container:
return {'status': 'error', 'message': 'Unsupported entry protocol'}
exists, _, code = self.ssh.run_sudo_command(
f"docker inspect -f '{{{{.State.Running}}}}' {shlex.quote(container)} 2>/dev/null"
)
if code != 0 or exists.strip().lower() != 'true':
return {'status': 'error', 'message': f'Entry container {container} is not running'}
cascade_conf_path = self._cascade_conf(entry_protocol)
cascade_up_path = self._cascade_up(entry_protocol)
cascade_conf = self.prepare_exit_client_config(
exit_client_config,
exit_host,
keep_dns=bool(opts['keep_exit_dns']),
allowed_ips=str(opts['allowed_ips']),
)
endpoint_host = self._extract_endpoint_host(cascade_conf) or exit_host
cascade_addr_cidr = self._extract_address_cidr(cascade_conf)
cascade_peer_ip = self._extract_address_ip(cascade_conf)
subnet = self._vpn_subnet(entry_protocol, container, opts.get('vpn_subnet_override') or '')
if cascade_peer_ip and self._subnet_contains_ip(subnet, cascade_peer_ip):
return {
'status': 'error',
'message': (
f'Cascade tunnel Address {cascade_addr_cidr or cascade_peer_ip} is inside '
f'entry client subnet {subnet}. Use a different VPN subnet on the exit server '
f'(e.g. 10.99.0.0/24) as in ryderams/amneziawg-cascade.'
),
}
wg_bin = self._wg_binary(entry_protocol)
quick_bin = self._quick_binary(entry_protocol)
conf_dir = self._conf_dir(entry_protocol)
table_id = int(opts['table_id'])
prio = int(opts['rule_priority'])
hs_timeout = int(opts['handshake_timeout_sec'])
pin_block = ''
if opts['pin_exit_route']:
pin_block = f"""
EXIT_IP="$EXIT_HOST"
if ! printf '%s' "$EXIT_IP" | grep -Eq '^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$'; then
EXIT_IP=$(getent ahostsv4 "$EXIT_HOST" 2>/dev/null | awk '{{print $1; exit}}')
if [ -z "$EXIT_IP" ]; then
EXIT_IP=$(python3 - <<'PY' 2>/dev/null || true
import socket
print(socket.gethostbyname("{endpoint_host}"))
PY
)
fi
fi
GW=$(ip route | awk '/default/ {{print $3; exit}}')
DEV=$(ip route | awk '/default/ {{print $5; exit}}')
if [ -n "$EXIT_IP" ] && [ -n "$GW" ] && [ -n "$DEV" ]; then
ip route replace "$EXIT_IP/32" via "$GW" dev "$DEV" 2>/dev/null || true
fi
"""
remove_masq = ''
if opts['remove_eth_masquerade']:
remove_masq = f"""
for ETH in eth0 eth1 eth2 ens3 ens5 enp0s3 enp1s0; do
while iptables -t nat -D POSTROUTING -s "$SUBNET" -o "$ETH" -j MASQUERADE 2>/dev/null; do :; done
done
"""
forward_block = ''
if opts['force_forward']:
forward_block = f"""
sysctl -w net.ipv4.ip_forward=1 >/dev/null 2>&1 || true
for SRC_IF in awg0 wg0; do
iptables -C FORWARD -i "$SRC_IF" -o "$IFACE" -j ACCEPT 2>/dev/null \\
|| iptables -I FORWARD 1 -i "$SRC_IF" -o "$IFACE" -j ACCEPT 2>/dev/null || true
iptables -C FORWARD -i "$IFACE" -o "$SRC_IF" -j ACCEPT 2>/dev/null \\
|| iptables -I FORWARD 1 -i "$IFACE" -o "$SRC_IF" -j ACCEPT 2>/dev/null || true
done
iptables -C FORWARD -i "$IFACE" -m state --state RELATED,ESTABLISHED -j ACCEPT 2>/dev/null \\
|| iptables -I FORWARD 1 -i "$IFACE" -m state --state RELATED,ESTABLISHED -j ACCEPT
"""
mss_block = ''
if opts['mss_clamp']:
mss_block = """
iptables -t mangle -C FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 2>/dev/null \\
|| iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
"""
handshake_block = ''
if opts['wait_handshake']:
handshake_block = f"""
OK=0
for i in $(seq 1 {hs_timeout}); do
HS=$({shlex.quote(wg_bin)} show "$IFACE" latest-handshakes 2>/dev/null | awk '{{print $2}}' | head -1)
if [ -n "$HS" ] && [ "$HS" != "0" ]; then OK=1; break; fi
sleep 1
done
if [ "$OK" != "1" ]; then
echo "CASCADE_NO_HANDSHAKE" >&2
echo "Tunnel interface is up but exit peer did not handshake. Check exit server / UDP port / keys." >&2
exit 42
fi
"""
up_script = f"""#!/bin/bash
{CASCADE_MARKER}
set -e
CONF={shlex.quote(cascade_conf_path)}
QUICK={shlex.quote(quick_bin)}
SUBNET={shlex.quote(subnet)}
EXIT_HOST={shlex.quote(endpoint_host)}
IFACE=cascade
TABLE={table_id}
PRIO={prio}
"$QUICK" down "$CONF" 2>/dev/null || true
ip link delete "$IFACE" 2>/dev/null || true
ip rule del from "$SUBNET" table "$TABLE" 2>/dev/null || true
ip route flush table "$TABLE" 2>/dev/null || true
{pin_block}
"$QUICK" up "$CONF"
ip route replace default dev "$IFACE" table "$TABLE" 2>/dev/null || ip route add default dev "$IFACE" table "$TABLE"
ip rule del from "$SUBNET" table "$TABLE" 2>/dev/null || true
ip rule add from "$SUBNET" table "$TABLE" priority "$PRIO"
{remove_masq}
{forward_block}
iptables -t nat -C POSTROUTING -s "$SUBNET" -o "$IFACE" -j MASQUERADE 2>/dev/null \\
|| iptables -t nat -A POSTROUTING -s "$SUBNET" -o "$IFACE" -j MASQUERADE
{mss_block}
{handshake_block}
echo CASCADE_UP_OK
"""
self.ssh.run_sudo_command(f"docker exec {shlex.quote(container)} mkdir -p {shlex.quote(conf_dir)}")
self.ssh.upload_file(cascade_conf, '/tmp/_amnz_cascade.conf')
self.ssh.upload_file(up_script, '/tmp/_amnz_cascade_up.sh')
self.ssh.run_sudo_command(
f"docker cp /tmp/_amnz_cascade.conf {shlex.quote(container)}:{shlex.quote(cascade_conf_path)} && "
f"docker cp /tmp/_amnz_cascade_up.sh {shlex.quote(container)}:{shlex.quote(cascade_up_path)} && "
f"docker exec {shlex.quote(container)} chmod 644 {shlex.quote(cascade_conf_path)} && "
f"docker exec {shlex.quote(container)} chmod +x {shlex.quote(cascade_up_path)}"
)
self.ssh.run_command('rm -f /tmp/_amnz_cascade.conf /tmp/_amnz_cascade_up.sh')
self._ensure_start_hook(container, cascade_up_path)
out, err, code = self.ssh.run_sudo_command(
f"docker exec {shlex.quote(container)} bash {shlex.quote(cascade_up_path)}",
timeout=max(90, hs_timeout + 40),
)
combined = ((out or '') + '\n' + (err or '')).strip()
if code != 0 or 'CASCADE_UP_OK' not in (out or ''):
msg = combined
if 'CASCADE_NO_HANDSHAKE' in combined:
msg = (
'Туннель к серверу выхода поднят, но handshake не прошёл. '
'Проверьте, что на выходе открыт UDP-порт, протокол совпадает, '
'и входной сервер может достучаться до IP выхода.'
)
return {
'status': 'error',
'message': (msg or 'Failed to bring cascade interface up').strip()[:900],
'log': combined[:2000],
}
st = self.status(entry_protocol)
handshake_ok = bool(st.get('handshake'))
egress_info = {}
if opts.get('verify_egress', True) and handshake_ok:
egress_info = self._verify_egress(container, entry_protocol, subnet)
if not egress_info.get('ok'):
try:
self.disable(entry_protocol, settings=opts)
except Exception:
pass
bind = egress_info.get('bind') or 'awg0'
detail = egress_info.get('detail') or 'empty response'
route = egress_info.get('route') or ''
return {
'status': 'error',
'message': (
'Cascade handshake OK but egress verify failed '
f'(curl --interface {bind} via client subnet {subnet}). '
f'Detail: {detail}'
+ (f' Route: {route}' if route else '')
),
'handshake': True,
'up': bool(st.get('up')),
'egress': egress_info,
'log': combined[:1500],
}
return {
'status': 'success',
'subnet': subnet,
'endpoint': endpoint_host,
'container': container,
'cascade_peer_ip': cascade_peer_ip,
'cascade_address': cascade_addr_cidr,
'up': bool(st.get('up')),
'handshake': handshake_ok,
'egress': egress_info or None,
'warning': (egress_info or {}).get('detail') if (egress_info or {}).get('warning') else None,
'settings': opts,
'applied_at': datetime.now().isoformat(timespec='seconds'),
'diagnostics': st.get('raw', '')[:1500],
}
def _ensure_start_hook(self, container: str, cascade_up_path: str) -> None:
marker = CASCADE_MARKER
installer = f"""#!/bin/bash
set -e
START=/opt/amnezia/start.sh
[ -f "$START" ] || exit 0
grep -q '{marker}' "$START" 2>/dev/null && exit 0
printf '\\n%s\\n' '{marker}' >> "$START"
printf '%s\\n' 'if [ -x {cascade_up_path} ]; then bash {cascade_up_path} || true; fi' >> "$START"
"""
self.ssh.upload_file(installer, '/tmp/_amnz_cascade_hook.sh')
self.ssh.run_sudo_command(
f"docker cp /tmp/_amnz_cascade_hook.sh {shlex.quote(container)}:/tmp/_hook.sh && "
f"docker exec {shlex.quote(container)} bash /tmp/_hook.sh && "
f"docker exec {shlex.quote(container)} rm -f /tmp/_hook.sh"
)
self.ssh.run_command('rm -f /tmp/_amnz_cascade_hook.sh')
def disable(self, entry_protocol: str, settings: Optional[dict] = None) -> dict:
opts = normalize_settings(settings)
container = self._container_name(entry_protocol)
if not container:
return {'status': 'error', 'message': 'Unsupported entry protocol'}
conf = self._cascade_conf(entry_protocol)
up = self._cascade_up(entry_protocol)
quick_bin = self._quick_binary(entry_protocol)
table_id = int(opts['table_id'])
script = f"""#!/bin/bash
set +e
QUICK={shlex.quote(quick_bin)}
CONF={shlex.quote(conf)}
UP={shlex.quote(up)}
TABLE={table_id}
"$QUICK" down "$CONF" 2>/dev/null
ip link delete cascade 2>/dev/null
ip rule del table "$TABLE" 2>/dev/null
ip rule del table "$TABLE" 2>/dev/null
ip route flush table "$TABLE" 2>/dev/null
rm -f "$CONF" "$UP"
echo CASCADE_DOWN_OK
"""
self.ssh.upload_file(script, '/tmp/_amnz_cascade_down.sh')
out, err, code = self.ssh.run_sudo_command(
f"docker cp /tmp/_amnz_cascade_down.sh {shlex.quote(container)}:/tmp/_cascade_down.sh && "
f"docker exec {shlex.quote(container)} bash /tmp/_cascade_down.sh && "
f"docker exec {shlex.quote(container)} rm -f /tmp/_cascade_down.sh",
timeout=60,
)
self.ssh.run_command('rm -f /tmp/_amnz_cascade_down.sh')
if code != 0 and 'CASCADE_DOWN_OK' not in (out or ''):
return {'status': 'success', 'message': (err or out or 'Cascade cleared (best effort)').strip()[:400]}
return {'status': 'success'}
+16 -6
View File
@@ -232,9 +232,13 @@ class NaiveProxyManager:
# Keep a non-shared bootstrap user so the proxy is never open
auth_lines = [f' basic_auth bootstrap {_rand_token(24)}']
auth_block = '\n'.join(auth_lines)
# probe_resistance looks like a fake domain to browsers
probe = (probe_path or _rand_token(12)).strip('/')
if '.' not in probe:
probe = f'{probe}.com'
return f"""{{
order forward_proxy before file_server
admin off
log {{
exclude http.log.error
}}
@@ -242,7 +246,6 @@ class NaiveProxyManager:
:443, {domain} {{
tls {email}
encode
route {{
forward_proxy {{
{auth_block}
hide_ip
@@ -253,7 +256,6 @@ class NaiveProxyManager:
root /var/www/html
}}
}}
}}
"""
def _write_config_from_clients(self):
@@ -398,13 +400,21 @@ CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile
self._start_container()
def _build_share_uri(self, domain, username, password, name, port=443):
"""v2rayN / NekoRay / sing-box compatible share link.
Always include an explicit port without `:443` v2rayN often treats
the port as empty/80 and shows «Свойство Порт недопустимо» / SSL errors.
"""
# Keep credentials unescaped when alphanumeric (our generator); quote otherwise.
user = quote(username or '', safe='')
pw = quote(password or '', safe='')
host = domain or ''
host = (domain or '').strip().lower()
port = int(port or 443)
authority = f'{user}:{pw}@{host}' if port == 443 else f'{user}:{pw}@{host}:{port}'
fragment = quote(name or 'naiveproxy', safe='')
return f'naive+https://{authority}#{fragment}'
if port < 1 or port > 65535:
port = 443
# Remark: ASCII-safe, no spaces that break some importers
remark = re.sub(r'[^\w.\-]+', '-', (name or 'naiveproxy').strip())[:48] or 'naiveproxy'
return f'naive+https://{user}:{pw}@{host}:{port}#{remark}'
# ===================== INSTALL / REMOVE =====================
+341 -3
View File
@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "base.html" %}
{% from "macros/icons.html" import icon %}
{% block title_extra %} — {{ server.name }}{% endblock %}
@@ -157,6 +157,153 @@
</div>
</div>
<!-- Cascade (double VPN) -->
<section class="card" id="cascadeSection" style="margin-bottom: var(--space-xl);">
<div class="card-header" style="align-items:flex-start; flex-wrap:wrap; gap:var(--space-sm);">
<div>
<h2 class="card-title" style="margin:0;">{{ _('cascade_title') }}</h2>
<p class="form-hint" style="margin:var(--space-xs) 0 0;">{{ _('cascade_desc') }}</p>
</div>
<span class="badge badge-warn" id="cascadeStatusBadge">{{ _('cascade_off') }}</span>
</div>
<div style="padding: 0 var(--space-md) var(--space-md);">
<div class="grid" style="display:grid; grid-template-columns:1fr 1fr; gap:var(--space-md);">
<div class="form-group">
<label class="form-label">{{ _('cascade_entry_protocol') }}</label>
<select class="form-select" id="cascadeEntryProtocol">
<option value="awg2" selected>AmneziaWG 2.0</option>
<option value="awg">AmneziaWG</option>
<option value="awg_legacy">AWG Legacy</option>
<option value="wireguard">WireGuard</option>
</select>
</div>
<div class="form-group">
<label class="form-label">{{ _('cascade_exit_server') }}</label>
<select class="form-select" id="cascadeExitServer" onchange="fillCascadeExitProtocols()">
<option value="">{{ _('cascade_exit_server_none') }}</option>
{% for s in all_servers %}
{% if loop.index0 != server_id %}
<option value="{{ loop.index0 }}"
data-protocols="{% for k in (s.protocols or {}).keys() %}{{ k }}{% if not loop.last %},{% endif %}{% endfor %}">
{{ s.name or s.host }} ({{ s.host }})
</option>
{% endif %}
{% endfor %}
</select>
</div>
<div class="form-group">
<label class="form-label">{{ _('cascade_exit_protocol') }}</label>
<select class="form-select" id="cascadeExitProtocol">
<option value="awg2" selected>AmneziaWG 2.0</option>
<option value="awg">AmneziaWG</option>
<option value="awg_legacy">AWG Legacy</option>
<option value="wireguard">WireGuard</option>
</select>
</div>
</div>
<div class="form-hint" style="margin-bottom:var(--space-sm);">{{ _('cascade_hint') }}</div>
<div class="form-hint" style="margin-bottom:var(--space-sm);">{{ _('cascade_client_note') }}</div>
<div class="form-hint" style="margin-bottom:var(--space-md);">{{ _('cascade_security_note') }}</div>
<details id="cascadeSettingsPanel" open style="margin-bottom:var(--space-md); border:1px solid var(--border); border-radius:var(--radius-md); padding:var(--space-sm) var(--space-md);">
<summary style="cursor:pointer; font-weight:600; margin-bottom:var(--space-sm);">{{ _('cascade_settings_title') }}</summary>
<p class="form-hint" style="margin:0 0 var(--space-md);">{{ _('cascade_settings_desc') }}</p>
<div class="grid" style="display:grid; grid-template-columns:1fr 1fr; gap:var(--space-sm) var(--space-md);">
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadePinExitRoute" checked>
<span>
<strong>{{ _('cascade_opt_pin_exit') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_pin_exit_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeRemoveEthMasq" checked>
<span>
<strong>{{ _('cascade_opt_remove_eth_masq') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_remove_eth_masq_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeForceForward" checked>
<span>
<strong>{{ _('cascade_opt_force_forward') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_force_forward_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeMssClamp" checked>
<span>
<strong>{{ _('cascade_opt_mss_clamp') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_mss_clamp_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeWaitHandshake" checked>
<span>
<strong>{{ _('cascade_opt_wait_handshake') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_wait_handshake_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeVerifyEgress" checked>
<span>
<strong>{{ _('cascade_verify_egress') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_verify_egress_hint') }}</span>
</span>
</label>
<label class="form-check" style="display:flex; gap:var(--space-sm); align-items:flex-start;">
<input type="checkbox" id="cascadeKeepExitDns">
<span>
<strong>{{ _('cascade_opt_keep_dns') }}</strong>
<span class="form-hint" style="display:block;">{{ _('cascade_opt_keep_dns_hint') }}</span>
</span>
</label>
</div>
<div class="grid" style="display:grid; grid-template-columns:1fr 1fr 1fr; gap:var(--space-md); margin-top:var(--space-md);">
<div class="form-group" style="margin:0;">
<label class="form-label" for="cascadeHandshakeTimeout">{{ _('cascade_opt_handshake_timeout') }}</label>
<input type="number" class="form-input" id="cascadeHandshakeTimeout" min="5" max="120" value="25">
</div>
<div class="form-group" style="margin:0;">
<label class="form-label" for="cascadeTableId">{{ _('cascade_opt_table_id') }}</label>
<input type="number" class="form-input" id="cascadeTableId" min="1" max="252" value="200">
</div>
<div class="form-group" style="margin:0;">
<label class="form-label" for="cascadeRulePriority">{{ _('cascade_opt_rule_priority') }}</label>
<input type="number" class="form-input" id="cascadeRulePriority" min="1" max="32765" value="100">
</div>
</div>
<div class="grid" style="display:grid; grid-template-columns:1fr 1fr; gap:var(--space-md); margin-top:var(--space-md);">
<div class="form-group" style="margin:0;">
<label class="form-label" for="cascadeAllowedIps">{{ _('cascade_opt_allowed_ips') }}</label>
<input type="text" class="form-input" id="cascadeAllowedIps" value="0.0.0.0/0">
<span class="form-hint">{{ _('cascade_opt_allowed_ips_hint') }}</span>
</div>
<div class="form-group" style="margin:0;">
<label class="form-label" for="cascadeVpnSubnet">{{ _('cascade_opt_vpn_subnet') }}</label>
<input type="text" class="form-input" id="cascadeVpnSubnet" placeholder="10.8.1.0/24" value="">
<span class="form-hint">{{ _('cascade_opt_vpn_subnet_hint') }}</span>
</div>
</div>
</details>
<div id="cascadeDiagBox" class="hidden" style="margin-bottom:var(--space-md); padding:var(--space-sm) var(--space-md); background:var(--bg-muted, rgba(0,0,0,.04)); border-radius:var(--radius-md); font-family:ui-monospace,monospace; font-size:12px; white-space:pre-wrap; max-height:160px; overflow:auto;"></div>
<div class="flex gap-sm" style="flex-wrap:wrap;">
<button type="button" class="btn btn-primary" id="cascadeEnableBtn" onclick="enableCascade()">
{{ _('cascade_enable') }}
</button>
<button type="button" class="btn btn-secondary" id="cascadeDisableBtn" onclick="disableCascade()">
{{ _('cascade_disable') }}
</button>
<button type="button" class="btn btn-secondary" onclick="loadCascade()">{{ _('refresh') }}</button>
</div>
<div id="cascadeBusy" class="hidden" style="display:none; align-items:center; gap:var(--space-sm); margin-top:var(--space-md);">
<div class="spinner" style="width:18px;height:18px;border-width:2px;"></div>
<span id="cascadeBusyText">{{ _('cascade_working') }}</span>
</div>
</div>
</section>
<!-- Installed Applications Section -->
<div class="apps-loading" id="installedAppsLoading">
@@ -325,7 +472,8 @@
<div class="protocol-icon">{{ icon('link') }}</div>
<div class="flex gap-sm" id="naiveproxy-ctrl" style="display:none!important;"></div>
</div>
<div class="protocol-name">NaiveProxy</div>
<div class="protocol-name">NaiveProxy <span
style="font-size:0.65rem; background:var(--success, #16a34a); color:#fff; padding:2px 6px; border-radius:8px; vertical-align:middle;">STABLE</span></div>
<div class="protocol-desc">
{{ _('naiveproxy_desc') }}
</div>
@@ -743,6 +891,7 @@
</div>
<div class="form-hint">{{ _('naiveproxy_install_hint') }}</div>
<div class="form-hint" style="margin-top: var(--space-sm);">{{ _('naiveproxy_port_hint') }}</div>
<div class="form-hint" style="margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); background: rgba(234,179,8,0.12); border: 1px solid rgba(234,179,8,0.35);">{{ _('naiveproxy_client_hint') }}</div>
</div>
<div class="modal-footer">
@@ -986,6 +1135,7 @@
<div class="config-panel active" id="panel-conf">
<div class="config-display">
<div class="config-text" id="configText"></div>
<div class="form-hint hidden" id="configClientHint" style="margin-top: var(--space-sm);"></div>
<div class="config-actions">
<button class="btn btn-secondary btn-sm" onclick="copyToClipboard(currentConfig)" style="flex:1">
{{ _('copy') }}
@@ -1097,7 +1247,7 @@
{ proto: 'xray', category: 'protocols', icon: 'zap', title: 'Xray (VLESS-Reality)', descKey: 'xray_desc' },
{ proto: 'telemt', category: 'protocols', icon: 'plane', title: 'Telemt (Telegram Proxy)', descKey: 'telemt_desc' },
{ proto: 'hysteria', category: 'protocols', icon: 'refresh', title: 'Hysteria 2', descKey: 'hysteria_desc' },
{ proto: 'naiveproxy', category: 'protocols', icon: 'link', title: 'NaiveProxy', descKey: 'naiveproxy_desc' },
{ proto: 'naiveproxy', category: 'protocols', icon: 'link', title: 'NaiveProxy', descKey: 'naiveproxy_desc', badge: 'STABLE' },
{ proto: 'wireguard', category: 'protocols', icon: 'lock', title: 'WireGuard', descKey: 'wireguard_desc' },
{ proto: 'dns', category: 'services', icon: 'search', title: 'AmneziaDNS', descKey: 'dns_desc' },
{ proto: 'adguard', category: 'services', icon: 'shield-check', title: 'AdGuard Home', descKey: 'adguard_desc' },
@@ -1426,6 +1576,7 @@
}
updateStatusCounts(data.protocols || {});
showToast(_('server_check_complete'), 'success');
loadCascade();
} catch (err) {
showToast(_('error') + ': ' + err.message, 'error');
const statusDiv = document.getElementById('serverStatus');
@@ -2840,6 +2991,16 @@
document.getElementById('configModalTitle').textContent = `${_('config')} — ${connName}`;
document.getElementById('configText').textContent = result.config;
document.getElementById('vpnLinkText').textContent = currentVpnLink;
const hintEl = document.getElementById('configClientHint');
if (hintEl) {
if (protoBase(proto) === 'naiveproxy') {
hintEl.textContent = _('naiveproxy_client_hint');
hintEl.classList.remove('hidden');
} else {
hintEl.textContent = '';
hintEl.classList.add('hidden');
}
}
switchConfigTab('conf');
openModal('configModal');
generateQR(result.config);
@@ -2952,8 +3113,185 @@
}
// ========== Cascade (double VPN) ==========
const CASCADE_PROTOS = ['awg2', 'awg', 'awg_legacy', 'wireguard'];
function fillCascadeExitProtocols() {
const sel = document.getElementById('cascadeExitServer');
const opt = sel.options[sel.selectedIndex];
const protoSel = document.getElementById('cascadeExitProtocol');
const raw = (opt && opt.dataset.protocols) ? opt.dataset.protocols.split(',').filter(Boolean) : [];
const available = raw.filter(p => CASCADE_PROTOS.includes(protoBase(p)));
const prev = protoSel.value;
protoSel.innerHTML = '';
const list = available.length ? available : CASCADE_PROTOS;
list.forEach(p => {
const o = document.createElement('option');
o.value = p;
o.textContent = getProtoTitle(p);
protoSel.appendChild(o);
});
if (list.includes(prev)) protoSel.value = prev;
else if (list.includes('awg2')) protoSel.value = 'awg2';
}
function setCascadeBusy(on, text) {
const busy = document.getElementById('cascadeBusy');
const busyText = document.getElementById('cascadeBusyText');
const en = document.getElementById('cascadeEnableBtn');
const dis = document.getElementById('cascadeDisableBtn');
if (busyText && text) busyText.textContent = text;
if (busy) {
busy.classList.toggle('hidden', !on);
busy.style.display = on ? 'flex' : 'none';
}
if (en) en.disabled = !!on;
if (dis) dis.disabled = !!on;
}
function cascadeBool(id, fallback) {
const el = document.getElementById(id);
return el ? !!el.checked : !!fallback;
}
function cascadeNum(id, fallback) {
const el = document.getElementById(id);
const n = el ? parseInt(el.value, 10) : NaN;
return Number.isFinite(n) ? n : fallback;
}
function collectCascadeSettings() {
return {
pin_exit_route: cascadeBool('cascadePinExitRoute', true),
remove_eth_masquerade: cascadeBool('cascadeRemoveEthMasq', true),
force_forward: cascadeBool('cascadeForceForward', true),
mss_clamp: cascadeBool('cascadeMssClamp', true),
wait_handshake: cascadeBool('cascadeWaitHandshake', true),
verify_egress: cascadeBool('cascadeVerifyEgress', true),
keep_exit_dns: cascadeBool('cascadeKeepExitDns', false),
handshake_timeout_sec: cascadeNum('cascadeHandshakeTimeout', 25),
table_id: cascadeNum('cascadeTableId', 200),
rule_priority: cascadeNum('cascadeRulePriority', 100),
allowed_ips: (document.getElementById('cascadeAllowedIps') || {}).value || '0.0.0.0/0',
vpn_subnet_override: (document.getElementById('cascadeVpnSubnet') || {}).value || '',
};
}
function applyCascadeSettingsToForm(settings, defaults) {
const s = Object.assign({}, defaults || {}, settings || {});
const setCheck = (id, val) => { const el = document.getElementById(id); if (el) el.checked = !!val; };
const setVal = (id, val) => { const el = document.getElementById(id); if (el && val !== undefined && val !== null) el.value = val; };
setCheck('cascadePinExitRoute', s.pin_exit_route !== false);
setCheck('cascadeRemoveEthMasq', s.remove_eth_masquerade !== false);
setCheck('cascadeForceForward', s.force_forward !== false);
setCheck('cascadeMssClamp', s.mss_clamp !== false);
setCheck('cascadeWaitHandshake', s.wait_handshake !== false);
setCheck('cascadeVerifyEgress', s.verify_egress !== false);
setCheck('cascadeKeepExitDns', !!s.keep_exit_dns);
setVal('cascadeHandshakeTimeout', s.handshake_timeout_sec ?? 25);
setVal('cascadeTableId', s.table_id ?? 200);
setVal('cascadeRulePriority', s.rule_priority ?? 100);
setVal('cascadeAllowedIps', s.allowed_ips || '0.0.0.0/0');
setVal('cascadeVpnSubnet', s.vpn_subnet_override || '');
}
function updateCascadeDiag(cascade, live) {
const box = document.getElementById('cascadeDiagBox');
if (!box) return;
const parts = [];
if (cascade && cascade.enabled) {
parts.push('handshake: ' + ((live && live.handshake) || cascade.handshake ? 'ok' : 'NONE'));
if (cascade.diagnostics) parts.push(String(cascade.diagnostics).trim());
else if (live && live.raw) parts.push(String(live.raw).trim());
if (cascade.last_error) parts.push('error: ' + cascade.last_error);
}
const text = parts.filter(Boolean).join('\n\n');
box.textContent = text;
box.classList.toggle('hidden', !text);
}
function updateCascadeBadge(cascade, live) {
const badge = document.getElementById('cascadeStatusBadge');
if (!badge) return;
const enabled = !!(cascade && cascade.enabled);
const up = !!(live && live.up);
const hs = !!(live && live.handshake) || !!(cascade && cascade.handshake);
badge.className = 'badge ' + (enabled && up && hs ? 'badge-success' : (enabled ? 'badge-warn' : 'badge-warn'));
if (!enabled) badge.textContent = _('cascade_off');
else if (up && hs) badge.textContent = _('cascade_on');
else if (up && !hs) badge.textContent = _('cascade_no_handshake');
else badge.textContent = _('cascade_configured_down');
updateCascadeDiag(cascade, live);
}
async function loadCascade() {
try {
const res = await apiCall(`/api/servers/${SERVER_ID}/cascade`, 'POST', {});
const c = res.cascade || {};
if (c.entry_protocol) document.getElementById('cascadeEntryProtocol').value = c.entry_protocol;
if (c.exit_server_id !== undefined && c.exit_server_id !== null && c.exit_server_id !== '') {
document.getElementById('cascadeExitServer').value = String(c.exit_server_id);
fillCascadeExitProtocols();
}
if (c.exit_protocol) {
const exitProto = document.getElementById('cascadeExitProtocol');
if ([...exitProto.options].some(o => o.value === c.exit_protocol)) {
exitProto.value = c.exit_protocol;
}
}
applyCascadeSettingsToForm(c.settings || {}, res.defaults || {});
updateCascadeBadge(c, res.live || {});
} catch (err) {
console.error(err);
}
}
async function setupCascade(enable) {
const entryProtocol = document.getElementById('cascadeEntryProtocol').value;
const exitServerId = document.getElementById('cascadeExitServer').value;
const exitProtocol = document.getElementById('cascadeExitProtocol').value;
if (enable && exitServerId === '') {
showToast(_('cascade_exit_required'), 'error');
return;
}
if (enable && !confirm(_('cascade_enable_confirm'))) return;
if (!enable && !confirm(_('cascade_disable_confirm'))) return;
setCascadeBusy(true, enable ? _('cascade_working') : _('cascade_disabling'));
showToast(enable ? _('cascade_working') : _('cascade_disabling'), 'info');
try {
const settings = collectCascadeSettings();
const res = await apiCall(`/api/servers/${SERVER_ID}/cascade/setup`, 'POST', {
enabled: !!enable,
entry_protocol: entryProtocol,
exit_server_id: parseInt(exitServerId || '0', 10),
exit_protocol: exitProtocol,
...settings,
});
updateCascadeBadge(res.cascade || {}, {
up: !!(res.cascade && res.cascade.up),
handshake: !!(res.cascade && res.cascade.handshake),
});
showToast(enable ? _('cascade_enabled') : _('cascade_disabled'), 'success');
if (enable && res.warning) {
showToast(res.warning, 'info');
}
await loadCascade();
} catch (err) {
showToast(_('error') + ': ' + err.message, 'error');
} finally {
setCascadeBusy(false);
}
}
function enableCascade() { return setupCascade(true); }
function disableCascade() { return setupCascade(false); }
// ========== Init ==========
applyInstalledAppsVisibility();
fillCascadeExitProtocols();
loadCascade();
checkServer();
loadServerStats();
</script>
+72 -26
View File
@@ -1,4 +1,4 @@
{
{
"nav_servers": "Servers",
"nav_users": "Users",
"nav_invites": "Invite links",
@@ -39,7 +39,7 @@
"limit": "Limit",
"manage": "Manage",
"no_protocols": "No protocols",
"add_server_desc": "Add your first VPN server to get started. You'll need SSH credentials to connect.",
"add_server_desc": "Add your first VPN server to get started. You\u0027ll need SSH credentials to connect.",
"ssh_host": "Host / IP",
"ssh_port": "SSH Port",
"ssh_user": "User",
@@ -80,8 +80,8 @@
"no_connections": "No connections",
"no_connections_desc": "Add your first connection to generate a VPN configuration",
"install_protocol": "Install protocol",
"port_default_hint": "Default port: 55424. Make sure it's not busy",
"port_xray_hint": "Default port: 443 (recommended for Xray). Make sure it's not taken by another web server.",
"port_default_hint": "Default port: 55424. Make sure it\u0027s not busy",
"port_xray_hint": "Default port: 443 (recommended for Xray). Make sure it\u0027s not taken by another web server.",
"reinstall": "Reinstall",
"uninstall_confirm": "Uninstall {}? All connections and configurations will be lost.",
"stop_container_confirm": "Stop container {}?",
@@ -265,10 +265,10 @@
"bot_start_btn": "▶️ Start",
"bot_hint": "After changing the token, save the settings — the bot will restart automatically. Users must have a Telegram ID in their profile.",
"api_docs_title": "🔌 API Documentation",
"api_docs_hint": "Use these interfaces to explore the panel's API capabilities",
"api_docs_hint": "Use these interfaces to explore the panel\u0027s API capabilities",
"tunnels_title": "Tunnels",
"local_server": "Local Server",
"tunnel_install_enable": "Install & Enable",
"tunnel_install_enable": "Install \u0026 Enable",
"tunnel_enable": "Enable Tunnel",
"tunnel_running": "Tunnel running",
"tunnel_stop": "Stop",
@@ -317,7 +317,7 @@
"copy_key_big": "Copy key",
"copying_key": "Copying…",
"key_copied": "Key copied — paste it into the app",
"more_qr_download": "QR code & file",
"more_qr_download": "QR code \u0026 file",
"download_config_file": "Download config file",
"show_config_text": "Show config text",
"copied": "Copied!",
@@ -347,33 +347,34 @@
"restore_success": "Restore successful! Restarting...",
"invalid_backup_file": "Invalid backup file or structure",
"config_unavailable": "Configuration unavailable",
"config_unavailable_desc": "This client was created via the native Amnezia app.\\nThe private key is stored only on the user's device and cannot be recovered by the server.",
"config_unavailable_desc": "This client was created via the native Amnezia app.\\nThe private key is stored only on the user\u0027s device and cannot be recovered by the server.",
"client_public_key": "Client public key:",
"telemt_desc": "MTProxy-based Telegram proxy with advanced obfuscation and TLS emulation support.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via official tobyxdd/hysteria (apernet/hysteria) with Let's Encrypt TLS. Admin sets the domain at install time.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via official tobyxdd/hysteria (apernet/hysteria) with Let\u0027s Encrypt TLS. Admin sets the domain at install time.",
"hysteria_domain": "Domain",
"hysteria_email": "Let's Encrypt email",
"hysteria_email": "Let\u0027s Encrypt email",
"hysteria_port_hint": "UDP port for Hysteria (default 8998). Avoid 443 if nginx/xray already use UDP/TCP 443. Port 80/TCP must be free for certificate issuance.",
"hysteria_install_hint": "Point the domain A-record to this server before install. Port 80/TCP is used temporarily for Let's Encrypt HTTP-01 validation. BBR and salamander obfuscation are enabled automatically.",
"hysteria_install_hint": "Point the domain A-record to this server before install. Port 80/TCP is used temporarily for Let\u0027s Encrypt HTTP-01 validation. BBR and salamander obfuscation are enabled automatically.",
"hysteria_dns_hint": "Create this DNS record before installation:",
"hysteria_settings_title": "Hysteria settings",
"hysteria_change_port": "Change port",
"hysteria_port_change_hint": "UDP listen port. If you see “address already in use”, pick a free port (e.g. 8443 or 8998), save, then re-import the client link.",
"hysteria_settings_saved": "Hysteria settings updated",
"hysteria_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let's Encrypt on 80, HTTPS/QUIC on 443).",
"hysteria_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let\u0027s Encrypt on 80, HTTPS/QUIC on 443).",
"hysteria_renew_ssl": "Renew SSL",
"hysteria_ssl_change_hint": "Changing the domain re-issues the Let's Encrypt certificate (port 80 must be free).",
"hysteria_ssl_change_hint": "Changing the domain re-issues the Let\u0027s Encrypt certificate (port 80 must be free).",
"hysteria_ssl_required": "Domain and email are required for SSL",
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — HTTPS/HTTP2 proxy with Let's Encrypt TLS. Admin sets the domain at install time.",
"naiveproxy_desc": "NaiveProxy (stable) — HTTPS/HTTP2 via Caddy + forwardproxy, Let\u0027s Encrypt TLS. Client: use Karing. Do not use v2rayN; other clients untested.",
"naiveproxy_domain": "Domain",
"naiveproxy_email": "Let's Encrypt email",
"naiveproxy_email": "Let\u0027s Encrypt email",
"naiveproxy_port_hint": "TCP port 443 is fixed for NaiveProxy. Port 80/TCP must be free for certificate issuance.",
"naiveproxy_install_hint": "Point the domain A-record to this server before install. Free TCP ports 80 and 443 are required (Let's Encrypt and HTTPS proxy).",
"naiveproxy_install_hint": "Point the domain A-record to this server before install. Free TCP ports 80 and 443 are required (Let\u0027s Encrypt and HTTPS proxy).",
"naiveproxy_dns_hint": "Create this DNS record before installation:",
"naiveproxy_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let's Encrypt on 80, HTTPS proxy on 443).",
"naiveproxy_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let\u0027s Encrypt on 80, HTTPS proxy on 443).",
"naiveproxy_client_hint": "Stable build. Do NOT use v2rayN. Confirmed working in Karing. Other clients are untested.",
"server_ssl_domain": "SSL domain (default)",
"server_ssl_email": "SSL email (default)",
"server_ssl_hint": "Used when installing Hysteria / NGINX on this server (Let's Encrypt).",
"server_ssl_hint": "Used when installing Hysteria / NGINX on this server (Let\u0027s Encrypt).",
"container_logs": "Container logs",
"logs_btn": "📋 Logs",
"logs_live": "Live",
@@ -432,7 +433,7 @@
"ping_checking": "Checking connectivity...",
"offline": "offline",
"api_tokens_title": "API tokens",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
"api_tokens_create": "Create token",
"api_tokens_create_title": "Create API token",
@@ -442,8 +443,8 @@
"api_tokens_name_required": "Token name is required",
"api_tokens_created_title": "Token created",
"api_tokens_value_label": "Token value",
"api_tokens_warning_title": "This is the only time you'll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
"api_tokens_revoke": "Revoke",
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
"api_tokens_revoked": "Token revoked",
@@ -473,7 +474,7 @@
"cert_text_label": "Certificate content (CRT)",
"key_text_label": "Private Key content (KEY)",
"ssl_hint": "After enabling, the panel will be accessible via https:// on the specified domain. Make sure the file paths or text data are correct.",
"about_title": "About & Updates",
"about_title": "About \u0026 Updates",
"current_version": "Current version",
"check_updates": "Check for updates",
"checking_updates": "Checking...",
@@ -518,10 +519,10 @@
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
"checking_server": "Checking server services...",
"web_servers": "Web servers",
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
"nginx_domain": "Domain",
"nginx_email": "Let's Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
"nginx_email": "Let\u0027s Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used temporarily/permanently for HTTP-01 certificate validation.",
"site": "Site",
"site_editor": "Site editor",
@@ -574,5 +575,50 @@
"xui_server_name_hint": "Shown in invites and user forms (e.g. US, NL, Home).",
"xui_server_select_label": "3x-ui server",
"xui_server_select_hint": "Pick a 3x-ui panel, then an inbound from the list that panel returns via API.",
"xui_server_delete_confirm": "Delete this 3x-ui server from the panel?"
"xui_server_delete_confirm": "Delete this 3x-ui server from the panel?",
"cascade_title": "Cascade (double VPN)",
"cascade_desc": "Clients connect to this entry server; internet exits through another server — to bypass country blocks.",
"cascade_hint": "ryderams-style AWG2 cascade: entry and exit must both have AmneziaWG/WireGuard. Clients keep using the ENTRY config only.",
"cascade_client_note": "Users connect only to the ENTRY server. Do not give them the exit cascade peer.",
"cascade_security_note": "Logic runs via panel SSH (no remote curl|bash). Based on ryderams/amneziawg-cascade approach.",
"cascade_entry_protocol": "Protocol on this server (entry)",
"cascade_exit_server": "Exit server",
"cascade_exit_server_none": "— Select server —",
"cascade_exit_protocol": "Protocol on exit server",
"cascade_enable": "Enable cascade",
"cascade_disable": "Disable cascade",
"cascade_working": "Setting up cascade…",
"cascade_disabling": "Disabling cascade…",
"cascade_enabled": "Cascade enabled",
"cascade_disabled": "Cascade disabled",
"cascade_off": "Off",
"cascade_on": "Active",
"cascade_configured_down": "Configured, tunnel down",
"cascade_exit_required": "Select an exit server",
"cascade_enable_confirm": "Enable cascade? A service client will be created on the exit server and a tunnel will be set up on this entry server.",
"cascade_disable_confirm": "Disable cascade on this server?",
"cascade_no_handshake": "Up, no handshake",
"cascade_settings_title": "Cascade settings (per step)",
"cascade_settings_desc": "If pages spin forever with no internet — keep all options on and click Enable cascade again.",
"cascade_opt_pin_exit": "Pin route to exit server",
"cascade_opt_pin_exit_hint": "Keeps the exit tunnel from looping through the VPN itself.",
"cascade_opt_remove_eth_masq": "Remove client NAT on eth0",
"cascade_opt_remove_eth_masq_hint": "Clients must not egress directly from the entry server.",
"cascade_opt_force_forward": "Force FORWARD between interfaces",
"cascade_opt_force_forward_hint": "Client traffic → cascade → exit.",
"cascade_opt_mss_clamp": "TCP MSS clamp",
"cascade_opt_mss_clamp_hint": "Fixes endless page loads on double VPN.",
"cascade_opt_wait_handshake": "Wait for exit handshake",
"cascade_opt_wait_handshake_hint": "Do not mark cascade active if the exit peer never answers.",
"cascade_verify_egress": "Verify egress IP",
"cascade_verify_egress_hint": "After handshake, verify policy route from awg0 IP via cascade, then curl public-IP services. Soft-warn if curl fails but route is OK.",
"cascade_opt_keep_dns": "Keep DNS from exit config",
"cascade_opt_keep_dns_hint": "Usually off — the client sets DNS itself.",
"cascade_opt_handshake_timeout": "Handshake timeout (sec)",
"cascade_opt_table_id": "Routing table id",
"cascade_opt_rule_priority": "ip rule priority",
"cascade_opt_allowed_ips": "AllowedIPs for entry→exit tunnel",
"cascade_opt_allowed_ips_hint": "Prefer 0.0.0.0/0 (IPv4); ::/0 often breaks double VPN.",
"cascade_opt_vpn_subnet": "Client subnet override",
"cascade_opt_vpn_subnet_hint": "Empty = auto-detect from server Address"
}
+63 -17
View File
@@ -1,4 +1,4 @@
{
{
"nav_servers": "سرورها",
"nav_users": "کاربران",
"nav_invites": "لینک دعوت",
@@ -340,9 +340,9 @@
"clear_server": "پاک‌سازی سرور",
"remove_server": "حذف سرور از پنل",
"telemt_desc": "پروکسی تلگرام بر پایه‌ی MTProxy با پوشش‌های پیشرفته.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) با تصویر رسمی tobyxdd/hysteria (apernet/hysteria) و TLS از Let's Encrypt. دامنه را ادمین هنگام نصب مشخص می‌کند.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) با تصویر رسمی tobyxdd/hysteria (apernet/hysteria) و TLS از Let\u0027s Encrypt. دامنه را ادمین هنگام نصب مشخص می‌کند.",
"hysteria_domain": "دامنه",
"hysteria_email": "ایمیل Let's Encrypt",
"hysteria_email": "ایمیل Let\u0027s Encrypt",
"hysteria_port_hint": "پورت UDP برای Hysteria (پیش‌فرض 8998). اگر 443 اشغال است پورت دیگری بگذارید.",
"hysteria_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. BBR و obfuscation salamander به‌صورت خودکار فعال می‌شوند.",
"hysteria_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
@@ -350,20 +350,21 @@
"hysteria_change_port": "تغییر پورت",
"hysteria_port_change_hint": "پورت UDP. اگر address already in use دیدید، پورت آزاد بگذارید (8443 یا 8998).",
"hysteria_settings_saved": "پورت Hysteria به‌روز شد",
"hysteria_ports_warning": "هشدار: برای کار پایدار پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt روی ۸۰، HTTPS/QUIC روی ۴۴۳).",
"hysteria_ports_warning": "هشدار: برای کار پایدار پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt روی ۸۰، HTTPS/QUIC روی ۴۴۳).",
"hysteria_renew_ssl": "تمدید SSL",
"hysteria_ssl_change_hint": "تغییر دامنه گواهی Let's Encrypt را دوباره صادر می‌کند (پورت ۸۰ باید آزاد باشد).",
"hysteria_ssl_change_hint": "تغییر دامنه گواهی Let\u0027s Encrypt را دوباره صادر می‌کند (پورت ۸۰ باید آزاد باشد).",
"hysteria_ssl_required": "برای SSL دامنه و ایمیل لازم است",
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — پروکسی HTTPS/HTTP2 با TLS از Let's Encrypt. دامنه را ادمین هنگام نصب مشخص می‌کند.",
"naiveproxy_desc": "NaiveProxy (پایدار) — HTTPS/HTTP2 با Caddy + forwardproxy و TLS از Let\u0027s Encrypt. کلاینت: Karing. از v2rayN استفاده نکنید؛ بقیه آزمایش نشده‌اند.",
"naiveproxy_domain": "دامنه",
"naiveproxy_email": "ایمیل Let's Encrypt",
"naiveproxy_email": "ایمیل Let\u0027s Encrypt",
"naiveproxy_port_hint": "پورت TCP 443 برای NaiveProxy ثابت است. پورت 80/TCP باید برای صدور گواهی آزاد باشد.",
"naiveproxy_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt و پروکسی HTTPS).",
"naiveproxy_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt و پروکسی HTTPS).",
"naiveproxy_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
"naiveproxy_ports_warning": "هشدار: برای کار پایدار پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt روی ۸۰، پروکسی HTTPS روی ۴۴۳).",
"naiveproxy_ports_warning": "هشدار: برای کار پایدار پورت‌های TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt روی ۸۰، پروکسی HTTPS روی ۴۴۳).",
"naiveproxy_client_hint": "نسخه پایدار. از v2rayN استفاده نکنید. در Karing تأیید شده. سایر کلاینت‌ها آزمایش نشده‌اند.",
"server_ssl_domain": "دامنه SSL (پیش‌فرض)",
"server_ssl_email": "ایمیل SSL (پیش‌فرض)",
"server_ssl_hint": "هنگام نصب Hysteria / NGINX روی این سرور استفاده می‌شود (Let's Encrypt).",
"server_ssl_hint": "هنگام نصب Hysteria / NGINX روی این سرور استفاده می‌شود (Let\u0027s Encrypt).",
"container_logs": "لاگ‌های کانتینر",
"logs_btn": "📋 Logs",
"logs_live": "زنده",
@@ -408,7 +409,7 @@
"ping_checking": "Checking connectivity...",
"offline": "offline",
"api_tokens_title": "API tokens",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
"api_tokens_create": "Create token",
"api_tokens_create_title": "Create API token",
@@ -418,8 +419,8 @@
"api_tokens_name_required": "Token name is required",
"api_tokens_created_title": "Token created",
"api_tokens_value_label": "Token value",
"api_tokens_warning_title": "This is the only time you'll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
"api_tokens_revoke": "Revoke",
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
"api_tokens_revoked": "Token revoked",
@@ -469,10 +470,10 @@
"new_instance": "new instance",
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
"web_servers": "Web servers",
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
"nginx_domain": "Domain",
"nginx_email": "Let's Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
"nginx_email": "Let\u0027s Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
"site": "Site",
"site_editor": "Site editor",
@@ -517,5 +518,50 @@
"xui_server_name_hint": "در دعوت‌ها نمایش داده می‌شود (مثل US، NL).",
"xui_server_select_label": "سرور 3x-ui",
"xui_server_select_hint": "پنل 3x-ui که URL اشتراک می‌دهد را انتخاب کنید.",
"xui_server_delete_confirm": "این سرور 3x-ui حذف شود؟"
"xui_server_delete_confirm": "این سرور 3x-ui حذف شود؟",
"cascade_title": "Cascade (double VPN)",
"cascade_desc": "Clients connect to this entry server; internet exits through another server — to bypass country blocks.",
"cascade_hint": "ryderams-style AWG2 cascade: entry and exit must both have AmneziaWG/WireGuard. Clients keep using the ENTRY config only.",
"cascade_client_note": "Users connect only to the ENTRY server. Do not give them the exit cascade peer.",
"cascade_security_note": "Logic runs via panel SSH (no remote curl|bash). Based on ryderams/amneziawg-cascade approach.",
"cascade_entry_protocol": "Protocol on this server (entry)",
"cascade_exit_server": "Exit server",
"cascade_exit_server_none": "— Select server —",
"cascade_exit_protocol": "Protocol on exit server",
"cascade_enable": "Enable cascade",
"cascade_disable": "Disable cascade",
"cascade_working": "Setting up cascade…",
"cascade_disabling": "Disabling cascade…",
"cascade_enabled": "Cascade enabled",
"cascade_disabled": "Cascade disabled",
"cascade_off": "Off",
"cascade_on": "Active",
"cascade_configured_down": "Configured, tunnel down",
"cascade_exit_required": "Select an exit server",
"cascade_enable_confirm": "Enable cascade? A service client will be created on the exit server and a tunnel will be set up on this entry server.",
"cascade_disable_confirm": "Disable cascade on this server?",
"cascade_no_handshake": "Up, no handshake",
"cascade_settings_title": "Cascade settings (per step)",
"cascade_settings_desc": "If pages spin forever with no internet — keep all options on and click Enable cascade again.",
"cascade_opt_pin_exit": "Pin route to exit server",
"cascade_opt_pin_exit_hint": "Keeps the exit tunnel from looping through the VPN itself.",
"cascade_opt_remove_eth_masq": "Remove client NAT on eth0",
"cascade_opt_remove_eth_masq_hint": "Clients must not egress directly from the entry server.",
"cascade_opt_force_forward": "Force FORWARD between interfaces",
"cascade_opt_force_forward_hint": "Client traffic → cascade → exit.",
"cascade_opt_mss_clamp": "TCP MSS clamp",
"cascade_opt_mss_clamp_hint": "Fixes endless page loads on double VPN.",
"cascade_opt_wait_handshake": "Wait for exit handshake",
"cascade_opt_wait_handshake_hint": "Do not mark cascade active if the exit peer never answers.",
"cascade_verify_egress": "Verify egress IP",
"cascade_verify_egress_hint": "After handshake, verify policy route from awg0 IP via cascade, then curl public-IP services. Soft-warn if curl fails but route is OK.",
"cascade_opt_keep_dns": "Keep DNS from exit config",
"cascade_opt_keep_dns_hint": "Usually off — the client sets DNS itself.",
"cascade_opt_handshake_timeout": "Handshake timeout (sec)",
"cascade_opt_table_id": "Routing table id",
"cascade_opt_rule_priority": "ip rule priority",
"cascade_opt_allowed_ips": "AllowedIPs for entry→exit tunnel",
"cascade_opt_allowed_ips_hint": "Prefer 0.0.0.0/0 (IPv4); ::/0 often breaks double VPN.",
"cascade_opt_vpn_subnet": "Client subnet override",
"cascade_opt_vpn_subnet_hint": "Empty = auto-detect from server Address"
}
+110 -64
View File
@@ -1,7 +1,7 @@
{
{
"nav_servers": "Serveurs",
"nav_users": "Utilisateurs",
"nav_invites": "Liens d'invitation",
"nav_invites": "Liens d\u0027invitation",
"nav_settings": "Paramètres",
"nav_connections": "Connexions",
"nav_logout": "Déconnexion",
@@ -56,7 +56,7 @@
"error": "Erreur",
"info": "Info",
"login_title": "Connexion au Panneau",
"username": "Nom d'utilisateur",
"username": "Nom d\u0027utilisateur",
"password": "Mot de passe",
"captcha": "Captcha",
"captcha_placeholder": "Entrez les caractères",
@@ -79,8 +79,8 @@
"no_connections": "Aucune connexion",
"no_connections_desc": "Ajoutez votre première connexion pour générer un fichier VPN",
"install_protocol": "Installer le protocole",
"port_default_hint": "Port par défaut : 55424. Assurez-vous qu'il est libre.",
"port_xray_hint": "Port recommandé : 443. Assurez-vous qu'il n'est pas utilisé par un serveur web.",
"port_default_hint": "Port par défaut : 55424. Assurez-vous qu\u0027il est libre.",
"port_xray_hint": "Port recommandé : 443. Assurez-vous qu\u0027il n\u0027est pas utilisé par un serveur web.",
"reinstall": "Réinstaller",
"uninstall_confirm": "Désinstaller {} ? Toutes les données seront perdues.",
"stop_container_confirm": "Arrêter le conteneur {} ?",
@@ -93,7 +93,7 @@
"add_connection": "Ajouter une connexion",
"connection_name": "Nom de la connexion",
"connection_name_placeholder": "Ex: iPhone, Laptop",
"assign_to_user": "Assigner à l'utilisateur (optionnel)",
"assign_to_user": "Assigner à l\u0027utilisateur (optionnel)",
"no_assign": "— Aucune assignation —",
"create": "Créer",
"creating": "Création...",
@@ -107,19 +107,19 @@
"download_conf": "⬇ Télécharger .conf",
"copy_key": "📋 Copier la clé",
"vpn_link_hint": "Collez ce lien dans AmneziaVPN pour une config automatique",
"qr_hint": "Scannez le code QR dans l'application AmneziaVPN",
"qr_hint": "Scannez le code QR dans l\u0027application AmneziaVPN",
"no_data": "Aucune donnée",
"start_btn": "▶ Start",
"stop_btn": "⏹ Stop",
"config_btn": "⚙️ Config",
"done": "Terminé",
"installing": "Installation...",
"start_install": "Début de l'installation...",
"start_install": "Début de l\u0027installation...",
"check_docker": "Vérification de Docker...",
"prepare_host": "Préparation de l'hôte...",
"prepare_host": "Préparation de l\u0027hôte...",
"build_container": "Construction du conteneur...",
"install_success": "Protocole installé avec succès !",
"install_error": "Erreur d'installation : ",
"install_error": "Erreur d\u0027installation : ",
"qr_error": "Échec de génération du QR code",
"users_title": "Utilisateurs",
"search_placeholder": "Recherche par nom, email ou Telegram...",
@@ -130,7 +130,7 @@
"loading_users": "Chargement des utilisateurs...",
"nothing_found": "Rien trouvé",
"search_empty_desc": "Essayez une autre requête ou créez un utilisateur",
"username_label": "Nom d'utilisateur",
"username_label": "Nom d\u0027utilisateur",
"password_label": "Mot de passe",
"role_label": "Rôle",
"role_user_desc": "User — voit ses propres connexions",
@@ -149,7 +149,7 @@
"edit_user_email": "Email (optionnel)",
"edit_user_limit": "Limite trafic (Go) (0 = illimité)",
"new_password_hint": "Nouveau mot de passe (laisser vide si inchangé)",
"op_type_label": "Type d'opération",
"op_type_label": "Type d\u0027opération",
"create_new_conn": "Créer nouvelle connexion",
"link_existing_conn": "Lier existante",
"select_existing_conn": "Sélectionner connexion",
@@ -164,18 +164,18 @@
"disabling": "Désactivation",
"user_enabled": "Utilisateur activé",
"user_disabled": "Utilisateur désactivé",
"delete_user_confirm": "Supprimer l'utilisateur ? Ses connexions seront supprimées.",
"share_access": "Partager l'accès",
"enable_public_access": "Activer l'accès public",
"delete_user_confirm": "Supprimer l\u0027utilisateur ? Ses connexions seront supprimées.",
"share_access": "Partager l\u0027accès",
"enable_public_access": "Activer l\u0027accès public",
"share_password_label": "Mot de passe (optionnel)",
"share_password_hint": "Si défini, requis pour l'accès",
"share_password_hint": "Si défini, requis pour l\u0027accès",
"guest_settings_title": "Accès invité",
"guest_enable": "Activer l'accès invité (sans inscription)",
"guest_enable_hint": "Lien public sur la page de connexion. Les invités voient les connexions de l'utilisateur choisi.",
"guest_enable": "Activer l\u0027accès invité (sans inscription)",
"guest_enable_hint": "Lien public sur la page de connexion. Les invités voient les connexions de l\u0027utilisateur choisi.",
"guest_link_label": "Lien invité",
"guest_link_placeholder": "Enregistrez pour générer le lien",
"guest_regen_token": "Régénérer le lien",
"guest_regen_confirm": "Régénérer le lien invité ? L'ancien ne fonctionnera plus.",
"guest_regen_confirm": "Régénérer le lien invité ? L\u0027ancien ne fonctionnera plus.",
"guest_token_updated": "Lien invité mis à jour",
"guest_user_label": "Utilisateur des connexions invitées",
"guest_user_none": "— Choisir —",
@@ -183,7 +183,7 @@
"guest_password_label": "Mot de passe invité (optionnel)",
"guest_password_keep": "Laisser vide pour conserver",
"guest_clear_password": "Retirer le mot de passe",
"guest_allow_create": "Autoriser la création d'une config",
"guest_allow_create": "Autoriser la création d\u0027une config",
"guest_access_btn": "Continuer en invité",
"guest_access_login_hint": "Sans compte",
"guest_title": "Accès invité",
@@ -194,15 +194,15 @@
"guest_not_found": "404 Introuvable",
"guest_not_found_desc": "Accès invité désactivé ou lien invalide.",
"wrong_guest_password": "Mauvais mot de passe",
"invites_title": "Liens d'invitation",
"invites_hint": "Créez des liens partageables. Le destinataire peut créer une config VPN — vous fixez le nombre d'utilisations.",
"invites_title": "Liens d\u0027invitation",
"invites_hint": "Créez des liens partageables. Le destinataire peut créer une config VPN — vous fixez le nombre d\u0027utilisations.",
"invites_empty": "Aucun lien",
"invites_empty_desc": "Créez un lien à partager — sans inscription.",
"invite_create": "Créer un lien",
"invite_edit": "Modifier le lien",
"invite_active": "Actif",
"invite_expired": "Expiré",
"invite_exhausted": "Plus d'utilisations",
"invite_exhausted": "Plus d\u0027utilisations",
"invite_uses": "Utilisations",
"invite_name_label": "Nom du lien",
"invite_max_uses_label": "Configs max",
@@ -213,13 +213,13 @@
"invite_password_label": "Mot de passe (optionnel)",
"invite_expires_label": "Expiration (optionnel)",
"invite_duration_label": "Durée du config (jours)",
"invite_duration_hint": "Commence quand l'utilisateur clique Obtenir. 0 = illimité.",
"invite_duration_hint": "Commence quand l\u0027utilisateur clique Obtenir. 0 = illimité.",
"invite_duration_short": "Durée",
"invite_duration_starts_hint": "Après obtention, valable {} jour(s)",
"invite_config_expires_at": "Valable jusqu'au : {}",
"invite_config_expires_at": "Valable jusqu\u0027au : {}",
"invite_sub_tab": "Abonnement",
"days_short": "j",
"invite_clear_expires": "Retirer l'expiration",
"invite_clear_expires": "Retirer l\u0027expiration",
"invite_note_label": "Note (admin)",
"invite_note_placeholder": "Commentaire interne",
"invite_reset_used": "Réinitialiser le compteur",
@@ -255,7 +255,7 @@
"bot_start_btn": "▶️ Démarrer",
"bot_hint": "Sauvegardez après modification du token. Le bot redémarrera.",
"api_docs_title": "🔌 Documentation API",
"api_docs_hint": "Utilisez ces interfaces pour explorer l'API",
"api_docs_hint": "Utilisez ces interfaces pour explorer l\u0027API",
"tunnels_title": "Tunnels",
"local_server": "Serveur local",
"tunnel_install_enable": "Installer et activer",
@@ -269,8 +269,8 @@
"tunnel_delete_confirm": "Arrêter et supprimer ce binaire de tunnel géré par le panneau ?",
"tunnel_starting": "Démarrage du tunnel...",
"tunnel_started": "Tunnel démarré",
"tunnel_waiting_url": "Tunnel démarré. En attente de l'URL publique...",
"tunnel_no_public_url": "L'URL publique apparaîtra ici après le démarrage du tunnel.",
"tunnel_waiting_url": "Tunnel démarré. En attente de l\u0027URL publique...",
"tunnel_no_public_url": "L\u0027URL publique apparaîtra ici après le démarrage du tunnel.",
"tunnels_hint": "Les tunnels rapides exposent ce panneau local sur Internet. Gardez des identifiants administrateur robustes et partagez les URL publiques uniquement avec des utilisateurs de confiance.",
"ngrok_authtoken_placeholder": "ngrok authtoken (optionnel pour certains comptes)",
"import_users_title": "📤 Import Utilisateurs",
@@ -294,7 +294,7 @@
"deleting": "Suppression...",
"my_connections_title": "Mes Connexions",
"show_config": "📄 Voir config",
"no_connections_user_desc": "Contactez l'admin pour une connexion",
"no_connections_user_desc": "Contactez l\u0027admin pour une connexion",
"share_title": "Accès Connexion",
"vpn_access": "Accès VPN",
"user_label_share": "Utilisateur",
@@ -313,7 +313,7 @@
"invalid_captcha": "Captcha invalide",
"account_disabled": "Compte désactivé",
"invalid_login": "Login ou password incorrect",
"user_exists": "L'utilisateur existe déjà",
"user_exists": "L\u0027utilisateur existe déjà",
"cannot_delete_self": "Vous ne pouvez pas vous supprimer",
"wrong_share_password": "Mauvais mot de passe",
"saving": "Enregistrement...",
@@ -326,11 +326,11 @@
"backup_title": "Sauvegarde Simple",
"download_backup": "Télécharger data.json",
"restore_backup": "Restaurer depuis un fichier",
"restore_confirm": "Êtes-vous sûr ? Les données actuelles seront écrasées et l'application redémarrera.",
"restore_confirm": "Êtes-vous sûr ? Les données actuelles seront écrasées et l\u0027application redémarrera.",
"restore_success": "Restauration réussie ! Redémarrage...",
"invalid_backup_file": "Fichier de sauvegarde ou structure invalide",
"config_unavailable": "Configuration indisponible",
"config_unavailable_desc": "Ce client a été créé via l'application native Amnezia.\\nLa clé privée est stockée uniquement sur l'appareil de l'utilisateur et ne peut pas être récupérée par le serveur.",
"config_unavailable_desc": "Ce client a été créé via l\u0027application native Amnezia.\\nLa clé privée est stockée uniquement sur l\u0027appareil de l\u0027utilisateur et ne peut pas être récupérée par le serveur.",
"client_public_key": "Clé publique du client :",
"management": "Gestion",
"server_management": "Gestion du serveur",
@@ -340,30 +340,31 @@
"clear_server": "Réinitialiser le serveur",
"remove_server": "Retirer le serveur du panneau",
"telemt_desc": "Proxy Telegram basé sur MTProxy avec obfuscation avancée.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via l'image officielle tobyxdd/hysteria (apernet/hysteria) avec TLS Let's Encrypt. Le domaine est défini par l'admin à l'installation.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via l\u0027image officielle tobyxdd/hysteria (apernet/hysteria) avec TLS Let\u0027s Encrypt. Le domaine est défini par l\u0027admin à l\u0027installation.",
"hysteria_domain": "Domaine",
"hysteria_email": "Email Let's Encrypt",
"hysteria_port_hint": "Port UDP pour Hysteria (8998 par défaut). Évitez 443 s'il est déjà pris.",
"hysteria_install_hint": "L'enregistrement A du domaine doit pointer vers ce serveur. BBR et obfuscation salamander sont activés automatiquement.",
"hysteria_dns_hint": "Créez cet enregistrement DNS avant l'installation :",
"hysteria_email": "Email Let\u0027s Encrypt",
"hysteria_port_hint": "Port UDP pour Hysteria (8998 par défaut). Évitez 443 s\u0027il est déjà pris.",
"hysteria_install_hint": "L\u0027enregistrement A du domaine doit pointer vers ce serveur. BBR et obfuscation salamander sont activés automatiquement.",
"hysteria_dns_hint": "Créez cet enregistrement DNS avant l\u0027installation :",
"hysteria_settings_title": "Paramètres Hysteria",
"hysteria_change_port": "Changer le port",
"hysteria_port_change_hint": "Port UDP. Si « address already in use », choisissez un port libre (8443 ou 8998).",
"hysteria_settings_saved": "Port Hysteria mis à jour",
"hysteria_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let's Encrypt sur 80, HTTPS/QUIC sur 443).",
"hysteria_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let\u0027s Encrypt sur 80, HTTPS/QUIC sur 443).",
"hysteria_renew_ssl": "Renouveler SSL",
"hysteria_ssl_change_hint": "Changer le domaine réémet le certificat Let's Encrypt (le port 80 doit être libre).",
"hysteria_ssl_change_hint": "Changer le domaine réémet le certificat Let\u0027s Encrypt (le port 80 doit être libre).",
"hysteria_ssl_required": "Domaine et email requis pour SSL",
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — proxy HTTPS/HTTP2 avec TLS Let's Encrypt. Le domaine est défini par l'admin à l'installation.",
"naiveproxy_desc": "NaiveProxy (stable) — HTTPS/HTTP2 via Caddy + forwardproxy, TLS Let\u0027s Encrypt. Client : utilisez Karing. N\u0027utilisez pas v2rayN ; autres clients non testés.",
"naiveproxy_domain": "Domaine",
"naiveproxy_email": "Email Let's Encrypt",
"naiveproxy_port_hint": "Le port TCP 443 est fixe pour NaiveProxy. Le port 80/TCP doit être libre pour l'émission du certificat.",
"naiveproxy_install_hint": "L'enregistrement A du domaine doit pointer vers ce serveur. Les ports TCP 80 et 443 doivent être libres (Let's Encrypt et proxy HTTPS).",
"naiveproxy_dns_hint": "Créez cet enregistrement DNS avant l'installation :",
"naiveproxy_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let's Encrypt sur 80, proxy HTTPS sur 443).",
"naiveproxy_email": "Email Let\u0027s Encrypt",
"naiveproxy_port_hint": "Le port TCP 443 est fixe pour NaiveProxy. Le port 80/TCP doit être libre pour l\u0027émission du certificat.",
"naiveproxy_install_hint": "L\u0027enregistrement A du domaine doit pointer vers ce serveur. Les ports TCP 80 et 443 doivent être libres (Let\u0027s Encrypt et proxy HTTPS).",
"naiveproxy_dns_hint": "Créez cet enregistrement DNS avant l\u0027installation :",
"naiveproxy_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let\u0027s Encrypt sur 80, proxy HTTPS sur 443).",
"naiveproxy_client_hint": "Version stable. N\u0027utilisez PAS v2rayN. Fonctionne avec Karing. Autres clients non testés.",
"server_ssl_domain": "Domaine SSL (par défaut)",
"server_ssl_email": "Email SSL (par défaut)",
"server_ssl_hint": "Utilisé lors de l'installation de Hysteria / NGINX sur ce serveur (Let's Encrypt).",
"server_ssl_hint": "Utilisé lors de l\u0027installation de Hysteria / NGINX sur ce serveur (Let\u0027s Encrypt).",
"container_logs": "Logs du conteneur",
"logs_btn": "📋 Logs",
"logs_live": "Temps réel",
@@ -408,7 +409,7 @@
"ping_checking": "Checking connectivity...",
"offline": "offline",
"api_tokens_title": "API tokens",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
"api_tokens_create": "Create token",
"api_tokens_create_title": "Create API token",
@@ -418,8 +419,8 @@
"api_tokens_name_required": "Token name is required",
"api_tokens_created_title": "Token created",
"api_tokens_value_label": "Token value",
"api_tokens_warning_title": "This is the only time you'll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
"api_tokens_revoke": "Revoke",
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
"api_tokens_revoked": "Token revoked",
@@ -469,10 +470,10 @@
"new_instance": "new instance",
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
"web_servers": "Serveurs web",
"nginx_desc": "Serveur web NGINX avec certificat HTTPS Let's Encrypt et index.html modifiable.",
"nginx_desc": "Serveur web NGINX avec certificat HTTPS Let\u0027s Encrypt et index.html modifiable.",
"nginx_domain": "Domaine",
"nginx_email": "Email Let's Encrypt",
"nginx_port_hint": "Port HTTPS exposé sur le serveur. Le port 80/TCP doit être libre et accessible pour la validation Let's Encrypt.",
"nginx_email": "Email Let\u0027s Encrypt",
"nginx_port_hint": "Port HTTPS exposé sur le serveur. Le port 80/TCP doit être libre et accessible pour la validation Let\u0027s Encrypt.",
"nginx_install_hint": "Le domaine doit déjà pointer vers ce serveur. Le port 80/TCP est utilisé pour la validation HTTP-01 du certificat.",
"site": "Site",
"site_editor": "Éditeur du site",
@@ -487,17 +488,17 @@
"no_backups": "No backups yet",
"no_backups_desc": "Create the first backup for this protocol.",
"refresh": "Refresh",
"guest_allow_create_hint": "Crée une config pour l'utilisateur invité (3x-ui VLESS ou protocole serveur).",
"invite_inbound_hint": "Choisissez l'inbound VLESS une fois",
"guest_allow_create_hint": "Crée une config pour l\u0027utilisateur invité (3x-ui VLESS ou protocole serveur).",
"invite_inbound_hint": "Choisissez l\u0027inbound VLESS une fois",
"invite_inbound_loading": "Chargement…",
"invite_inbound_empty": "Aucun inbound VLESS",
"invite_inbound_need_xui": "Configurez 3x-ui d'abord",
"invite_inbound_need_xui": "Configurez 3x-ui d\u0027abord",
"invite_inbound_required": "Sélectionnez un inbound VLESS",
"invite_sub_url_missing_title": "URL d'abonnement manquante",
"invite_sub_url_missing_hint": "Dans Paramètres → 3x-ui, définissez l'URL de base /sub.",
"invite_sub_url_missing_title": "URL d\u0027abonnement manquante",
"invite_sub_url_missing_hint": "Dans Paramètres → 3x-ui, définissez l\u0027URL de base /sub.",
"xui_url_label": "URL 3x-ui",
"xui_url_hint": "Inclure le schéma, le port et webBasePath si configuré",
"xui_sub_url_label": "URL de base d'abonnement",
"xui_sub_url_label": "URL de base d\u0027abonnement",
"xui_sub_url_hint": "Base /sub publique sans slash final (ex: https://host:2096/sub).",
"xui_api_token_label": "Jeton API (préféré)",
"xui_api_token_placeholder": "Settings → Security → API Token",
@@ -507,15 +508,60 @@
"xui_sync_hint": "Les clients 3x-ui deviennent des utilisateurs du panneau (liés par email)",
"xui_inbound_label": "Inbound VLESS",
"xui_inbound_auto": "Auto (premier inbound VLESS)",
"xui_inbound_hint": "Utilisé pour créer des configs 3x-ui VLESS. Créez d'abord un inbound VLESS dans 3x-ui.",
"xui_inbound_hint": "Utilisé pour créer des configs 3x-ui VLESS. Créez d\u0027abord un inbound VLESS dans 3x-ui.",
"xui_servers_title": "Serveurs 3x-ui",
"xui_servers_hint": "Ajoutez plusieurs panneaux 3x-ui. À la création, choisissez le serveur par nom — son URL d'abonnement est utilisée.",
"xui_servers_hint": "Ajoutez plusieurs panneaux 3x-ui. À la création, choisissez le serveur par nom — son URL d\u0027abonnement est utilisée.",
"xui_servers_empty": "Aucun serveur 3x-ui. Cliquez sur Ajouter.",
"xui_servers_manage_hint": "Les URL et bases d'abonnement se gèrent dans la section « Serveurs 3x-ui » ci-dessous.",
"xui_servers_manage_hint": "Les URL et bases d\u0027abonnement se gèrent dans la section « Serveurs 3x-ui » ci-dessous.",
"xui_server_add": "Ajouter un serveur",
"xui_server_name_label": "Nom / description",
"xui_server_name_hint": "Affiché dans les invitations (ex: US, NL).",
"xui_server_select_label": "Serveur 3x-ui",
"xui_server_select_hint": "Choisissez le panneau 3x-ui qui émettra l'URL d'abonnement.",
"xui_server_delete_confirm": "Supprimer ce serveur 3x-ui ?"
"xui_server_select_hint": "Choisissez le panneau 3x-ui qui émettra l\u0027URL d\u0027abonnement.",
"xui_server_delete_confirm": "Supprimer ce serveur 3x-ui ?",
"cascade_title": "Cascade (double VPN)",
"cascade_desc": "Clients connect to this entry server; internet exits through another server — to bypass country blocks.",
"cascade_hint": "ryderams-style AWG2 cascade: entry and exit must both have AmneziaWG/WireGuard. Clients keep using the ENTRY config only.",
"cascade_client_note": "Users connect only to the ENTRY server. Do not give them the exit cascade peer.",
"cascade_security_note": "Logic runs via panel SSH (no remote curl|bash). Based on ryderams/amneziawg-cascade approach.",
"cascade_entry_protocol": "Protocol on this server (entry)",
"cascade_exit_server": "Exit server",
"cascade_exit_server_none": "— Select server —",
"cascade_exit_protocol": "Protocol on exit server",
"cascade_enable": "Enable cascade",
"cascade_disable": "Disable cascade",
"cascade_working": "Setting up cascade…",
"cascade_disabling": "Disabling cascade…",
"cascade_enabled": "Cascade enabled",
"cascade_disabled": "Cascade disabled",
"cascade_off": "Off",
"cascade_on": "Active",
"cascade_configured_down": "Configured, tunnel down",
"cascade_exit_required": "Select an exit server",
"cascade_enable_confirm": "Enable cascade? A service client will be created on the exit server and a tunnel will be set up on this entry server.",
"cascade_disable_confirm": "Disable cascade on this server?",
"cascade_no_handshake": "Up, no handshake",
"cascade_settings_title": "Cascade settings (per step)",
"cascade_settings_desc": "If pages spin forever with no internet — keep all options on and click Enable cascade again.",
"cascade_opt_pin_exit": "Pin route to exit server",
"cascade_opt_pin_exit_hint": "Keeps the exit tunnel from looping through the VPN itself.",
"cascade_opt_remove_eth_masq": "Remove client NAT on eth0",
"cascade_opt_remove_eth_masq_hint": "Clients must not egress directly from the entry server.",
"cascade_opt_force_forward": "Force FORWARD between interfaces",
"cascade_opt_force_forward_hint": "Client traffic → cascade → exit.",
"cascade_opt_mss_clamp": "TCP MSS clamp",
"cascade_opt_mss_clamp_hint": "Fixes endless page loads on double VPN.",
"cascade_opt_wait_handshake": "Wait for exit handshake",
"cascade_opt_wait_handshake_hint": "Do not mark cascade active if the exit peer never answers.",
"cascade_verify_egress": "Verify egress IP",
"cascade_verify_egress_hint": "After handshake, verify policy route from awg0 IP via cascade, then curl public-IP services. Soft-warn if curl fails but route is OK.",
"cascade_opt_keep_dns": "Keep DNS from exit config",
"cascade_opt_keep_dns_hint": "Usually off — the client sets DNS itself.",
"cascade_opt_handshake_timeout": "Handshake timeout (sec)",
"cascade_opt_table_id": "Routing table id",
"cascade_opt_rule_priority": "ip rule priority",
"cascade_opt_allowed_ips": "AllowedIPs for entry→exit tunnel",
"cascade_opt_allowed_ips_hint": "Prefer 0.0.0.0/0 (IPv4); ::/0 often breaks double VPN.",
"cascade_opt_vpn_subnet": "Client subnet override",
"cascade_opt_vpn_subnet_hint": "Empty = auto-detect from server Address"
}
+62 -16
View File
@@ -1,4 +1,4 @@
{
{
"nav_servers": "Серверы",
"nav_users": "Пользователи",
"nav_invites": "Ссылки",
@@ -350,30 +350,31 @@
"config_unavailable_desc": "Этот клиент был создан через нативное приложение Amnezia.\\nПриватный ключ хранится только на устройстве пользователя и не может быть восстановлен сервером.",
"client_public_key": "Публичный ключ клиента:",
"telemt_desc": "Прокси для Telegram на базе MTProxy с продвинутой обфускацией и эмуляцией TLS.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) на официальном образе tobyxdd/hysteria (apernet/hysteria) с TLS от Let's Encrypt. Домен указывает админ при установке.",
"hysteria_desc": "Hysteria 2 (QUIC/UDP) на официальном образе tobyxdd/hysteria (apernet/hysteria) с TLS от Let\u0027s Encrypt. Домен указывает админ при установке.",
"hysteria_domain": "Домен",
"hysteria_email": "Email для Let's Encrypt",
"hysteria_email": "Email для Let\u0027s Encrypt",
"hysteria_port_hint": "UDP-порт Hysteria (по умолчанию 8998). Не ставьте 443, если он уже занят nginx/xray. Порт 80/TCP должен быть свободен для выпуска сертификата.",
"hysteria_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Порт 80/TCP временно используется для HTTP-01 проверки Let's Encrypt. BBR и obfuscation salamander включаются автоматически.",
"hysteria_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Порт 80/TCP временно используется для HTTP-01 проверки Let\u0027s Encrypt. BBR и obfuscation salamander включаются автоматически.",
"hysteria_dns_hint": "Перед установкой создайте DNS-запись:",
"hysteria_settings_title": "Настройки Hysteria",
"hysteria_change_port": "Сменить порт",
"hysteria_port_change_hint": "UDP-порт прослушивания. Если ошибка «address already in use» — выберите свободный порт (8443 или 8998), сохраните и заново импортируйте ссылку в клиент.",
"hysteria_settings_saved": "Настройки Hysteria обновлены",
"hysteria_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let's Encrypt на 80, HTTPS/QUIC на 443).",
"hysteria_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt на 80, HTTPS/QUIC на 443).",
"hysteria_renew_ssl": "Обновить SSL",
"hysteria_ssl_change_hint": "Смена домена заново выпускает сертификат Let's Encrypt (порт 80 должен быть свободен).",
"hysteria_ssl_change_hint": "Смена домена заново выпускает сертификат Let\u0027s Encrypt (порт 80 должен быть свободен).",
"hysteria_ssl_required": "Для SSL нужны домен и email",
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — HTTPS/HTTP2 прокси с TLS от Let's Encrypt. Домен указывает админ при установке.",
"naiveproxy_desc": "NaiveProxy (стабильный) — HTTPS/HTTP2 через Caddy + forwardproxy, TLS Let\u0027s Encrypt. Клиент: используйте Karing. Не используйте v2rayN; остальные клиенты под вопросом.",
"naiveproxy_domain": "Домен",
"naiveproxy_email": "Email для Let's Encrypt",
"naiveproxy_email": "Email для Let\u0027s Encrypt",
"naiveproxy_port_hint": "TCP-порт 443 фиксирован для NaiveProxy. Порт 80/TCP должен быть свободен для выпуска сертификата.",
"naiveproxy_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Нужны свободные TCP-порты 80 и 443 (Let's Encrypt и HTTPS-прокси).",
"naiveproxy_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt и HTTPS-прокси).",
"naiveproxy_dns_hint": "Перед установкой создайте DNS-запись:",
"naiveproxy_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let's Encrypt на 80, HTTPS-прокси на 443).",
"naiveproxy_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt на 80, HTTPS-прокси на 443).",
"naiveproxy_client_hint": "Стабильная версия. НЕ используйте v2rayN. Точно работает в Karing. Остальные клиенты под вопросом.",
"server_ssl_domain": "SSL-домен (по умолчанию)",
"server_ssl_email": "SSL-email (по умолчанию)",
"server_ssl_hint": "Подставляется при установке Hysteria / NGINX на этом сервере (Let's Encrypt).",
"server_ssl_hint": "Подставляется при установке Hysteria / NGINX на этом сервере (Let\u0027s Encrypt).",
"container_logs": "Логи контейнера",
"logs_btn": "📋 Логи",
"logs_live": "В реальном времени",
@@ -432,7 +433,7 @@
"ping_checking": "Проверяем соединение...",
"offline": "недоступен",
"api_tokens_title": "API-токены",
"api_tokens_hint": "Bearer-токены для внешних интеграций. Передавайте токен в заголовке `Authorization: Bearer <token>`. Токены имеют права администратора и перестают работать, если их владелец отключён или понижен в роли.",
"api_tokens_hint": "Bearer-токены для внешних интеграций. Передавайте токен в заголовке `Authorization: Bearer \u003ctoken\u003e`. Токены имеют права администратора и перестают работать, если их владелец отключён или понижен в роли.",
"api_tokens_empty": "Пока нет ни одного API-токена. Создайте, чтобы подключить панель к внешнему сервису.",
"api_tokens_create": "Создать токен",
"api_tokens_create_title": "Создание API-токена",
@@ -518,10 +519,10 @@
"port_next_instance_hint": "Выберите свободный UDP-порт для дополнительного экземпляра.",
"checking_server": "Проверяем сервисы сервера...",
"web_servers": "Веб-серверы",
"nginx_desc": "NGINX веб-сервер с HTTPS-сертификатом Let's Encrypt и редактируемым index.html.",
"nginx_desc": "NGINX веб-сервер с HTTPS-сертификатом Let\u0027s Encrypt и редактируемым index.html.",
"nginx_domain": "Домен",
"nginx_email": "Email для Let's Encrypt",
"nginx_port_hint": "HTTPS-порт на сервере. Порт 80/TCP должен быть свободен и доступен для проверки Let's Encrypt.",
"nginx_email": "Email для Let\u0027s Encrypt",
"nginx_port_hint": "HTTPS-порт на сервере. Порт 80/TCP должен быть свободен и доступен для проверки Let\u0027s Encrypt.",
"nginx_install_hint": "Домен уже должен указывать на этот сервер. Порт 80/TCP используется для HTTP-01 проверки сертификата.",
"site": "Сайт",
"site_editor": "Редактор сайта",
@@ -574,5 +575,50 @@
"xui_server_name_hint": "Так сервер будет отображаться в инвайтах и у пользователей (например: US, NL, Home).",
"xui_server_select_label": "Сервер 3x-ui",
"xui_server_select_hint": "Выберите панель 3x-ui, затем inbound из списка, который она отдаёт по API.",
"xui_server_delete_confirm": "Удалить этот сервер 3x-ui из панели?"
"xui_server_delete_confirm": "Удалить этот сервер 3x-ui из панели?",
"cascade_title": "Каскад (двойной VPN)",
"cascade_desc": "Клиенты подключаются к этому серверу (вход), а интернет выходит через другой сервер (выход) — чтобы обойти блокировку страны.",
"cascade_hint": "Каскад в стиле ryderams (AWG2): на входе и выходе должен быть AmneziaWG/WireGuard. Клиенты продолжают использовать только конфиг ВХОДНОГО сервера.",
"cascade_client_note": "Пользователи подключаются только к ВХОДНОМУ серверу. Не выдавайте им служебный peer выхода.",
"cascade_security_note": "Логика выполняется через SSH панели (без удалённого curl|bash). Подход на основе ryderams/amneziawg-cascade.",
"cascade_entry_protocol": "Протокол на этом сервере (вход)",
"cascade_exit_server": "Сервер выхода",
"cascade_exit_server_none": "— Выберите сервер —",
"cascade_exit_protocol": "Протокол на сервере выхода",
"cascade_enable": "Включить каскад",
"cascade_disable": "Отключить каскад",
"cascade_working": "Настраиваю каскад…",
"cascade_disabling": "Отключаю каскад…",
"cascade_enabled": "Каскад включён",
"cascade_disabled": "Каскад отключён",
"cascade_off": "Выключен",
"cascade_on": "Активен",
"cascade_configured_down": "Настроен, туннель вниз",
"cascade_exit_required": "Выберите сервер выхода",
"cascade_enable_confirm": "Включить каскад? На выходном сервере будет создан служебный клиент, а на этом — туннель к нему.",
"cascade_disable_confirm": "Отключить каскад на этом сервере?",
"cascade_no_handshake": "Туннель вверх, нет handshake",
"cascade_settings_title": "Настройки каскада (по шагам)",
"cascade_settings_desc": "Если страницы «крутятся», а интернета нет — оставьте все галочки включёнными и снова нажмите «Включить каскад».",
"cascade_opt_pin_exit": "Закрепить маршрут к серверу выхода",
"cascade_opt_pin_exit_hint": "Чтобы туннель к выходу не ушёл в петлю через сам VPN.",
"cascade_opt_remove_eth_masq": "Убрать NAT клиентов в eth0",
"cascade_opt_remove_eth_masq_hint": "Клиенты не должны выходить в интернет напрямую с входного сервера.",
"cascade_opt_force_forward": "Разрешить FORWARD между интерфейсами",
"cascade_opt_force_forward_hint": "Трафик клиентов → cascade → выход.",
"cascade_opt_mss_clamp": "TCP MSS clamp",
"cascade_opt_mss_clamp_hint": "Чинит «вечную загрузку» сайтов при двойном VPN.",
"cascade_opt_wait_handshake": "Ждать handshake с выходом",
"cascade_opt_wait_handshake_hint": "Не помечать каскад «активным», если выход не отвечает.",
"cascade_verify_egress": "Проверять внешний IP",
"cascade_verify_egress_hint": "После handshake — проверка policy route с IP awg0 через cascade, затем curl. При сбое curl (при OK маршруте) — предупреждение, не откат.",
"cascade_opt_keep_dns": "Оставить DNS из конфига выхода",
"cascade_opt_keep_dns_hint": "Обычно выключено — DNS берёт клиент сам.",
"cascade_opt_handshake_timeout": "Таймаут handshake (сек)",
"cascade_opt_table_id": "Таблица маршрутов",
"cascade_opt_rule_priority": "Приоритет ip rule",
"cascade_opt_allowed_ips": "AllowedIPs туннеля вход→выход",
"cascade_opt_allowed_ips_hint": "Лучше 0.0.0.0/0 (IPv4); ::/0 часто ломает двойной VPN.",
"cascade_opt_vpn_subnet": "Подсеть клиентов (override)",
"cascade_opt_vpn_subnet_hint": "Пусто = определить автоматически из Address сервера"
}
+63 -17
View File
@@ -1,4 +1,4 @@
{
{
"nav_servers": "服务器",
"nav_users": "用户列表",
"nav_invites": "邀请链接",
@@ -340,9 +340,9 @@
"clear_server": "清除服务器",
"remove_server": "从面板移除服务器",
"telemt_desc": "基于 MTProxy 的 Telegram 代理,支持高级混淆。",
"hysteria_desc": "Hysteria 2QUIC/UDP,官方 tobyxdd/hysteria / apernet/hysteria),支持 Let's Encrypt TLS。安装时由管理员指定域名。",
"hysteria_desc": "Hysteria 2QUIC/UDP,官方 tobyxdd/hysteria / apernet/hysteria),支持 Let\u0027s Encrypt TLS。安装时由管理员指定域名。",
"hysteria_domain": "域名",
"hysteria_email": "Let's Encrypt 邮箱",
"hysteria_email": "Let\u0027s Encrypt 邮箱",
"hysteria_port_hint": "Hysteria UDP 端口(默认 8998)。若 443 已被占用请换端口。",
"hysteria_install_hint": "安装前请将域名 A 记录指向本服务器。将自动启用 BBR 与 salamander 混淆。",
"hysteria_dns_hint": "安装前请创建此 DNS 记录:",
@@ -350,20 +350,21 @@
"hysteria_change_port": "更改端口",
"hysteria_port_change_hint": "UDP 监听端口。若提示 address already in use,请改用空闲端口(如 8443 或 8998)。",
"hysteria_settings_saved": "Hysteria 端口已更新",
"hysteria_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443Let's Encrypt 使用 80HTTPS/QUIC 使用 443)。",
"hysteria_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443Let\u0027s Encrypt 使用 80HTTPS/QUIC 使用 443)。",
"hysteria_renew_ssl": "续签 SSL",
"hysteria_ssl_change_hint": "更改域名会重新签发 Let's Encrypt 证书(需空闲端口 80)。",
"hysteria_ssl_change_hint": "更改域名会重新签发 Let\u0027s Encrypt 证书(需空闲端口 80)。",
"hysteria_ssl_required": "签发 SSL 需要域名和邮箱",
"naiveproxy_desc": "NaiveProxyCaddy + forwardproxy)— 带 Let's Encrypt TLS 的 HTTPS/HTTP2 代理。安装时由管理员指定域名。",
"naiveproxy_desc": "NaiveProxy稳定)— Caddy + forwardproxy 的 HTTPS/HTTP2Let\u0027s Encrypt TLS。客户端请用 Karing,不要用 v2rayN;其他客户端未测试。",
"naiveproxy_domain": "域名",
"naiveproxy_email": "Let's Encrypt 邮箱",
"naiveproxy_email": "Let\u0027s Encrypt 邮箱",
"naiveproxy_port_hint": "NaiveProxy 固定使用 TCP 443。签发证书需空闲 TCP 80。",
"naiveproxy_install_hint": "安装前请将域名 A 记录指向本服务器。需空闲 TCP 端口 80 和 443Let's Encrypt 与 HTTPS 代理)。",
"naiveproxy_install_hint": "安装前请将域名 A 记录指向本服务器。需空闲 TCP 端口 80 和 443Let\u0027s Encrypt 与 HTTPS 代理)。",
"naiveproxy_dns_hint": "安装前请创建此 DNS 记录:",
"naiveproxy_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443Let's Encrypt 使用 80HTTPS 代理使用 443)。",
"naiveproxy_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443Let\u0027s Encrypt 使用 80HTTPS 代理使用 443)。",
"naiveproxy_client_hint": "稳定版。请勿使用 v2rayN。已确认 Karing 可用。其他客户端未测试。",
"server_ssl_domain": "SSL 域名(默认)",
"server_ssl_email": "SSL 邮箱(默认)",
"server_ssl_hint": "安装 Hysteria / NGINX 时自动填入(Let's Encrypt)。",
"server_ssl_hint": "安装 Hysteria / NGINX 时自动填入(Let\u0027s Encrypt)。",
"container_logs": "容器日志",
"logs_btn": "📋 日志",
"logs_live": "实时",
@@ -408,7 +409,7 @@
"ping_checking": "Checking connectivity...",
"offline": "offline",
"api_tokens_title": "API tokens",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
"api_tokens_create": "Create token",
"api_tokens_create_title": "Create API token",
@@ -418,8 +419,8 @@
"api_tokens_name_required": "Token name is required",
"api_tokens_created_title": "Token created",
"api_tokens_value_label": "Token value",
"api_tokens_warning_title": "This is the only time you'll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
"api_tokens_revoke": "Revoke",
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
"api_tokens_revoked": "Token revoked",
@@ -469,10 +470,10 @@
"new_instance": "new instance",
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
"web_servers": "Web servers",
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
"nginx_domain": "Domain",
"nginx_email": "Let's Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
"nginx_email": "Let\u0027s Encrypt email",
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
"site": "Site",
"site_editor": "Site editor",
@@ -517,5 +518,50 @@
"xui_server_name_hint": "显示在邀请与用户表单中(如 US、NL)。",
"xui_server_select_label": "3x-ui 服务器",
"xui_server_select_hint": "选择签发订阅 URL 的 3x-ui 面板。",
"xui_server_delete_confirm": "从面板删除此 3x-ui 服务器?"
"xui_server_delete_confirm": "从面板删除此 3x-ui 服务器?",
"cascade_title": "Cascade (double VPN)",
"cascade_desc": "Clients connect to this entry server; internet exits through another server — to bypass country blocks.",
"cascade_hint": "ryderams-style AWG2 cascade: entry and exit must both have AmneziaWG/WireGuard. Clients keep using the ENTRY config only.",
"cascade_client_note": "Users connect only to the ENTRY server. Do not give them the exit cascade peer.",
"cascade_security_note": "Logic runs via panel SSH (no remote curl|bash). Based on ryderams/amneziawg-cascade approach.",
"cascade_entry_protocol": "Protocol on this server (entry)",
"cascade_exit_server": "Exit server",
"cascade_exit_server_none": "— Select server —",
"cascade_exit_protocol": "Protocol on exit server",
"cascade_enable": "Enable cascade",
"cascade_disable": "Disable cascade",
"cascade_working": "Setting up cascade…",
"cascade_disabling": "Disabling cascade…",
"cascade_enabled": "Cascade enabled",
"cascade_disabled": "Cascade disabled",
"cascade_off": "Off",
"cascade_on": "Active",
"cascade_configured_down": "Configured, tunnel down",
"cascade_exit_required": "Select an exit server",
"cascade_enable_confirm": "Enable cascade? A service client will be created on the exit server and a tunnel will be set up on this entry server.",
"cascade_disable_confirm": "Disable cascade on this server?",
"cascade_no_handshake": "Up, no handshake",
"cascade_settings_title": "Cascade settings (per step)",
"cascade_settings_desc": "If pages spin forever with no internet — keep all options on and click Enable cascade again.",
"cascade_opt_pin_exit": "Pin route to exit server",
"cascade_opt_pin_exit_hint": "Keeps the exit tunnel from looping through the VPN itself.",
"cascade_opt_remove_eth_masq": "Remove client NAT on eth0",
"cascade_opt_remove_eth_masq_hint": "Clients must not egress directly from the entry server.",
"cascade_opt_force_forward": "Force FORWARD between interfaces",
"cascade_opt_force_forward_hint": "Client traffic → cascade → exit.",
"cascade_opt_mss_clamp": "TCP MSS clamp",
"cascade_opt_mss_clamp_hint": "Fixes endless page loads on double VPN.",
"cascade_opt_wait_handshake": "Wait for exit handshake",
"cascade_opt_wait_handshake_hint": "Do not mark cascade active if the exit peer never answers.",
"cascade_verify_egress": "Verify egress IP",
"cascade_verify_egress_hint": "After handshake, verify policy route from awg0 IP via cascade, then curl public-IP services. Soft-warn if curl fails but route is OK.",
"cascade_opt_keep_dns": "Keep DNS from exit config",
"cascade_opt_keep_dns_hint": "Usually off — the client sets DNS itself.",
"cascade_opt_handshake_timeout": "Handshake timeout (sec)",
"cascade_opt_table_id": "Routing table id",
"cascade_opt_rule_priority": "ip rule priority",
"cascade_opt_allowed_ips": "AllowedIPs for entry→exit tunnel",
"cascade_opt_allowed_ips_hint": "Prefer 0.0.0.0/0 (IPv4); ::/0 often breaks double VPN.",
"cascade_opt_vpn_subnet": "Client subnet override",
"cascade_opt_vpn_subnet_hint": "Empty = auto-detect from server Address"
}