FreeRADIUS is the GNU General Public License developed high-performance open source RADIUS server. FreeRADIUS is the world's most used on the RADIUS server. FreeRADIUS with a Web-based user management tool is a modular, scalable and rich feature set.
Note: This article All commands are done by the root command.
Install CentOS-7-X86_64-Minimal and configure a static IP here is not to describe (IP set to 192.168.1.211, behind this is to fill in the radius IP)
Before starting the installation, the proposed closure SELinux or set to disabled, the best advice is permanently closed SELinux:
# sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
Reboot the system: After reboot, reboot is complete view SELinux
Check firewall status, the state can start adding rules, centos7 default firewall is firewall
# firewall-cmd --state
Turn off the firewall and the firewall turned off the boot:
Directly off the firewall
# Systemctl stop firewalld.service
Prohibit firewall boot
# Systemctl disable firewalld.service
# yum -y install httpd httpd-devel
# systemctl enable httpd
# systemctl start httpd
3, after starting the browser, enter the machine ip, you can see Apache Home
Why not Mysql?
A: MariaDB MySQL database management system is a branch, mainly by the open source community in the maintenance, under the GPL license. One reason for the development of this branch is: after Oracle's acquisition of MySQL, there are potential risks to MySQL closed source, so the branch community a way to avoid this risk.
# yum install -y mariadb-server mariadb
# systemctl start mariadb
# systemctl enable mariadb
# systemctl status mariadb
For security reasons, consider removing the anonymous user and disable remote root login, see the following sample configuration,
# mysql_secure_installation
Set root password? [Y/n] y
New password: Re-enter new password:
Password updated successfully! Reloading privilege tables..
... Success!
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
# mysql -u root -p
MariaDB [(none)]> CREATE DATABASE radius;
MariaDB [(none)]> GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius";
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> exit
# curl 'https://setup.ius.io/' -o setup-ius.sh
# bash setup-ius.sh
# yum remove php-cli mod_php php-common
# yum -y install mod_php70u php70u-cli php70u-mysqlnd php70u-devel php70u-gd php70u-mcrypt php70u-mbstring php70u-xml php70u-pear
# php -v
New info.php page with the directory under the Apache website, after typing press Ins press esc,: wq save and exit.
# vi /var/www/html/info.php
Fill in the following test elements:
<?php phpinfo(); ?>
Open info.php page, php display information that is normal. IP / info.php
# systemctl restart httpd.service
# yum -y install freeradius freeradius-utils freeradius-mysql
# systemctl start radiusd.service
# systemctl enable radiusd.service
3.1 Radius introduced into the database in the database maiadb
# mysql -u root -p radius < /etc/raddb/mods-config/sql/main/mysql/schema.sql
3.2, / raddb / mods-enabled to create a soft link to / etc
# ln -s /etc/raddb/mods-available/sql /etc/raddb/mods-enabled/
3.3, SQL module configuration / raddb / mods-available / SQL, and change the database connection parameters to fit the environment:
# vi /etc/raddb/mods-available/sql
sql {
# The sub-module to use to execute queries. This should match
# the database you're attempting to connect to.
#
# * rlm_sql_mysql
# * rlm_sql_mssql
# * rlm_sql_oracle
# * rlm_sql_postgresql
# * rlm_sql_sqlite
# * rlm_sql_null (log queries to disk)
driver = "rlm_sql_mysql"
dialect = "mysql"
# Connection info:
server = "localhost"
port = 3306
login = "radius"
password = "radius"
# Database table configuration for everything except Oracle
radius_db = "radius"
......
# Set to 'yes' to read radius clients from the database ('nas' table) # Clients will ONLY be read on server startup.
read_clients = yes
Other no need to change the default configuration.
3.4, then the / etc / raddb / mods-enabled / sql owning group are changed radiusd:
# chgrp -h radiusd /etc/raddb/mods-enabled/sql
3.5, is added to start the service, and to adjust the boot sequence FreeRadius the MariaDB, FreeRadius MariaDB be started after startup, [Unit] section, increasing After = mariadb.service, as shown below:
# systemctl enable radiusd.service
# vi /etc/systemd/system/multi-user.target.wants/radiusd.service
After=mariadb.service
3.6, add a client connection settings, add all users are allowed access. For specific access ip, ip can be freely changed.
# vi /etc/raddb/clients.conf
client all_client {
ipaddr = 0.0.0.0/0
secret = testing123
require_message_authenticator = no
}
# cd /var/www/html/
# wget https://github.com/lirantal/daloradius/archive/master.zip
In case of -bash: wget: command not found, etc. to install the appropriate software, did not appear to ignore this step.
# yum -y install wget unzip zip
# unzip master.zip
# mv daloradius-master/ daloradius
# unzip master.zip
# mv daloradius-master/ daloradius
# cd daloradius
# mysql -u root -p radius < contrib/db/fr2-mysql-daloradius-and-freeradius.sql
# mysql -u root -p radius < contrib/db/mysql-daloradius.sql
# chown -R apache:apache /var/www/html/daloradius/
# chmod 664 /var/www/html/daloradius/library/daloradius.conf.php
Open daloradius.conf.php file, modify CONFIG_DB_USER, CONFIG_DB_PASS, CONFIG_DB_NAME.
# vi /var/www/html/daloradius/library/daloradius.conf.php
# systemctl restart radiusd.service
# systemctl restart mariadb.service
# systemctl restart httpd
If the prompt: Warning:. Radiusd.service changed on disk Run 'systemctl daemon-reload' to reload units
The above tips will not ignore this step
# systemctl daemon-reload
# systemctl restart radiusd.service
# yum install php-pear
# pear install DB
default user name: administrator
Password: radius
http://ip-address/daloradius/login.php
Create a user after logging in Management wisoft for testing
So far FreeRadius + Daloradius + web management interface has been installed successfully
Radiustest use third-party testing tools to verify that the server installation was successful, successful interface is as follows, accessories
(Firmware ASUS RT-N56U)
Reset After resetting the device, enter the management pagehttp://192.168.123.1/
1, change the routing operation mode to AP mode
2, is provided a RADIUS 2.4GHz wireless set
3, set up a wireless network License
Reference Bowen:
Official website:
There's one virtual machine, not tested
1. Install PHP 7 First delete the existing PHP:yum remove php* Then update the yum source: Execute yum statement to install PHP: Adapt to Apache: In the Apache configuration file httpd.conf<IfModul...
FreeRadius opens the source solution for AAA Radius Linux, DaloraDius is a graphical Web Administration Tool. Freeeradius is generally used to conduct account certification management, accounting mana...
0. Quote Freeradius installation A reference 1. Go to the official website to select a version Official website I chose the version 2_2_8:freeradius-2-2-8 My little record: I used a very new ver...
First, the preconditions Before reading this article, you need to set up PPTP. If it is still not built, you can refer to it.Quick Install PPTP ***。 If you need to configure DaloRADIUS, then you also ...
Learn howCentOSHosted 7 of Apache on your own website, which is a reliable, popular and easy to configure Web server. I host my own site has a lot of years. 20 years since switching from OS / 2 toLinu...
1. Install the needs background We know ifconfig command can be used to view, configure, enable or disable the specified network interface card configuration as an IP address, mask, broadcast address,...
Article Directory Package management system rpm package management Install packages View installed packages Uninstall the package Upgrade package yum package management View installed packages Search ...
This configuration radius can be run and tested OK, but from the VPN authentication failed. VPN configuration, next blog. PHP exchange group: 294088839, Python communication group: 652376983 &n...
freeradius official website freeradius github Installation method Non-source installation For example ubuntu: For Bionic Beaver (18.04), add to your apt source list (/etc/apt/sources.list): Start the ...
I. Introduction GitLab leverages Ruby on Rails, an open source version management system, to implement a self-hosted Git project repository that provides access to public or private projects through a...