Situation
John Smith Ltd has three people who often work outside the office: Jack Green (jgreen) and Julia Brown (jbrown) from accounting, two days a week from home, and John Smith (jsmith), the owner, who travels with a laptop and a mobile phone. They need to open the folders \\atlas\administration and \\atlas\common, use the internal servers and resolve the names of the domain corp.johnsmith.test as they do in the office.
The solution is Atlas’s VPN Roadwarrior: one encrypted tunnel per person, opened with the domain credentials plus a one-time code (second factor). It is not the tunnel between the site and Atlas (that is the link with Argos, scenario Connecting the site to Argos): here individual people connect.
The chapter VPN for people explains every field and every message; here they are put in working order.
What you need
- An administrator account (
lwhite) and the VPN Roadwarrior module (System → Modules). If it is already installed, skip step 2. - A public name for the VPN in the public DNS:
vpn.atlas.johnsmith.test→ 198.51.100.40 (it is the appliance’s name withvpn.in front; the console builds it that way). The clients and the Let’s Encrypt certificate need it. - tcp port 443 of the public address reaching the appliance, the same one the console needs (scenario Publishing an internal site, “Making 80 and 443 reach the appliance”). The VPN shares the address and 443 with the rest: nginx recognises the name in the TLS request and hands the connection to the VPN service. The Edon client uses the tcp 443 tunnel only.
- Let’s Encrypt on (System → Settings → TLS certificates) if you want a valid certificate for the VPN’s name; otherwise the clients flag the certificate.
- A phone with an authenticator app for each person, and the people present in the office a first time: the token is enrolled from the internal network.
- A free network for the clients: the VPN uses 10.20.30.0/24 and that network must not coincide with any network already in use in the company.
Warning The «VPN» permission and the token are two things. With the second factor on, whoever has the permission but no active token does not connect; and whoever has no token cannot enrol it from outside. Enrol the tokens before people leave.
Steps
Installing the VPN (if it is not there)
- Open System → Modules. If the «VPN Roadwarrior» tab is already «Configured», skip to step 3.
- Select «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»): it is already filled in with
vpn.atlas.johnsmith.test. Press «Deploy». «Deploying VPN, please wait…» appears and at the end the notification «VPN Roadwarrior deployed». The installation builds the service, installs the internal RADIUS server and, if missing, the code server (privacyIDEA) with the second factor already on; it creates the name’s Let’s Encrypt certificate, adds thevpnalias in the internal DNS if the zone exists and opens the appliance’s firewall for the service.
Checking the second factor
- Open System → Settings → VPN Roadwarrior. «Enable MFA on the VPNs» must be on. If at the top you see the red box «The VPN’s RADIUS server is not running: the VPN refuses every login. Apply to install it again, with or without MFA as set below: the VPN service restarts and open connections drop.», press «Apply» and wait: RADIUS is reinstalled and the VPN restarted (open connections drop).
Warning Turning off «Enable MFA on the VPNs» removes the code: the VPN opens with the domain password alone. Keep it on if the appliance can be reached from the internet. If single sign-on is not installed, turning the switch off deletes the enrolled tokens; turning it on again, they must be enrolled again.
Giving people the permission
- Open Active Directory → Users and select
jgreen. In the «Features» section turn on «VPN» («Access to the local network through the roadwarrior VPN.») and press «Save». A new user starts with the VPN off: it is access from outside and is turned on by hand. - Repeat for
jbrownand forjsmith. - If a «VPN» switch is on but grey, with «Active through edon_vpn» under it, the permission comes from a group: to remove it act on the group, not on the switch. Do not confuse it with the company group
vpnof the example: a group calledvpnis a group like any other and does not turn the function on (chapter Groups and computers).
Enrolling the tokens (in the office)
- Each person, connected from the internal network (in the office) with their own account, opens Tools → MFA enrollment and presses «Enroll token». They scan the QR with the app (it appears only once), type the 6 digits in «Confirm the code» and press «Verify and activate». The state becomes “active”.
- If a person is already off site without a token, an administrator can enrol the token from the same page by choosing the person in the list, but the QR appears only once and the person must scan it: it must be done together, remotely, or when they return to the office. For whoever loses the phone, the administrator opens the same page, chooses the person and presses «Revoke token» (without the code); the person enrols a new one.
Giving out the client
- Users download the programs from the appliance’s public Downloads page,
https://atlas.johnsmith.test/download, where the files are grouped by category. For Windows, macOS, Linux and Android there is Edon Client (category «EDON Client»), which includes the VPN, the phone and Atlas’s tools; on the Mac every connection asks for the password of an administrator of the Mac (see VPN for people, «On the Mac»). Alternatively any OpenConnect or Cisco AnyConnect client will do. - In Edon Client you type only the appliance’s name,
atlas.johnsmith.test: the VPN’s address is that name withvpn.in front. User (jgreen) and password are typed once in the app’s settings; the code is asked for at every connection and the app joins it to the password itself. If the user lacks the «VPN» permission, the app does not offer the connect button. The procedure with pictures is in the chapter VPN for people, section «Connecting with Edon Client». - With any OpenConnect or AnyConnect client you use the address
vpn.atlas.johnsmith.test(port 443), the domain user name and, in the password field, the password immediately followed by the 6-digit code, with no spaces:<password>123456.
First connection
- From home Jack opens Edon Client; the first time he types
atlas.johnsmith.test,jgreenand the password in the settings and saves them; then he taps the connect ring and types the code shown by the authenticator app (step by step, with pictures, in VPN for people, «Connecting with Edon Client»). - The laptop receives an address from 10.20.30.0/24, the appliance’s DNS and the search domain
corp.johnsmith.test: the short names of the domain’s computers resolve as in the office. The tunnel is “full traffic”: all name requests go through the appliance’s DNS.
Check
- In System → Status, the «VPN» card («Roadwarrior sessions») shows «1 connected»,
jgreen, the address he connects from, the duration and the traffic (↓ received, ↑ sent). With no sessions it says «No active sessions». The card appears only with the module installed and updates by itself. - From Jack’s laptop: open
\\atlas\administrationand you see the share;nslookupof a domain name answers. - Also try John Smith’s phone with Edon Client: the connection appears as a second row. Each user can have at most two simultaneous connections; the server accepts up to 128 clients.
- After connecting, the console opens as from the internal network: from the VPN the password alone is enough (the code is required from the internet, not from the VPN) and the pages closed to the internet are reachable.
Taking the VPN away from someone
| What you do | Effect on a tunnel already open |
|---|---|
| Turn off «VPN» in Active Directory → Users and save | closed at once |
| Turn on «Account disabled» | closed at once (with the user’s other sessions: mail, files, console) |
| Delete the user | closed at once |
| Set an «Account expires on» date already past | closed at once |
| The expiry arrives by itself, or the account is disabled or stripped of the VPN outside Atlas | closed within 5 minutes by a periodic check of the open tunnels |
For a fixed-term collaborator set «Account expires on» (for example 2026-12-31 18:00): on that date the tunnel closes within 5 minutes. The periodic check looks only at connected users and does nothing if the domain’s list cannot be read, so as not to disconnect everyone when the domain controller is unreachable for a moment.
If something goes wrong
| What you see | What it means | What to do |
|---|---|---|
| The client answers “access denied” | Wrong password or code, «VPN» off, token not “active”, account expired or disabled | Active Directory → Users: «VPN» on; Tools → MFA enrollment: token “active” (not “pending verification”; if “locked”, «Unblock») |
| The client cannot find the server | The public DNS of vpn.atlas.johnsmith.test or the 443 forwarding |
Check the record and the port (scenario 30) |
| The client flags the certificate (“trust anchor not found”) | After a rebuild of the service the Let’s Encrypt certificate is copied back at the nightly synchronisation | Temporary: retry after the synchronisation |
| «The VPN’s RADIUS server is not running» (red box) | RADIUS stopped, the VPN refuses everyone | System → Settings → VPN Roadwarrior, leave the switch as it is and press «Apply» |
| Notification «RADIUS was installed again, but the VPN service did not restart on its new secret: VPN logins fail until edon-vpn restarts» | The VPN service did not pick up the new secret | A technician: systemctl restart edon-vpn |
| «Service updates are running: try again once they are done.» | Service updates in progress | Wait |
| «An MFA change is still running: try again once it is done.» | Another operation is finishing | Wait |
| The tunnel opens but the servers cannot be seen | The tunnel reaches the appliance and the networks the appliance reaches; other sites and VLANs depend on the firewall and the routes | Check case by case; it is not guaranteed that the Argos site’s networks are reachable from a VPN client |
| From home I cannot enrol the token | Enrollment is done from inside: from the internet, without a token, you cannot get in | Go back to the office, or have an administrator guide you |
| The appliance’s internet name was changed | The VPN becomes vpn.<new name> |
Users update the name in the client; the new name must exist in the public DNS («VPN: becomes <name>; the profiles on the devices must be reconfigured.») |
Examples
John Smith’s Android phone
- John installs Edon Client for Android from Google Play: on the Downloads page, category «EDON Client», the «Google Play» card opens the app’s page.
- In the office, connected to the company Wi-Fi, he opens Tools → MFA enrollment from the phone’s browser (or from the laptop), enrols the token and verifies the code.
- In the app he types
atlas.johnsmith.testas the appliance’s name, userjsmithand password (once only), then taps the ring and types the code; the phone flow is described in VPN for people, «On the Android phone». - In System → Status, the «VPN» card shows two sessions of
jsmithif he also has the laptop connected. A third connection would be refused: the limit is two per user.
A collaborator for three months
For Helen Gale (new.hire), a fixed-term collaborator, turn on «VPN» in her page and set «Account expires on» to 2026-12-31 18:00. When the date is reached the account no longer signs in and the tunnel closes within 5 minutes; mail keeps arriving. If you want to extend it, delete or move the date and save.
After a change of the internet name
If in System → Settings → Hosts you change the appliance’s internet name, the VPN name derived from it becomes vpn.<new name>. Update the record in the public DNS, check that the 443 forwarding is still valid and ask the users to change the name in their client.
Checklist before saying “done”
- «VPN Roadwarrior» is «Configured», the red RADIUS box is not there and «Enable MFA on the VPNs» is on.
vpn.atlas.johnsmith.testis in the public DNS and 443 reaches the appliance.- Every person has «VPN» on and an “active” token.
- A test from an outside network succeeds and appears in the «VPN» card of System → Status.
Things to know
- The clients’ network is single for the whole appliance and cannot be changed from this scenario: if 10.20.30.0/24 (or a network that contains it) already exists in the company there is a conflict to solve first.
- Removing the module (bin in the System → Modules tab) also removes the RADIUS server and its secret, and drops all the open tunnels.
- A VPN protects the internal network as much as the credentials do: do not turn the second factor off.
- The second factor is also needed for console access from the internet: the scenario Opening the console to the internet safely uses the same tokens.
For the technician The server is
ocservin theedon-vpnservice; it authenticates throughedon-radius(FreeRADIUS) which for the second factor queries privacyIDEA (edon-mfa) with the policyotppin=userstore: the “password” is PIN + OTP, where the PIN is the domain password. nginx reads the name in the SNI and hands the TLS connection toedon-vpn:4443(PROXY protocol). UDP port 4443 is published for DTLS, but the Edon clients use the TLS tunnel only.