I. ການຕຕິດຕຕຕັ້ງ RADIUS SERVER ມມີ 3 ຢຢາງຄຄ Freeradius2 + Mysql + Daloradius
I. ການຕຕິດຕຕຕັ້ງ RADIUS SERVER ມມີ 3 ຢຢາງຄຄ Freeradius2 + Mysql + Daloradius
I. ການຕຕິດຕຕຕັ້ງ RADIUS SERVER ມມີ 3 ຢຢາງຄຄ Freeradius2 + Mysql + Daloradius
RADIUS SERVER 3
Freeradius2 + Mysql + Daloradius
a) System services
#setup
-Atd
-Autofs
-Crond
-Httpd
-Mysqld
-Netfs
-Network
-Nfslock
-Snmpd
-Sshd
-Syslog
sql #
161
317 file # ( #file )
351 sql #
382 sql #
403 sql #
#vi /usr/local/etc/raddb/radiusd.conf
$INCLUDE sql.conf
#
#mysql -uroot -p
mysql> use radius;
mysql> INSERT INTO radcheck (UserName, Attribute, Value) VALUES
('sqltest', 'Password', 'testpwd');
mysql> FLUSH PRIVILEGES;
mysql> quit
stop radius
#radiusd stop
process
#ps -fe | grep -i radius
process
# killall -9 radiusd
#radiusd -X
=========================================
=========================
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on proxy address * port 1814
Ready to process requests.
=========================================
==================
Mysql
#radtest sqltest testpwd localhost 1812 testing123
Sending Access-Request of id 226 to 127.0.0.1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812,
id=226, length=20
daloradius web Management
#cd /home/radius
#tar zxvf daloradius-0.9-8.tar.gz
#cp -R daloradius-0.9-8 /var/www
php
# rpm -ivh php-dba-5.1.6-20.el5.i386.rpm