1. Yum-y install FreeRADIUS-mysql FreeRADIUS-utils mysql-Server
Service mysqld start; chkconfig mysqld on
Mysql_secure_installation
2. mysql-uroot-P
Mysql> Create Database radius;
Mysql> grant all privileges on radius. * to [email protected] identified by "radpass ";
Mysql> flush privileges;
Mysql> use radius;
Mysql> source/etc/raddb/SQL/MySQL/Schema. SQL
3. VI/etc/raddb/SQL. conf
# Connection info:
Server = "localhost"
# Port = 3306
Login = "radius"
Password = "radpass"
# Database Table configuration for everything doesn't Oracle
Radius_db = "radius"
4. VI/etc/raddb/radiusd. conf
$ Include SQL. conf
5. VI/etc/raddb/sites-available/Default
# Line 177
SQL
# Line 406
SQL
VI/etc/raddb/sites-available/Inner-Tunnel
# Line 131
SQL
# Line255
SQL
6. VI/etc/raddb/clients. conf
Client vpn_server_ip {
Secret = your secret here
Shortname = yourvpn
Nastype = Other
}
7. Service radiusd start; chkconfig radiusd on
8. mysql-uroot-P
Mysql> use radius;
Mysql> insert into 'radcheck' ('id', 'username', 'attribute', 'op', 'value') values (1, 'test ', 'User-password', ': =', 'test ');
Radtest test vpn_server_ip 0 testing123
This article is from the ilovecat blog, be sure to keep this source http://hj192837.blog.51cto.com/655995/1544923
Install FreeRADIUS on centos 6.5