- Open System → Modules, choose «VPN Roadwarrior» («Remote access via VPN, with the RADIUS server that checks its logins.») and press «Next».
- The step has a single field, «URL» («Full public name of the VPN, e.g. vpn.example.com»). It is already filled in with
vpn.<internet name>when mail is installed («Full address (FQDN) for external access.»); without mail you have to type it. An invalid name gives «Invalid FQDN. Use a valid name, e.g. vpn.example.com». - Press «Deploy». The console shows «Deploying VPN, please wait…»; at the end the notification «VPN Roadwarrior deployed» arrives. If something fails you see «VPN deploy failed. Check the server logs and try again.» and the button becomes «Retry».
For the VPN to work from outside, the VPN name must exist in the public DNS and point to the appliance’s public IP (in the example company vpn.atlas.johnsmith.test → 198.51.100.40): clients need it, and so does the Let’s Encrypt certificate. The router must forward TCP 443 to the appliance (the same forwarding already used for the console).
The installation does everything by itself:
- it builds the VPN service and starts it listening;
- it installs the internal RADIUS server and, if missing, the token server (privacyIDEA) with the second factor on: a freshly installed VPN therefore asks for the one-time code;
- it creates the Let’s Encrypt certificate for the VPN name (if Let’s Encrypt is active in System → Settings) and copies it into the service;
- it adds a
vpnalias in the internal DNS, if the internet name’s zone exists in the domain, so the name resolves from the LAN too; - it opens the appliance’s firewall for the service.
If the installation stops, the console says where: «RADIUS and privacyIDEA, which ask VPN users for the OTP, could not be started…», «No DNS server to give the VPN clients: the appliance has no LAN address», «The VPN could not be built (image or service)…», «The VPN does not start after the build…», «The VPN is running but the web proxy (edon-nginx) does not route its name to it…». For each one the remedy is to check the logs of the service named and try again.
Warning Removing the module (trash icon on the module’s card in System → Modules) also removes the RADIUS server and its shared secret: it serves nothing else, and it comes back by installing the VPN again. All open tunnels drop.