Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.7 KB

RADIUS.md

File metadata and controls

51 lines (39 loc) · 1.7 KB
title description category
RADIUS
Enable RADIUS Authentication
howto

This document describes how to configure RADIUS for deployed systems. We assume you used the deploy_${DIST}.sh script to deploy the software. Below we assume you use vpn.example, but modify this domain to your own domain name!

RADIUS integration can currently only be used to authenticate users, not for authorization/ACL purposes.

In order to make a particular user an "administrator" in the portal, see PORTAL_ADMIN.

Configuration

You can configure the portal to use RADIUS. This is configured in the file /etc/vpn-user-portal/config.php.

You have to set authMethod first:

'authMethod' => 'FormRadiusAuthentication',

Then you can configure the RADIUS server:

// RADIUS
'FormRadiusAuthentication' => [
    'serverList' => [
        [
            'host' => 'radius.example.org',
            'secret' => 'testing123',
            //'port' => 1812,
        ],
    ],
    //'addRealm' => 'example.org',
    //'nasIdentifier' => 'vpn.example.org',
],

Here serverList is an array of server configurations where you can add multiple RADIUS servers to be used for user authentication. Set the host to the host of your RADIUS server. You can optionally also specify the port (defaults to 1812).

You can also configure whether or not to add a "realm" to the identifier the user provides. If for example the user provides foo as a user ID, the addRealm option when set to example.org modifies the user ID to [email protected] and uses that to authenticate to the RADIUS server.

The host and secret options are REQUIRED, the others are optional.