Article Title: authentication for PPPServer dial-up users. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Purpose:
There are multiple PPP servers on the LAN. To facilitate fee recording and centralized account management, we hope to use one SERVER to verify the dial-up users of these PPP servers.
Software and Hardware implementation environment: RedHat 5.2, a ppp server (RedHat 5.2), a SERVER installed with any UNIX operating system, and a radius server (we call it a verification SERVER ).
Specific implementation:
1. First, you must have configured your ppp server so that it can work properly. If you do not have one, refer to Serial HOWTO and ppp howto, which are also described in this article;
2. Your Network must be connected, at least between the ppp server and the verification SERVER;
3. Install the Radius Client (you can find the specific files in the free software library, but only the files in the library are REDHAT6.0. I have not tested them. If necessary, I can MAIL them to you)
4. Modify/etc/mgetty + sendfax/login. in the config file, remove the annotator of the following line. The/AutoPPP/-a_ppp/usr/sbin/pppd-radius line is used to implement RADIUS-based PAP verification, in this way, users who use WIN98 & 95 do not need to bring up a terminal window. They can directly enter the user ID and PASSWORD in the dialing window;
5. To modify the/etc/options file, you need to remove idle 600 and other configuration items, because the pppd-radius script does not support these parameters. You can also find the higher version of RADIUS from the Internet, maybe it can adapt to this configuration.
Add the following parameters to the configuration file: (1) radius (2) radacct.
Tells the PPPD-RADIUS to use RADIUS for verification;
6. Modify the/etc/radiusclient. conf file as follows:
Auth_orderradius, local # verification order
Login_tries4
Login_timeout60
Nologin/etc/nologin
Issue/etc/radiusclient/issue
Authserver x. x # address of the radius server, which can be localhost
Acctserver x. x
Clients/etc/raddb/clients # Some client configurations
Login_radius/usr/sbin/login. radius
Seqfile/var/run/radius. seq
Mapfile/etc/radiusclient/port-id-map
Default_realm
Radius_timeout10
Radius_retries3
Login_local/bin/login
Port_pool/etc/radiusclient/modem-pool
These configuration items are described in detail. To save space, I am very simple.
7. Modify the/etc/raddb/clients file as follows:
#
# This file contains a list of clients which are allowed
# Make authentication requests and their encryption key.
# The first field is a valid hostname for the client.
# The second field (seperated by blanks or tabs) is
# Encryption key.
# The third field is a short name that is used in the logfiles.
# One can speed up the lookup by using an IP number in the first
# Field.
#
# Client NameKeyShort Name
#--------------------------------------------
# Server1testing123s1
# Server2testing123s2
# Olocalhostjustmyselfme
Radius server's ip address key
Write the IP address of the Radius Server at the corresponding Client Name, that is, at/etc/radiusclient. the address of the authserver and acctserver defined in the conf file, and add a secret word to the corresponding Key. Note that this secret word is created in the Radius Server, the two must be consistent (I did not take a closer look at the configuration of the Radius Server. If necessary, we can study it again)
7. Keep the IP Address Configuration in/etc/ppp/options. ttyN.
8. You can familiarize yourself with the following ppp server configurations during the configuration process.
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