MFA for your VPN and firewall (RADIUS)
Put VPN and firewall sign-in behind Captivo ID: server details and device settings.
Your device asks Captivo ID: people enter their password, then the authenticator code. Someone removed from the organisation is out of the VPN too.
- On the organisation page: Network devices (RADIUS) → New device. Enter the public IP address the device reaches the internet from; requests from any other address go unanswered.
- Choose the transport: RadSec (TLS, recommended on FortiOS 7.4+) or UDP. With UDP the shared secret is shown once.
- Enter the settings below on your device. Set the timeout to at least 60 seconds, so people have time to read the code.
- Try it with a member. The result appears under Recent sign-ins on the device page, with the reason for any reject.
| Server | radius.captivo.io |
|---|---|
| RadSec | 2083/TCP |
| RADIUS | 1814/UDP |
| Method | PAP (MS-CHAPv2 and EAP are not supported) |
| Timeout | 60 seconds |
FortiGate, Cisco AnyConnect, Palo Alto, Sophos and OpenVPN Access Server can ask for the code in a separate box. On devices that cannot (pfSense/OPNsense OpenVPN, most admin logins) people type password,123456 into the password field.
Device settings
FortiGate over RadSec
bash
config user radius
edit "Captivo"
set server "radius.captivo.io"
set secret "radsec"
set auth-type pap
set transport-protocol tls
set radius-port 2083
set server-identity-check enable
next
end
config user group
edit "Captivo-VPN"
set member "Captivo"
next
end
config system global
set remoteauthtimeout 60
endFortiGate (SSL-VPN / IPsec)
bash
config user radius
edit "Captivo"
set server "radius.captivo.io"
set secret "<shared secret>"
set auth-type pap
set radius-port 1814
next
end
config user group
edit "Captivo-VPN"
set member "Captivo"
next
end
config system global
set remoteauthtimeout 60
endCisco ASA / AnyConnect
bash
aaa-server CAPTIVO protocol radius
aaa-server CAPTIVO (outside) host radius.captivo.io
key <shared secret>
authentication-port 1814
timeout 60
tunnel-group <VPN> general-attributes
authentication-server-group CAPTIVOPalo Alto (GlobalProtect)
bash
Device > Server Profiles > RADIUS > Add
Server: radius.captivo.io Port: 1814
Secret: <shared secret>
Authentication Protocol: PAP Timeout: 60
Device > Authentication Profile: Type RADIUS, the profile above
GlobalProtect portal and gateway: that authentication profileSophos Firewall
bash
Authentication > Servers > Add
Server type: RADIUS server
Server address: radius.captivo.io Port: 1814
Shared secret: <shared secret> Timeout: 60
VPN > Remote access: use this serverpfSense / OPNsense (OpenVPN)
bash
System > User Manager > Authentication Servers > Add
Type: RADIUS Protocol: PAP
Hostname: radius.captivo.io Authentication port: 1814
Shared secret: <shared secret> Timeout: 60
VPN > OpenVPN > Server: Backend for authentication = this server
People type: password,123456MikroTik (RouterOS)
bash
/radius add service=login,ppp address=<IP address of radius.captivo.io> secret="<shared secret>" authentication-port=1814 timeout=60s
/user aaa set use-radius=yes
/ppp aaa set use-radius=yesLinux (SSH, pam_radius)
bash
# /etc/pam_radius_auth.conf
radius.captivo.io:1814 <shared secret> 60
# /etc/pam.d/sshd (first line)
auth required pam_radius_auth.soDevice options
- Who may sign in: tick Owner, Admin, Member; with none ticked, every member of the organisation may. For a group rule, see Access rules below.
- Short usernames: when on, people type
ayseand are looked up asayse@yourdomain. Works only when the organisation has exactly one verified domain. - Message language: the messages the device shows people (the code prompt, the reason for a reject) in Turkish or English.
- Recovery codes do not work on the VPN; it takes an authenticator code.
- At most 10 devices per organisation; one public IP address belongs to one device. Turn off stops a device without deleting it.
- Rotate secret (UDP only): the old shared secret stops working at once and the new one is shown once; be ready to change it on the device. With RadSec the shared secret is fixed:
radsec.