频道栏目
IT货架 > > 正文
Install FreeRadius on CentOS 6.5
网友分享于:Jan 1, 1970 8:00:00 AM    来源: IT货架   

标签:freeradius

1. yum -y install freeradius 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 radius@localhost 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 except 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 test VPN_SERVER_IP 0 testing123

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1544923

Install FreeRadius on CentOS 6.5

标签:freeradius

广告服务联系QQ:1134687142 | 网站地图

版权所有: IT货架- 内容来自互联网,仅供用于技术学习,请遵循相关法律法规. 京ICP备11030978号-1