软件包:
(1)安装MySQL:的软件包
1.perl-CGI-2.81.88.i386.rpm
2.perl-DBI-1.32-5.i386.rpm
3.mysql-3.23.54a-11.i386.rpm
4.perl-DBD-MySQL-2.10.21-3.i386.rpm
启动MySQL.并且修改MySQL登陆密码
#mysqladmin password '1234'
再次登陆
#mysql -u root -p
输入密码
create database radius;
use mysql;
update user set password=password('1234') where user='root';
quit
service mysqld restart
(2)安装openSSL:的软件包
安装openSSL需要perl和gcc的支持.假设你已经安装了这些.
compat-gcc-7.3-2.98.118.i386.rpm
libgcc-3.2.2-5.i386.rpm
gcc-object-3.2.2-5.i386.rpm
gcc-objc-3.2.2-5.i386.rpm
gcc-3.2.2-5.i386.rpm
openssl096-0.9.6-15.i386.rpm
openssl096b-0.9.6b-3.i386.rpm
openssl-devel-0.9.7a-2.i386.rpm
openssl-perl-0.9.7-i.386.rpm
并且分别安装他们.
(3)安装freeradius
从中下载freeradius.版本1.1.3
编译和安装
mkdir free
cd /free
tar -zxvf freeradius-1.1.3.tar.gz
cd freeradius-1.1.3
./configure
make
make install
建立数据库mysql的表raius
mysql -u root -p1234 raidus
更改freeradius的设置
cd /usr/local/etc/raddb
vi radiusd.conf 让她支持sql
authorize {
preprocess
chap
mschap
suffix
sql
}
accounting
{
sql
}
设置sql.conf
server='localhost'
login='root'
password='1234'
radius_db='radius'
设置client.conf
NAS的secret 是NAS和radius服务器的共享密码
secret=testing123
阅读(2064) | 评论(0) | 转发(0) |