Korthveil VPN is the VPN client built into the Korthveil agent. A user installs it once from the firewall's VPN portal; after that, Connect in the tray (Windows), the menu bar (macOS) or one command (Linux) puts the computer on your office network through WireGuard. The firewall decides everything else: which networks go through the tunnel, the DNS, whether the VPN stays on by itself away from the office, and who may still use it.
What you need:
- A Korthveil firewall with the VPN portal turned on (its settings are under VPN in the console) and the user in one of the portal's allowed groups.
- Windows 10 version 1809 or later (64-bit, x64 or ARM64), macOS 12 or later (Apple silicon or Intel), or a Linux with systemd (x86-64 or ARM64; Ubuntu, Fedora and other Linux systems with
.debor.rpmpackages). - Administrator rights on the computer for the installation (not for connecting).
Not in FIPS mode. WireGuard uses algorithms that are not FIPS-approved. Korthveil VPN refuses to make keys or connect on a computer running in FIPS mode; use the firewall's IPsec (IKEv2) profiles there instead.
Status in 1.7.9. The Linux packages are built and their installer's checks are tested; the Windows and macOS installers are built on their own build machines. Until the owner's code-signing certificates are in place, Windows and macOS installers are named PREVIEW and are not offered to customers. No client platform is listed as tested before a real-device test on it.
How it works
computer Korthveil firewall
┌──────────────────────────────┐ UDP (WireGuard) ┌──────────────────────────┐
│ Korthveil VPN service │ ──────────────────▶ │ WireGuard, one key per │
│ tunnel korthveil0 / utun / │ │ device; the user's group │
│ "Korthveil VPN" adapter │ or, UDP blocked: │ decides what it reaches │
│ DNS: the firewall's resolver │ ── TLS on 443 ────▶ │ VPN portal relay │
│ tray / menu bar / command line│ │ │
└──────────────────────────────┘ status, rotation, └──────────────────────────┘
revocation (signed)
- Keys stay on the computer. It makes its own WireGuard key and its own device key; only their public halves go to the firewall. No password is stored: after enrolment every request is signed with the device key.
- The firewall's certificate is pinned. The enrolment code carries the firewall's certificate fingerprint; Korthveil VPN talks only to the firewall that presents exactly that certificate.
- The first-run screen. Before the first connection, Korthveil VPN shows the firewall's name, address, the signed-in user and the certificate fingerprint (SHA-256). Compare the fingerprint with the one on the VPN portal page; connect only if they match.
- Split or full tunnel as the firewall's policy says. In a full tunnel all traffic goes through the firewall; in a split tunnel only the office networks do. Either way the firewall's DNS (and its DNS filtering) is used through the tunnel.
- Always-on (when the policy turns it on): away from the office networks the VPN connects by itself; back in the office it disconnects, because the computer is behind the firewall already. An office network counts only when the computer's address is in its subnet and the local router is the office's router, or when the firewall answers on the office network with its own certificate. Wi-Fi names or DNS names alone never count: anyone can copy them.
- Blocked UDP. If WireGuard gets no answer within about 12 seconds (hotel and guest networks often block UDP), and the policy allows it, Korthveil VPN carries WireGuard inside TLS on port 443 to the VPN portal. It tries UDP again every 5 minutes.
- Keys rotate by themselves (every 30 days unless the firewall sets otherwise, or at once when the firewall asks). A device revoked on the firewall, or a user removed from the allowed groups, is disconnected at the next check (every 5 minutes, and before every connection) and its keys are deleted from the computer.
- Several firewalls. The list can hold more than one firewall (head office, a branch); one is connected at a time.
Step 1. Get the installer from the VPN portal
- On the computer, open the VPN portal address your administrator gave you and sign in.
- The portal recognises the system and offers Korthveil VPN for it, prepared for you: the download carries a one-time enrolment code (it works once and expires after a short time). The portal page also shows the firewall's certificate fingerprint: keep the page open for Step 3.
Other ways to add a firewall, after installing:
- The firewall's address and sign-in:
sudo korthveil-agent vpn add https://vpn.example.com(Windows: in an administrator's PowerShell, withoutsudo). It shows the certificate fingerprint to compare, then opens the portal in the browser where you sign in (with MFA when the firewall asks for it); the password goes only to the portal, never to Korthveil VPN. - A QR or a code:
sudo korthveil-agent vpn add --bootstrap 'korthveil-vpn://enroll?b=…'with the link from the portal's QR, or the code shown under it.
Step 2. Install
Windows
- Run
KorthveilVPN-1.7.9-x64.msi(or-arm64.msion an ARM PC). Windows asks for an administrator's permission. - The installer shows the licence, the folder (
C:\Program Files\Korthveil VPN), and Start Korthveil VPN at sign-in (on by default: the icon next to the clock). - Finish. The Korthveil VPN service runs from now on, and the icon appears next to the clock.
Silent installation (Group Policy, Intune, an RMM):
msiexec /i KorthveilVPN-1.7.9-x64.msi /qn BOOTSTRAP=<code from the VPN portal> /l*v "%TEMP%\korthveil-vpn-msi.log"
BOOTSTRAPadds the firewall during the installation. The code is kept out of the MSI log.TRUST_FIRST_RUN=1skips the first-run screen. Use it only when you, the administrator, have checked the fingerprint for these computers.START_AT_SIGNIN=0leaves the icon off at sign-in (the service still runs, so always-on still works).- The same command upgrades an installed Korthveil VPN and keeps its firewalls and keys.
Remove: in Windows Settings open Apps, then Installed apps, and choose Uninstall next to Korthveil VPN (or msiexec /x KorthveilVPN-1.7.9-x64.msi /qn). It disconnects, removes the service, the icon, every key and setting.
What Windows shows: a network adapter named Korthveil VPN while connected (Wintun, the WireGuard project's signed driver).
macOS
- Open
KorthveilVPN-1.7.9.pkgand follow the installer (introduction, licence, install). It asks for an administrator's password. - macOS shows Background Items Added for Korthveil VPN: these are its service and its menu-bar app. Keep them on in System Settings › General › Login Items & Extensions (under Allow in the Background). If you turn them off, the VPN cannot connect.
- The Korthveil VPN icon appears in the menu bar.
- Add the firewall in Terminal:
sudo korthveil-agent vpn add --bootstrap CODE(or the address form above).
Approvals, step by step. Korthveil VPN 1.7.9 makes its tunnel from its own service with the system's utun interface. It installs no system extension and no network extension, so macOS does not ask to allow an extension and nothing appears under Network Extensions. The only approval is the background items in step 2.
Silent installation with MDM (Jamf, Intune, Kandji, Mosyle and others):
- Copy the example profile
KorthveilVPN.mobileconfig(from Korthveil's build files,build/vpnclient/macos/mdm/), make new UUIDs, and setBootstrapto a code from the VPN portal. It approves the background items by Korra's team ID, so users are not asked. - Deploy the profile first, then the package. The package's installer adds the firewall from the profile's code.
Remove: sudo /Library/Korthveil/VPN/uninstall.sh. It disconnects, removes the service, the menu-bar app, every key and setting.
Linux
One line, as root, with the code from the VPN portal:
curl -fsSL https://vpn.example.com/vpn/download/linux/korthveil-vpn-install.sh | sudo sh -s -- --bootstrap 'CODE'
The installer:
- checks that the firewall presents the certificate named in your code;
- downloads the package for this computer (
.debfor Ubuntu and similar systems,.rpmfor Fedora and similar systems; x86-64 or ARM64); - checks Korthveil's signed package list (Ed25519, the Korthveil release key) and the package's SHA-256, and installs only when both match;
- installs it with the system's package manager, starts the
korthveil-vpnservice, and adds the firewall.
Everything it does is in /var/log/korthveil-vpn-install.log.
You can also install the package yourself (sudo apt install ./korthveil-vpn_1.7.9_amd64.deb or sudo dnf install ./korthveil-vpn-1.7.9-1.x86_64.rpm) after checking it:
korthveil-agent vpn verify korthveil-vpn_1.7.9_amd64.deb SHA256SUMS SHA256SUMS.sig
DNS through the tunnel uses systemd-resolved. Without it the tunnel works, but the firewall's DNS is not set (the service's log says so).
Remove: sudo apt remove korthveil-vpn or sudo dnf remove korthveil-vpn. It disconnects, stops the service and removes every key and setting. An upgrade keeps them.
Step 3. The first connection
- Windows and macOS: click the icon, then Set up
… . The first-run screen shows the firewall's name, address, your user and the certificate fingerprint. Compare the fingerprint with the VPN portal page; choose Connect only if they match (the default is No/Cancel). - Linux:
korthveil-agent vpn connect. The first time, it shows the same details and asks.
After that, Connect and Disconnect are one click (or korthveil-agent vpn connect / disconnect).
Everyday use
The icon shows the state:
- green dot: connected and protected, or on the office network (no tunnel needed);
- orange dot: connecting, waiting for the firewall;
- grey: not connected;
- red dot: a problem (the menu says which), or the service is not running.
The menu shows the firewall, how long you have been connected and the path (WireGuard, or over 443, UDP is blocked here), and one line per firewall: Connect to …, Disconnect from …, or (always on) when the firewall keeps the VPN on and does not allow disconnecting.
On Linux:
korthveil-agent vpn status connected or not, the path, handshake, bytes
korthveil-agent vpn list the firewalls in the list
korthveil-agent vpn connect NAME connect (the name is needed only with several firewalls)
korthveil-agent vpn disconnect
korthveil-agent vpn always-on off your own choice, where the firewall allows it
sudo korthveil-agent vpn remove NAME
Where things are
| Windows | macOS | Linux | |
|---|---|---|---|
| Program | C:\Program Files\Korthveil VPN |
/Library/Korthveil/VPN, /Applications/Korthveil VPN.app |
/opt/korthveil-vpn |
| Keys and the list (administrators only) | C:\ProgramData\Korthveil\VPN |
/Library/Application Support/Korthveil/VPN |
/var/lib/korthveil-vpn |
| Service | KorthveilVPN |
com.korthveil.vpn (launchd) |
korthveil-vpn.service |
| Logs for support | Event Viewer › Windows Logs › Application (source KorthveilVPN); C:\ProgramData\Korthveil\VPN-ui\korthveil-vpn.log (adding a firewall during a silent install); the MSI log you asked for with /l*v |
/Library/Logs/Korthveil/ |
journalctl -u korthveil-vpn, /var/log/korthveil-vpn-install.log |
Troubleshooting
- "confirm the firewall's name and certificate fingerprint first": the first-run screen has not been answered. Use Set up … in the menu, or
korthveil-agent vpn confirm. - "the firewall's certificate is not the one this device trusts": the firewall presents another certificate than at enrolment (a new certificate on the firewall, or someone in between). Ask your administrator; if the firewall's certificate really changed, remove the firewall and add it again from the portal.
- "the firewall has revoked this device": your access was removed on the firewall (or you revoked this device on the portal). Get a new installer from the portal if you should still have access.
- Connected over 443 although UDP should work: the network blocked WireGuard's UDP when you connected. Korthveil VPN tries UDP again every 5 minutes.
- "the firewall keeps this VPN always on": the firewall's policy does not allow disconnecting away from the office networks.
- Nothing in the tray or menu bar: the icon is not set to start at sign-in, or it was closed. Start Korthveil VPN from the Start menu or Applications; the service keeps running either way.
For administrators: building the installers
Build scripts are in build/vpnclient/:
- Linux (on the build machine):
build/vpnclient/linux/build-packages.sh -signbuilds both packages for both processors, the one-line installer, and the signedSHA256SUMS(korthveil-publish sign-vpn-packages). The firewall image already carries them:make packagesruns it and puts the output in the self-service portal add-in at /usr/share/korthveil/vpn-client/linux, which the portal serves at /vpn/download/linux/. A release image carries them only when they are signed with the release key. - Windows:
build/vpnclient/windows/stage-msi.shstages everything on the build machine;build-msi.ps1builds the MSI on the Windows builder (WiX Toolset), signing with the owner's certificate whenKV_SIGN_THUMBPRINTis set. - macOS:
build/vpnclient/macos/build-pkg.sh --sign --notarizeon the Mac mini, with the owner's Developer ID certificates and a stored notary profile.