Overview
...
This short tutorial will guide you how to Install FreeRadius + mysql support on Centos 6.2 x64. An ideal base to use with HostBill FreeRadius module.
For other OS/versions/architectures the installation process is very similar.
Install packages
...
Login to your server/vps shell, execute the following commands:
Code Block | ||
---|---|---|
| ||
# yum install mysql-server.x86_64 freeradius.x86_64 freeradius-mysql.x86_64 freeradius-utils.x86_64 -y |
This will install latest stable freeRADIUS server
Create Database
...
First you need to start mysql server, do so using:
...
Code Block | ||
---|---|---|
| ||
mysql> GRANT ALL ON freeradius.* TO radius@'HOSTBILL_IP' IDENTIFIED BY "FreeRadiusPassword"; |
Now its it's time to create required tables. Exit mysql console, and type in:
Code Block | ||
---|---|---|
| ||
mysql freeradius < /etc/raddb/sql/mysql/schema.sql |
Enabling sql support in FreeRADIUS
...
Edit file:
Code Block | ||
---|---|---|
| ||
# vi /etc/raddb/sql.conf |
...
Ucomment sql line in /etc/raddb/sites-available/inner-tunnel under authorize {
Edit secret word.
Go to file
Code Block | ||
---|---|---|
| ||
# vi /etc/raddb/clients.conf |
and edit secret to new value.