✓ ✕ ℹ
{{ t.title }}
{{ t.message }}

JayaNet VPN Platform

Control Plane Authentication

⚠ {{ loginError }}

Standalone Architecture — Dockerized Edition

{{ currentView === 'dashboard' ? 'Infrastructure NOC Dashboard' : (currentView === 'nodes' ? 'VPN Server Nodes Management' : 'Manajemen Pengguna & Hak Akses') }}

SYSTEM HEALTHY
Total VPN Servers
{{ stats.total_server_nodes || 0 }}
Managed Nodes
Total MikroTik
{{ stats.total_mikrotik_routers || 0 }}
Registered Routers
Connected
{{ stats.vpn_connected || 0 }}
Active Tunnels
Disconnected
{{ stats.vpn_disconnected || 0 }}
Idle / Offline
Error
{{ stats.vpn_error || 0 }}
Attention Required
Active Protocols
{{ stats.active_vpn_protocols ? stats.active_vpn_protocols.length : 0 }}
WG / OVPN / L2TP

⚡ Control Plane Host Resources

Memory (RAM) {{ stats.system_resources?.ram_used_mb }} / {{ stats.system_resources?.ram_total_mb }} MB ({{ stats.system_resources?.ram_percent }}%)
Storage (Disk) {{ stats.system_resources?.disk_used_gb }} / {{ stats.system_resources?.disk_total_gb }} GB ({{ stats.system_resources?.disk_percent }}%)
CPU Load {{ stats.system_resources?.cpu_percent }}%

🛡 Protocol Support & Target Capabilities

WireGuard
High throughput kernel tunneling
Port: UDP 51820
Target: RouterOS v7.x
OpenVPN
PKI X.509 SSL/TLS Certificate
Port: TCP 1194 (ROS 6) / UDP (ROS 7)
Target: RouterOS v6 & v7
L2TP / IPsec
Universal NAT-Traversal Tunneling
Port: UDP 500, 4500, 1701
Target: RouterOS v6 & v7

📋 Recent Audit & Infrastructure Events

Timestamp Action Entity User IP Address
{{ formatDate(act.created_at) }} {{ act.action }} {{ act.entity_type || '—' }} {{ act.username }} {{ act.ip_address || '—' }}
No recent activities recorded yet.

VPN Server Nodes Inventory

Register, test SSH connection, and monitor health of managed Linux servers.

Node Name Host / IP SSH Info Status OS & Kernel Active Protocols Actions
{{ node.name }} {{ node.host_ip }} {{ node.ssh_user }}@:{{ node.ssh_port }} {{ node.has_ssh_key ? 'SSH-KEY' : 'PASSWORD' }} {{ node.status }}
{{ node.os_distribution || 'Pending Check' }}
{{ node.kernel_version || '' }}
{{ p }} None
No server nodes registered yet. Click "Register New Server Node" to add your first VPS/VM.

👥 Manajemen Pengguna & Hak Akses

Kelola akun operator, teknisi jaringan, auditor, dan amankan akun Super Admin.

Total Pengguna
{{ userStats.total_users || 0 }}
Akun Terdaftar
Pengguna Aktif
{{ userStats.active_users || 0 }}
Dapat Login
Pengguna Nonaktif
{{ userStats.inactive_users || 0 }}
Akses Dibekukan
Super Admin
{{ userStats.super_admins || 0 }}
Hak Akses Penuh
🔍
# Nama Lengkap Username Email Role Status Terakhir Login Dibuat Pada Aksi
{{ userSkip + idx + 1 }}
{{ u.username ? u.username[0].toUpperCase() : 'U' }}
{{ u.full_name || '—' }}
(Akun Anda)
{{ u.username }} {{ u.email }} {{ u.role }} {{ u.is_active ? '● Aktif' : '○ Nonaktif' }} {{ formatDate(u.last_login_at) }} {{ formatDate(u.created_at) }}
Tidak ada data pengguna yang sesuai dengan kriteria pencarian.
Menampilkan {{ userTotal > 0 ? userSkip + 1 : 0 }} - {{ Math.min(userSkip + userLimit, userTotal) }} dari {{ userTotal }} pengguna
|

{{ isEditingNode ? 'Edit Server Node' : 'Register New Server Node' }}

Public Key to Append to Target Node (~/.ssh/authorized_keys):
{{ generatedPubKey }}

Live Node Telemetry

{{ healthData.host_ip }}
OS: {{ healthData.os_release }}
Kernel: {{ healthData.kernel }}
Uptime: {{ healthData.uptime }}
CPU USAGE
{{ healthData.cpu_usage_pct }}%
RAM USAGE
{{ healthData.ram_pct }}%
{{ healthData.ram_used_mb }}/{{ healthData.ram_total_mb }} MB
DISK USAGE
{{ healthData.disk_pct }}%
{{ healthData.disk_used_gb }}/{{ healthData.disk_total_gb }} GB
Failed to fetch health telemetry: {{ healthData.error }}

👤 Tambah Pengguna Baru

✏️ Edit Data Pengguna: {{ editUserForm.username }}

🔑 Reset Password Pengguna

Atur ulang password untuk akun: {{ resetPasswordForm.username }}.

🔐 Ganti Password Akun Saya

Ubah password untuk akun {{ user.username }}. Password di-hash menggunakan Argon2id.

{{ selectedUserForStatus.is_active ? '⚠️ Nonaktifkan Pengguna' : '✅ Aktifkan Pengguna' }}

Apakah Anda yakin ingin {{ selectedUserForStatus.is_active ? 'menonaktifkan' : 'mengaktifkan' }} akun: {{ selectedUserForStatus.username }} ({{ selectedUserForStatus.role }})?

⚠️ Dampak Menonaktifkan Akun:
  • Pengguna tidak dapat login ke sistem.
  • Sesi login aktif pengguna akan langsung ditolak oleh backend (403 Forbidden).
  • Akun Super Admin terakhir tidak dapat dinonaktifkan demi integritas sistem.