Zeng Yang a.k.a H o w T o

Google

Thursday, December 15, 2005

[HOWTO] FreeRadius

NOTE: Tested on Fedora Core 2(2.6.5-1.358), MySQL 4.1.14 and FreeRadius-1.0.4

1. Download FreeRadius and MySQL


You need to first obtain radius and MySQL


# mkdir /usr/src/freeradius
# cd /usr/src/
# wget ftp://ftp.freeradius.org/pub/radius/old/freeradius-1.0.4.tar.gz


For mysql you need to download the following packages:
  • MySQL-server
  • MySQL-client
  • MySQL-devel
  • MySQL-shared-compat
2. Install MySQL

To install MySQL, execute the command below according to sequence:
# rpm -iUvh MySQL-shared-compat-4.1.14-0.i386.rpm
# rpm -iUvh MySQL-server-4.1.14-0.i386.rpm
# rpm -iUvh MySQL-client-4.1.14-0.i386.rpm
# rpm -iUvh MySQL-devil-4.1.14-0.i386.rpm

3. Install FreeRadius

Go to the directory where you downloaded FreeRadius-1.0.X.tar.gz

# cd /usr/src/freeradius
# tar zxvf freeradius-1.0.4.tar.gz
# cd freeradius-1.0.4
# ./configure --with-experimental-modules
# make
# make install

The options --with-experimental-modules is to load rlm_sqlcounter module which enable you to use 'Session-Timeout' attribute for prepaid system.

Once accomplished, the configuration files can be found at /usr/local/etc/raddb/ the main config file will be radiusd.conf, clients.conf and sqlcounter.conf (for prepaid system)



0 Comments:

Post a Comment

<< Home