The VPN portal is a page on the firewall where your users sign in and set up the VPN on their own computer or phone: Korthveil VPN (one click, in the Korthveil agent), the WireGuard app with a QR code, or settings for the VPN apps built into their system. Nobody has VPN access until you name their group or user. When someone leaves the group in your directory, their devices stop working and their sessions end by themselves.
For you, every VPN page also gets an Export button: settings per user or device as a file, a QR code or a one-time link, or a ZIP for a whole group.
At a glance:
| What | Where | Default |
|---|---|---|
| Turn the VPN portal on | VPN › VPN portal | off |
| Who may use the VPN | VPN › VPN portal › Who may use the VPN | nobody |
| Where the portal answers | VPN › VPN portal › Where it answers | the lan zone only |
| Reaching it from the internet | same panel, Reach from the internet | off |
| Authenticator code (MFA) | VPN › VPN portal | required |
| Membership read again | Checks and limits | every 15 minutes, and at every sign-in and connection |
| Devices per user | Checks and limits | 5, one key each |
| Korthveil VPN installer code | Checks and limits | works once, for 15 minutes |
| One-time links | Export on each VPN page | work once, end after 24 hours |
| Audit of every step | Identity › Self-service portal › Audit | on |
Before you start
The VPN portal runs in the self-service portal add-in, which does the sign-in. Set that up first under Identity › Self-service portal:
- Choose how people sign in: Directory password (Active Directory, Samba AD, FreeIPA, OpenLDAP, macOS Open Directory or another LDAP directory) and/or Single sign-on (OpenID Connect: Microsoft Entra ID, Okta, Google Workspace, Keycloak and others).
- Set Authenticator app to Optional or Required (the VPN portal requires a code by default, so it cannot be Off).
- Enable the add-in and commit.
For Korthveil VPN and the WireGuard app, set up a WireGuard server tunnel with its public address and choose it for self-enrolment (VPN › WireGuard, the tunnel's remote access endpoint). The portal adds each device to that tunnel.
1. Turn it on and name who may use it
Open VPN › VPN portal.
- Turn on Turn on the VPN portal.
- Under Who may use the VPN, press Add rule.
- Choose Users come from (your directory, single sign-on, or the firewall's local accounts), then Lets in: A group or One user, and type the name exactly as your directory has it (for example VPN Staff). "Everyone" is not allowed.
- Tick the VPN types this group may use: Korthveil VPN, WireGuard, IKEv2, OpenVPN, SSL VPN.
- Choose the tunnel: off is split (only the company networks go through the VPN), on is full (all traffic).
- Under Networks they may reach, list networks (IPv4 and IPv6), or leave it empty for the firewall's internal networks.
- Turn on Require the device check (NAC posture) if only company devices that passed network access control may set up the VPN.
- Press Save, then commit.
A user in two groups gets both: all the VPN types of both rules, the networks of both, and the full tunnel if either rule says full.
A user in no rule who opens the portal sees "You don't have VPN access", and the attempt is recorded.
2. Where the portal answers
By default it answers only on the lan zone. Under Where it answers, tick the internal zones where it should answer; a VPN zone or a guest zone is never included unless you tick it.
Reach from the internet is off. Turn it on only if users must set up the VPN from outside the office. Then:
- list the Allowed source networks (both IPv4 and IPv6): only these reach the portal's port;
- type the Public name users type;
- each source address (each IPv6 /64) is limited to the requests per minute you set;
- an authenticator code is always required.
Browsers that reach the portal only for the VPN (from a VPN-only zone or from the internet) see the sign-in and the VPN page, nothing else of the self-service portal.
After you commit, The portal answers at lists every address and port, IPv4 and IPv6, and for the internet the networks allowed.
3. What your users do
They open https://<portal>:8444/vpn (the address from the list above), sign in, and type their authenticator code. The page shows what they may reach and offers what fits their device:
- Korthveil VPN (Windows, macOS, Linux): Make my join code gives a code, a file and a QR code. In Korthveil VPN they choose Join with a file or Join with a code. The code works once and for 15 minutes; it holds no key and no password. The device makes its own keys and sends only the public halves. Before it joins, Korthveil VPN shows the firewall's name and certificate fingerprint; the page shows the same fingerprint so they can compare.
- A device with only the firewall's address: Korthveil VPN shows a short code (like BCDF-2345). The user opens https://<portal>:8444/vpn/device, signs in, and types that code.
- Linux: the packages, SHA256SUMS, its signature and the installer korthveil-vpn-install.sh are at https://<portal>:8444/vpn/download/linux/. The installer checks the signatures before it installs.
- WireGuard app (phones): Make a WireGuard configuration shows a QR code once. It holds a key made for that device, which the firewall does not keep.
- IKEv2, OpenVPN, SSL VPN: the page says the administrator sends the settings as a one-time link (step 4).
Under Your VPN devices they see every device and can Revoke one at once, for example a lost phone.
4. Export settings for users (all VPN pages)
On VPN › WireGuard, VPN › Remote access (IKEv2), VPN › OpenVPN and VPN › SSL VPN, press Export:
- Choose the users or devices, or type a directory group and press Choose its members (bulk).
- For IKEv2, choose the platform (macOS and iPhone, Windows, Android).
- Choose how:
- File: one user or device, downloaded here.
- QR code: one small file (WireGuard fits; most others are too large).
- One-time link: for one user. Choose how long it lasts (1 hour to 7 days, 24 hours by default). It works once. Turn on Email the link to send it through the firewall's mail server (System › Backup & restore › Schedules & delivery › Mail server); the email holds only the link.
- ZIP: several users or a group, one file per user and device, each with its own key.
- Press Export.
What each export holds:
| VPN | File | What is in it |
|---|---|---|
| WireGuard | .conf | the device's new keys (exporting makes new keys, so commit afterwards: the old configuration stops working) |
| IKEv2 | .mobileconfig, PowerShell script, .sswan | the server, the user name and the certificate authority, never the password |
| OpenVPN | .ovpn | a new certificate and key for that user |
| SSL VPN | .txt | the address, the user name and the certificate pin, never a password |
Exports never contain the firewall's own keys or passwords: each file is checked, and a file that would contain one is refused. Every export is recorded.
The link opens on the VPN portal, so the user must be able to reach the portal (office network, or the internet if you turned that on). Opening the link shows a Download button; the link is used only when the button is pressed, so mail scanners that open links do not use it up.
Links and installer codes on the VPN portal page lists every link and code (never the link itself), who made it, when it ends and whether it was used. Withdraw ends one that was not used yet.
5. When someone leaves
Remove them from the group in your directory (or disable or delete the account). At their next sign-in or connection, or within the check interval (15 minutes by default), Korthveil:
- revokes every VPN device they have (the WireGuard entry is removed with a commit, so the key stops working),
- ends their portal sessions,
- answers their Korthveil VPN with "revoked" at its next check.
To do it at once: VPN › VPN portal › Devices › All of user, or press Check now under Membership check.
If the directory cannot be reached, nobody is removed for that: connections are allowed until the last confirmation is older than the check interval, then refused until the directory answers again.
Users who sign in only with single sign-on: single sign-on tells their groups only at a sign-in. They must sign in to the portal again within the days you set under Checks and limits (7 by default), or their devices stop.
Korthveil VPN settings
Under Korthveil VPN on the page:
- Always on away from the office: connects by itself off the office networks (off by default).
- Users may disconnect (with always on).
- Fall back to HTTPS when UDP is blocked: WireGuard's encrypted packets travel inside the portal's HTTPS connection (on by default).
- Rotate WireGuard keys every 30 days: the device makes the new key itself; the old one stops at once.
- Clients check their settings every 5 minutes: also the longest a revoked device keeps running.
Check a user
Check a user shows what the rules give someone right now: type the user, and either leave the groups empty (the directory is asked) or type groups to test a rule before anyone signs in.
Notes
- The portal uses the self-service portal's certificate. Upload one your users' devices trust (Identity › Self-service portal › Certificate); without it browsers warn, and Korthveil VPN users must compare the fingerprint.
- Sign-in attempts are rate limited and lock out after 5 wrong passwords or codes for 15 minutes.
- Local accounts: rules for the firewall's local accounts apply to exports and links; the portal sign-in uses your directory or single sign-on.