Implementing AAA Through Freeradius With MySQL On Ubuntu Server 12
1. The document describes steps to implement AAA (authentication, authorization, and accounting) through Freeradius with MySQL on an Ubuntu Server using daloRadius for management. This includes installing software, configuring files, creating databases and tables, adding users, and testing the setup.
2. Key steps are installing Freeradius, PHP, and MySQL packages; configuring Freeradius and sql files to use MySQL; creating a radius database and populating tables; and accessing the daloRadius management interface after installing and configuring it.
3. The setup is tested by adding a user to the MySQL database, and using radtest to authenticate against the Freeradius server.
Implementing AAA Through Freeradius With MySQL On Ubuntu Server 12
1. The document describes steps to implement AAA (authentication, authorization, and accounting) through Freeradius with MySQL on an Ubuntu Server using daloRadius for management. This includes installing software, configuring files, creating databases and tables, adding users, and testing the setup.
2. Key steps are installing Freeradius, PHP, and MySQL packages; configuring Freeradius and sql files to use MySQL; creating a radius database and populating tables; and accessing the daloRadius management interface after installing and configuring it.
3. The setup is tested by adding a user to the MySQL database, and using radtest to authenticate against the Freeradius server.
4. Restart freeradius service 1: service freeradius restart
5. Test Locally 1: radtest steve testing localhost 1812 testing123
If rad_recv returned Access-Accept, it proved that the installation was successful. Then commented out the above in the /etc/freeradius/users file 1: 2: rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, 3: id=115, length=71 4:
Configure Freeradius for MySQL 1. Open sql.conf 1: nano /etc/freeradius/sql.conf Change the 38 th line 1: login = root Change the 39 th line 1: password = sqlrootpassword Uncomment the 100 th line 1: readclients = yes
2. Open radiusd.conf 1: nano /etc/freeradius/radiusd.conf Change the 544 th line 1: proxy_requests = no Change the 683 rd line 1: $INCLUDE sql.conf
3. Open default file 1: nano /etc/freeradius/sites-available/default In section authorize, comment out line 152 nd
1: #files Uncomment the 159 th line 1: sql In section preactt, comment out line 354 th
1: #files In section accounting, uncomment the 388 th line 1: sql
4. Open inner-tunnel file 1: sudo nano /etc/freeradius/sites-enabled/inner-tunnel In section authorize, comment out line 124 th
1: #files Uncomment the 131 st line 1: sql
5. Open clients.conf 1: nano /etc/freeradius/clients.conf Add the following lines 1: client 192.168.26.0/24 { 2: secret = usersecret 3: shortname = private 4: }
6. Create database radius 1: mysql u root psqlrootpassword 2: mysql>create database radius; 3: mysql>exit
Create tables for radius database 1: mysql -u root psqlrootpassword radius < /etc/freeradius/sql/mysql/schema.sql 2: mysql -u root psqlrootpassword radius < /etc/ freeradius /sql/mysql/nas.sql 3: mysql -u root psqlrootpassword radius < /etc/ freeradius /sql/mysql/cui.sql 4: mysql -u root psqlrootpassword radius < /etc/ freeradius /sql/mysql/ippool.sql 5: mysql -u root psqlrootpassword radius < /etc/ freeradius /sql/mysql/wimax.sql 6: mysql -u root psqlrootpassword radius < /etc/ freeradius /sql/mysql/admin.sql
7. Add a test user 1: sudo mysql -u root psqlrootpassword 2: mysql> use radius; 3: mysql> INSERT INTO radcheck (UserName, Attribute, Value) VALUES (usertest, Password, passwordtest);
8. Test MySQL Radius 1: radtest usertest passwordtest localhost 1812 testing123