Difference between revisions of "Bering-uClibc 4.x - User Guide - Advanced Topics - Setting Up a RADIUS Server"

From bering-uClibc
Jump to: navigation, search
(Expanded initial skeleton)
(Expanded Confguration section)
Line 12: Line 12:
 
<code class="filename">radius.lrp</code> which is included in Bering-uClibc 4.0.
 
<code class="filename">radius.lrp</code> which is included in Bering-uClibc 4.0.
 
The new Package, based on FreeRADIUS version 2.1.10, is expected to be included in Bering-uClibc 4.1. [[User:Davidmbrooke|Davidmbrooke]] 14:15, 9 April 2011 (UTC)
 
The new Package, based on FreeRADIUS version 2.1.10, is expected to be included in Bering-uClibc 4.1. [[User:Davidmbrooke|Davidmbrooke]] 14:15, 9 April 2011 (UTC)
 +
  
 
==Introduction==
 
==Introduction==
Line 20: Line 21:
  
 
Read the following in conjunction with the standard FreeRADIUS documentation located [http://freeradius.org/doc/ here].
 
Read the following in conjunction with the standard FreeRADIUS documentation located [http://freeradius.org/doc/ here].
 +
  
 
==Packages==
 
==Packages==
Line 31: Line 33:
 
; LDAP : <code class="filename">libldap.lrp</code>
 
; LDAP : <code class="filename">libldap.lrp</code>
  
In addition, for installation and configuration of some aspects of FreeRADIUS the following additional Package is typically required. This may be removed once installation and configuration is complete:
+
In addition, for installation and configuration of some aspects of FreeRADIUS the following additional Package is typically required:
 
* <code class="filename">openssl.lrp</code>
 
* <code class="filename">openssl.lrp</code>
 +
  
 
==Installation==
 
==Installation==
Line 38: Line 41:
  
 
===Generate Digital Certificate Files===
 
===Generate Digital Certificate Files===
The "bootstrap" script needs to be run to generate files required to support Digital Certificate processing. This is the (only) step that needs the <code class="filename">openssl.lrp</code> Package to be installed:
+
The "bootstrap" script needs to be run to generate files required to support Digital Certificate processing.
 +
This is the (only) step that needs the <code class="filename">openssl.lrp</code> Package to be installed.
 +
 
 +
'''Tip:''' Do not add <code class="filename">openssl.lrp</code> to <code class="filename">leaf.cfg</code> but instead install it manually with a command like:
 +
apkg -i /mnt/openssl.lrp
 +
so that <code class="filename">openssl.lrp</code> will be removed at the next reboot.
 +
 
 +
Run the "bootstrap" script as follows:
 
  cd /etc/raddb/certs/
 
  cd /etc/raddb/certs/
 
  sh bootstrap
 
  sh bootstrap
Line 48: Line 58:
 
  cd /root/
 
  cd /root/
 
  radiusd -X
 
  radiusd -X
 +
  
 
==Configuration==
 
==Configuration==
TODO
+
===Overview===
 +
FreeRADIUS has many configuration files stored in directory <code class="filename">/etc/raddb/</code> and its sub-directories.
 +
Some, but not all, of these are listed in the "<tt>radius</tt>" section of the LEAF Packages configuration menu.
 +
 
 +
All of the files under <code class="filename">/etc/raddb/</code> are backed up when the LEAF configuration is saved.
 +
 
 +
Filename paths below are relative to the <code class="filename">/etc/raddb/</code> directory.
 +
 
 +
===Clients===
 +
From a RADIUS perspective, a "client" is a device which connects to the RADIUS server using the RADIUS protocol.
 +
It is typically either a Network Access Server (NAS) or, for a Wireless Network, an Access Point (AP).
 +
 
 +
FreeRADIUS requires that clients are defined in configuration file <code class="filename">clients.conf</code>.
 +
Refer to the excellent comments in the sample file.
 +
 
 +
As an example, the 3com OfficeConnect Wireless 108Mbps 11g PoE Access Point has the following fields in its web-based administration interface:
 +
[[Image:3com_radius_client_example.png|center|frame|alt=Radius Server settings example|Radius Server settings for a 3com Access Point]]
 +
 
 +
Assuming this Access Point is at IP address 192.168.1.101 the corresponding FreeRADIUS client entry would look like:
 +
client SC55835A {
 +
        ipaddr = 192.168.1.101
 +
        secret = ''secret-password''
 +
        require_message_authenticator = yes
 +
}
 +
where "''secret-password''" matches the entry in the "Shared Key" field.
 +
 
  
 
==Further Reading==
 
==Further Reading==

Revision as of 16:36, 11 April 2011

Advanced Topics - Setting Up a RADIUS Server
Prev Bering-uClibc 4.x - User Guide Next


Warning: This page is written for the new FreeRADIUS version 2 variant of radius.lrp, not the old Cistron RADIUS v1.6.8 radius.lrp which is included in Bering-uClibc 4.0. The new Package, based on FreeRADIUS version 2.1.10, is expected to be included in Bering-uClibc 4.1. Davidmbrooke 14:15, 9 April 2011 (UTC)


Introduction

This page provides some guidance on setting up a Remote Authentication Dial In User Service (RADIUS) server on Bering-uClibc 4.x using the FreeRADIUS software.

A RADIUS server provides an Authentication, Authorization and Accounting (AAA) service. Typical use cases include:

  • Authenticating Wireless Network clients which use the "WPA-Enterprise" (as opposed to "WPA-PSK") authentication model where a Wireless Network Access Point is often configured to talk the RADIUS protocol to a server which knows how to authenticate users/clients.

Read the following in conjunction with the standard FreeRADIUS documentation located here.


Packages

The main Package required is radius.lrp. For normal operation the following Packages are also required.

  • lpthread.lrp
  • libcrpto.lrp
  • libssl.lrp

When connecting to different types of back-end server further Packages are required:

LDAP 
libldap.lrp

In addition, for installation and configuration of some aspects of FreeRADIUS the following additional Package is typically required:

  • openssl.lrp


Installation

Some manual installation steps are required before running FreeRADIUS for the first time.

Generate Digital Certificate Files

The "bootstrap" script needs to be run to generate files required to support Digital Certificate processing. This is the (only) step that needs the openssl.lrp Package to be installed.

Tip: Do not add openssl.lrp to leaf.cfg but instead install it manually with a command like:

apkg -i /mnt/openssl.lrp

so that openssl.lrp will be removed at the next reboot.

Run the "bootstrap" script as follows:

cd /etc/raddb/certs/
sh bootstrap

This will create quite a number of "example" Digital Certificate files in directory /etc/raddb/certs/. FreeRADIUS will try to do this automatically the first time it runs but on Bering-uClibc 4.x this will fail, so the script must be run manually - or the relevant files installed by hand.

Run RADIUS Daemon in Debug Mode

To check the configuration settings it is highly recommended to run radiusd in debug mode, from the command line:

cd /root/
radiusd -X


Configuration

Overview

FreeRADIUS has many configuration files stored in directory /etc/raddb/ and its sub-directories. Some, but not all, of these are listed in the "radius" section of the LEAF Packages configuration menu.

All of the files under /etc/raddb/ are backed up when the LEAF configuration is saved.

Filename paths below are relative to the /etc/raddb/ directory.

Clients

From a RADIUS perspective, a "client" is a device which connects to the RADIUS server using the RADIUS protocol. It is typically either a Network Access Server (NAS) or, for a Wireless Network, an Access Point (AP).

FreeRADIUS requires that clients are defined in configuration file clients.conf. Refer to the excellent comments in the sample file.

As an example, the 3com OfficeConnect Wireless 108Mbps 11g PoE Access Point has the following fields in its web-based administration interface:

Radius Server settings example
Radius Server settings for a 3com Access Point

Assuming this Access Point is at IP address 192.168.1.101 the corresponding FreeRADIUS client entry would look like:

client SC55835A {
        ipaddr = 192.168.1.101
        secret = secret-password
        require_message_authenticator = yes
}

where "secret-password" matches the entry in the "Shared Key" field.


Further Reading



Prev Up Next