Adding a Second Step to VPN Sign-In: Password and Code over RADIUS
ON THIS PAGE
One of the doors attackers use most often is a VPN account whose password leaked or was guessed. As long as a password is enough, that door stays open. A second step closes it, and on most devices you do not have to install anything new, because the device already speaks RADIUS.
What RADIUS is for
RADIUS is an old and widespread protocol that lets a VPN device ask another server to check the user instead of doing it itself. Your device passes the user's password and code to that server, which answers "accept" or "reject". Captivo ID takes the server role: it checks the password against the organisation's membership and the code against the user's authenticator app.
What the user sees
In the VPN client the person types their password, then the code from their authenticator app. FortiGate, Cisco AnyConnect, Palo Alto GlobalProtect, Sophos and OpenVPN Access Server can ask for the code in a separate box. On devices that cannot (pfSense and OPNsense OpenVPN, MikroTik, Linux SSH) the person types password,123456 in the password field: the password, a comma, then the code.
Setup in four steps
- Add the device. On the organisation page, Network devices (RADIUS) → New device. Enter the public IP address the device reaches the internet from; a request from any other address gets no answer.
- Pick the transport. RadSec (TLS) or UDP. RadSec is recommended on FortiOS 7.4 and later. With UDP the shared secret is shown once.
- Enter the settings on the device. Server radius.captivo.io; 2083/TCP for RadSec, 1814/UDP for plain RADIUS; method PAP. Set the timeout to at least 60 seconds so the person has time to read and type the code.
- Try it with one member. The result shows under Recent sign-ins on the device page, with the reason when it is a rejection.
You choose who can sign in
You decide which of Owner, Admin and Member may sign in; if none is ticked, every member of the organisation can. For a finer rule, group-based access rules apply. The most useful side effect is this: because the check goes through Captivo ID, someone removed from the organisation is out of the VPN too, and there is no separate VPN account to remember to close.
The limits to know
- Only PAP is supported; MS-CHAPv2 and EAP are not.
- Recovery codes do not work on a VPN; an authenticator code is required.
- An organisation has at most 10 devices, and one public IP address belongs to one device.
- A short user name (ayse instead of ayse@yourdomain) works only when the organisation has exactly one verified domain.
- With "Enterprise sign-in only" on, members have no Captivo password and cannot sign in to a VPN through cloud RADIUS; only the owner's emergency password works.
With Captivo ID
The settings for each device are published on the two-step verification for your VPN page and in the guide. To connect your own identity provider, see enterprise sign-in and SCIM; for wired and wireless network access, read the 802.1X post.