Please be careful step by step
configure IP {
nmtui
service network restart
ip add
1. Install Freeradius
===============
a. Install packages
-------------------
yum update
yum install epel-release
yum install mariadb-server mariadb freeradius freeradius-mysql freeradius-utils -y
service mariadb start
b. Set MySQL root password
--------------------------
mysql_secure_installation
Root password: your_password
c. crete a database for radius
------------------------------
mysql -uroot -p
CREATE DATABASE radius;
GRANT ALL PRIVILEGES ON radius.* TO radius@localhost IDENTIFIED BY "your_password";
d. Import radius schema
-----------------------
mysql -u root -p radius < /etc/raddb/mods-config/sql/main/mysql/schema.sql
e. Create a symlink
-------------------
ln -s /etc/raddb/mods-available/sql /etc/raddb/mods-enabled
f. Edit radiusd.conf
--------------------
cd /etc/raddb/
vi radiusd.conf
check the following
-------------------
modules {
$INCLUDE mods-enabled/
}
g. Enable sql configuration in default site enabled/
----------------------------------------------------
vi sites-available/default
update as following
-------------------
authorize {
…
sql
…
}
accounting {
…
sql
…
}
session {
…
sql
…
}
post-auth {
…
sql
…
}
Post-Auth-Type REJECT {
sql
}
h. configure SQL module
---------------------
cd /etc/raddb/
vi mods-available/sql
sql {
driver = "rlm_sql_mysql"
server = "localhost"
port = 3306
login = "radius"
password = "your_password"
Database table configuration for everything except Oracle
radius_db = "radius"
}
dialect = "mysql"
read_clients = yes
client_table = "nas"
i. Test Radius
--------------
radiusd -X
2. Install Daloradius
======================
a. Install required packages
----------------------------
yum install epel-release
yum install php-mysql php php-pear php-gd php-pear-DB
cd /usr/local/src
b. Download and configure Daloradius
------------------------------------
wget http://sourceforge.net/projects/daloradius/files/latest/download?source=files
tar zxvf download?source=files
mv daloradius-0.9-9 /var/www/daloradius
cd /var/www/daloradius
chown -R apache. daloradius
c. Set database connection
---------------------------
cd daloradius/
vi library/daloradius.conf.php
$configValues['DALORADIUS_VERSION'] = '0.9-9';
$configValues['FREERADIUS_VERSION'] = '3';
$configValues['CONFIG_DB_ENGINE'] = 'mysql';
$configValues['CONFIG_DB_HOST'] = 'localhost';
$configValues['CONFIG_DB_USER'] = 'radius';
$configValues['CONFIG_DB_PASS'] = 'your_password';
$configValues['CONFIG_DB_NAME'] = 'radius';
save and exit
d. Import daloradius sql into radius database
---------------------------------------------
mysql -u root -p radius < /var/www/daloradius/contrib/db/fr2-mysql-daloradius-and-freeradius.sql
e. Configure apache for daloradius
-----------------------------------
vi /etc/httpd/conf/httpd.conf
Add the following lines to the end of apache config file
----------------------------------------------------------
Alias /myradius "/var/www/daloradius/"
<Directory /var/www/daloradius/>
Options None
order deny,allow
deny from all
allow from 127.0.0.1
allow from <my management system's ip which has a web-browser>
</Directory>
f. Restart apache and redius services
------------------------------------
service httpd restart
service radiusd start
http://youripaddress/daloradius/login.php
Default login details are: Username: administrator Password: radius
Please Watch Videos Below For Detail.....
By POORNetwork.
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon