Install and configure the radius server in CentOS
1. Installation
Yum install-y freeradius-mysql freeradius-utils
2. Configuration
1) Modify clients. conf
# Vi/usr/local/etc/raddb/clients. conf
Add the following lines at the end:
Client 172.18.5.88 {Add the authentication body and enter the IP address of OMA.
Secret = testing123 key
Shortname = 172.18.5.88
Nastype = other
}
It is also possible to retain the default configuration.
2) edit users
# Vi/usr/local/etc/raddb/users
Add User testing to the text: (this user is saved in a text file for testing)
Testing ClearText-Password: = 123
3) Start radiusd to test the radiusd service:
# Radiusd-X & (add & run in the background to facilitate the following test command execution)
# Radtest testing 123 localhost 0 testing123
If the word "Access-Accept" appears, the radius starts to work.
(Sometimes authentication fails because the firewall does not add ports, except UDP 1812 and 1813)