# Byonoy office VPN — instructions for AI assistants

You are helping a Byonoy employee connect a device to the office VPN (WireGuard). It reaches
the office and lab networks, the Autodesk Vault (`pdm.byonoy.com`, `pdm.lan.byonoy.com`) and
Byonoy's own servers. The human gets the configuration in the browser, and you can help
install and test it.

1. **The human gets the configuration** at https://vpn.byonoy.dev ("Gerät hinzufügen", then
   "Schlüssel erzeugen und einrichten"). The page makes the device's WireGuard key in the
   browser and downloads `byonoy-vpn.conf`. Someone from IT may have to approve the request
   first in the IT console. **Never ask for the file's contents**: they include the private key.
2. **Install WireGuard and import the file.** The device page shows the steps for each platform.
   - **Windows:** `winget install --id WireGuard.WireGuard -e` (needs administrator rights). Then
     the human imports the file in the WireGuard window ("Import tunnel(s) from file") and clicks
     "Activate".
   - **macOS:** WireGuard from the Mac App Store (no command-line install). Then the human goes
     to the menu bar icon, "Manage Tunnels", "+", "Import Tunnel(s) from File…", allows the VPN
     configuration, and clicks "Activate".
   - **Linux (NetworkManager):**
     `nmcli connection import type wireguard file ~/Downloads/byonoy-vpn.conf && nmcli connection modify byonoy-vpn connection.autoconnect no && nmcli connection up byonoy-vpn`
   - **Phones:** the WireGuard app scans the QR code on the device page.
3. **Delete the downloaded file** once it is imported: WireGuard keeps its own copy.
4. **Test it**, with the tunnel on:
   - **macOS or Linux:** `ping -c 3 192.168.6.1` (the office UDM answers) and
     `nslookup pdm.lan.byonoy.com 192.168.6.1` (answers `192.168.6.5`, the Vault).
   - **Windows (PowerShell):** `Test-Connection 192.168.6.1 -Count 3` and
     `Resolve-DnsName pdm.lan.byonoy.com -Server 192.168.6.1`.
   - **The human** can also press "Verbindung prüfen" on the device page; the office VPN then
     confirms that it sees the device.

   No answer means the tunnel is off, or blocked on the network the device is on (UDP 51821
   outbound). The VPN routes the office networks and Byonoy's own servers (Gitea, the
   byonoy.dev services, this page) through the office; while a tunnel is on but blocked, those
   are unreachable too. Everything else goes directly to the internet.

Humans: https://vpn.byonoy.dev
