Install and configure the radius server in CentOS

Source: Internet
Author: User
Tags freeradius

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.