Skip to content

Repository files navigation

WireGuard Network Monitor

Automatically connects WireGuard VPN when you leave your home network.

Installation

  1. Download the installer from Releases
  2. Run WireGuardNetworkMonitor-Setup.exe as Administrator
  3. Select your WireGuard .conf file
  4. Confirm your home network settings (auto-detected)
  5. Done!

Requirements: Windows 10/11 (64-bit), WireGuard installed

How It Works

  • Detects home network by WiFi SSID
  • Automatically connects WireGuard when NOT on home WiFi
  • Automatically disconnects WireGuard when on home WiFi
  • Runs as a Windows service (starts on boot)

Usage

View Logs:

  • Start Menu → "WireGuard Network Monitor" → "View Logs"
  • Or: C:\ProgramData\WireGuardMonitor\monitor.log

PowerShell Commands:

Get-Service WireGuardNetworkMonitor          # Check status
Restart-Service WireGuardNetworkMonitor      # Restart service
Stop-Service WireGuardNetworkMonitor         # Stop service

Troubleshooting

Service won't start?

  • Check logs in Start Menu → "View Logs"
  • Verify WireGuard is installed

VPN not connecting?

  • Test WireGuard tunnel manually first
  • Check logs for error messages

Need to reconfigure?

  • Edit C:\Program Files (x86)\WireGuardMonitor\WireGuardNetworkMonitor.ps1
  • Update these values:
    • $HomeNetworkSSID - Your home WiFi name (case-sensitive)
    • $WireGuardConfigPath - Path to your .conf file
  • Restart: Restart-Service WireGuardNetworkMonitor
  • Check install log: C:\ProgramData\WireGuardMonitor\install.log

License

MIT License - LICENSE.txt

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages