QUICK START (first time on this PC)
Copy the entire client/ folder from the portal to:
C:\Users\ADMIN\UHP-VPN\client\
Open PowerShell as YOUR normal user (not admin) and run:
Copy Command
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$env:USERPROFILE\UHP-VPN\client\Register-UhpProtocol.ps1"
For EACH site, run its *-winbox-setup.ps1 enrollment script (downloaded via the Download WinBox Setup button when the site was created).
PORT MAPPING (deterministic - never changes)
SITE
LOCAL TUNNEL
REMOTE TARGET
SITE 01
127.0.0.1:18291
10.99.0.10:8291
SITE 02
127.0.0.1:18292
10.99.0.11:8291
SITE 03
127.0.0.1:18293
10.99.0.12:8291
SITE 04
127.0.0.1:18294
10.99.0.13:8291
TUNNEL DIAGNOSTICS
Show all tunnels:
Copy
Import-Module "$env:USERPROFILE\UHP-VPN\client\UhpTunnelManager.psm1"; Show-UhpDiagnostics
Repair a specific tunnel (e.g. site01) - does NOT touch other sites:
Copy
Import-Module "$env:USERPROFILE\UHP-VPN\client\UhpTunnelManager.psm1"; Repair-UhpTunnel -SiteId site01 -ShowDiagnostics
Stop only one tunnel (others keep running):
Copy
Import-Module "$env:USERPROFILE\UHP-VPN\client\UhpTunnelManager.psm1"; Stop-UhpTunnel -SiteId site01
CRITICAL RULES (NEVER VIOLATE)
NEVER run taskkill /IM plink.exe - kills ALL four sites instead of one.
NEVER start two Plinks on the same port - you will get "in use" errors.
NEVER connect WinBox directly to 158.101.83.128 - always go through 127.0.0.1:1829X.
NEVER delete a .cred file for an active site.
ALWAYS use Stop-UhpTunnel / Repair-UhpTunnel for single-site operations.
ALWAYS use Show-UhpDiagnostics to inspect which PID owns which tunnel.
SERVER-SIDE DIAGNOSTIC
LOAD SERVER DIAGNOSTIC
(click LOAD SERVER DIAGNOSTIC to view server-side VPN IP allocations, CHAP users, and IP conflict detection)