How carostoneqp/wireguard-wanmonitor works
WireGuard WAN Monitor is a Windows companion for an already-installed WireGuard tunnel. Its main workflow is: installation registers a boot-time SYSTEM monitor and a logon tray; the monitor discovers the tunnel, checks office LAN reachability, and changes WAN endpoints only after its health and verification rules pass. Committed hostname roles and status are persisted for restart and tray display. The README documents these relationships, but no source excerpts were available, so the graph does not infer internal calls beyond them.
Main entry points: WireGuard-WanMonitor.ps1 Health monitor · WireGuard-WanMonitor-Tray.ps1 View-only tray · Install-WireGuard-WanMonitor.ps1 PowerShell installer · Install-WireGuard-WanMonitor.cmd Interactive installer
Components 15
Deployment
- Interactive installer
Install-WireGuard-WanMonitor.cmd - PowerShell installer
Install-WireGuard-WanMonitor.ps1 - Installation detection
Detect-WireGuard-WanMonitor.ps1 - Uninstaller
Uninstall-WireGuard-WanMonitor.ps1
Monitoring and switching
- Health monitor
WireGuard-WanMonitor.ps1 - Endpoint switching
WireGuard-WanMonitor.ps1
State and diagnostics
- Committed role state
WireGuard-WanMonitor.ps1 - Monitor status
WireGuard-WanMonitor.ps1 - Monitor log
WireGuard-WanMonitor.ps1
Tray interface
- View-only tray
WireGuard-WanMonitor-Tray.ps1
Other components
- Administrator
- Windows Task Scheduler
- WireGuard CLI
- Office LAN targets
- Logged-in user
Connections 20
- Administrator → Interactive installer: starts
README.md - Administrator → PowerShell installer: runs
README.md - Interactive installer → PowerShell installer: launches
README.md - PowerShell installer → Windows Task Scheduler: registers tasks
README.md - Windows Task Scheduler → Health monitor: starts at boot
README.md - Windows Task Scheduler → View-only tray: starts at logon
README.md - Health monitor → WireGuard CLI: discovers tunnel
README.md - Health monitor → Office LAN targets: pings
README.md - Health monitor → Endpoint switching: evaluates health
README.md - Endpoint switching → WireGuard CLI: sets endpoint
README.md - Endpoint switching → Committed role state: commits role
README.md - Health monitor → Committed role state: restores role
README.md - Health monitor → Monitor status: stores status
README.md - Health monitor → Monitor log: writes logs
README.md - Logged-in user → View-only tray: views status
README.md - View-only tray → Monitor status: reads status
README.md - View-only tray → Committed role state: shows WAN role
README.md - View-only tray → Monitor log: opens log folder
README.md - Administrator → Installation detection: runs detection
README.md - Administrator → Uninstaller: runs removal
README.md