Docsity

Configuring RADIUS Authentication and Accounting on HP Switch: Steps and Commands, Study notes of Fish Farming

Toggle sidebar
bg1
4
RADIUS Authentication and Accounting
Contents
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Switch Operating Rules for RADIUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
General RADIUS Setup Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
Configuring the Switch for RADIUS Authentication . . . . . . . . . . . . . 4-6
Outline of the Steps for Configuring RADIUS Authentication . . . . . . 4-6
1. Configure Authentication for the Access Methods You Want
RADIUS To Protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
2. Configure the Switch To Access a RADIUS Server . . . . . . . . . . . . 4-10
3. Configure the Switch’s Global RADIUS Parameters . . . . . . . . . . . 4-12
Local Authentication Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
Controlling Web Browser Interface Access When Using
RADIUS Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
Configuring RADIUS Accounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-17
Operating Rules for RADIUS Accounting . . . . . . . . . . . . . . . . . . . . . . 4-19
Steps for Configuring RADIUS Accounting . . . . . . . . . . . . . . . . . . . . . 4-19
Viewing RADIUS Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
General RADIUS Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
RADIUS Authentication Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-27
RADIUS Accounting Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-28
Changing RADIUS-Server Access Order . . . . . . . . . . . . . . . . . . . . . . . 4-29
Messages Related to RADIUS Operation . . . . . . . . . . . . . . . . . . . . . . . 4-31
4-1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Configuring RADIUS Authentication and Accounting on HP Switch: Steps and Commands and more Study notes Fish Farming in PDF only on Docsity!

4

RADIUS Authentication and Accounting

  • Overview 4- Contents
  • Terminology 4-
  • Switch Operating Rules for RADIUS 4-
  • General RADIUS Setup Procedure 4-
  • Configuring the Switch for RADIUS Authentication 4-
    • Outline of the Steps for Configuring RADIUS Authentication 4-
    • RADIUS To Protect 4- 1. Configure Authentication for the Access Methods You Want
      1. Configure the Switch To Access a RADIUS Server 4-
      1. Configure the Switch’s Global RADIUS Parameters 4-
  • Local Authentication Process 4-
  • RADIUS Authentication 4- Controlling Web Browser Interface Access When Using
  • Configuring RADIUS Accounting 4-
    • Operating Rules for RADIUS Accounting 4-
    • Steps for Configuring RADIUS Accounting 4-
  • Viewing RADIUS Statistics 4-
    • General RADIUS Statistics 4-
    • RADIUS Authentication Statistics 4-
    • RADIUS Accounting Statistics 4-
  • Changing RADIUS-Server Access Order 4-
  • Messages Related to RADIUS Operation 4-

Overview

Overview

Feature Default Menu CLI Web Configuring RADIUS Authentication None n/a 4-6 n/a Configuring RADIUS Accounting None n/a 4-17 n/a Viewing RADIUS Statistics n/a n/a 4-25 n/a

RADIUS ( Remote Authentication Dial-In User Service ) enables you to use up to three servers (one primary server and one or two backups) and maintain separate authentication and accounting for each RADIUS server employed. For authentication, this allows a different password for each user instead of having to rely on maintaining and distributing switch-specific passwords to all users. For accounting, this can help you track network resource usage.

Authentication. You can use RADIUS to verify user identity for the follow ing types of primary password access to the HP switch:

■ Serial port (Console)

■ Telnet

■ SSH

■ Port-Access

Note The switch does not support RADIUS security for SNMP (network manage

ment) access or web browser interface access. For steps to block unautho rized access through the web browser interface, see “Controlling Web Browser Interface Access When Using RADIUS Authentication” on page 4-17.

Accounting. RADIUS accounting on the switch collects resource consump tion data and forwards it to the RADIUS server. This data can be used for trend analysis, capacity planning, billing, auditing, and cost analysis.

Switch Operating Rules for RADIUS

Switch Operating Rules for RADIUS

■ You must have at least one RADIUS server accessible to the switch.

■ The switch supports authentication and accounting using up to three RADIUS servers. The switch accesses the servers in the order in which they are listed by show radius (page 4-25). If the first server does not respond, the switch tries the next one, and so-on. (To change the order in which the switch accesses RADIUS servers, refer to “Changing RADIUS-Server Access Order” on page 4-29.)

■ You can select RADIUS as the primary authentication method for each type of access. (Only one primary and one secondary access method is allowed for each access type.)

■ In the HP switch, EAP RADIUS uses MD5 and TLS to encrypt a response to a challenge from a RADIUS server.

General RADIUS Setup Procedure

General RADIUS Setup Procedure

Preparation:

  1. Configure one to three RADIUS servers to support the switch. (That is, one primary server and one or two backups.) Refer to the documentation provided with the RADIUS server application.
  2. Before configuring the switch, collect the information outlined below.

Table 4-1. Preparation for Configuring RADIUS on the Switch

  • Determine the access methods (console, Telnet, Port-Access, and/or SSH) for which you want RADIUS as the primary authentication method. Consider both Operator (login) and Manager (enable) levels, as well as which secondary authentication methods to use (local or none) if the RADIUS authentication fails or does not respond.

Console access requires Local as secondary method to prevent lockout if the primary RADIUS access fails due to loss of RADIUS server access or other problems with the server.

Figure 4-1. Example of Possible RADIUS Access Assignments

  • Determine the IP address(es) of the RADIUS server(s) you want to support the switch. (You can configure the switch for up to three RADIUS servers.)
  • If you need to replace the default UDP destination port (1812) the switch uses for authentication requests to a specific RADIUS server, select it before beginning the configuration process.
  • If you need to replace the default UDP destination port (1813) the switch uses for accounting requests to a specific Radius server, select it before beginning the configuration process.
  • Determine whether you can use one, global encryption key for all RADIUS servers or if unique keys will be required for specific servers. With multiple RADIUS servers, if one key applies to two or more of these servers, then you can configure this key as the global encryption key. For any server whose key differs from the global key you are using, you must configure that key in the same command that you use to designate that server’s IP address to the switch.
  • Determine an acceptable timeout period for the switch to wait for a server to respond to a request. HP recommends that you begin with the default (five seconds).
  • Determine how many times you want the switch to try contacting a RADIUS server before trying another RADIUS server or quitting. (This depends on how many RADIUS servers you have configured the switch to access.)
  • Determine whether you want to bypass a RADIUS server that fails to respond to requests for service. To shorten authentication time, you can set a bypass period in the range of 1 to 1440 minutes for non-responsive servers. This requires that you have multiple RADIUS servers accessible for service requests.

Configuring the Switch for RADIUS Authentication

Note This step assumes you have already configured the RADIUS server(s) to

support the switch. Refer to the documentation provided with the RADIUS server documentation.)

  • Server IP address
  • (Optional) UDP destination port for authentication requests (default: 1812; recommended)
  • (Optional) UDP destination port for accounting requests (default: 1813; recommended)
  • (Optional) encryption key for use during authentication sessions with a RADIUS server. This key overrides the global encryption key you can also configure on the switch, and must match the encryption key used on the specified RADIUS server. (Default: null)
  1. Configure the global RADIUS parameters.
  • Server Key: This key must match the encryption key used on the RADIUS servers the switch contacts for authentication and account ing services unless you configure one or more per-server keys. (Default: null.)
  • Timeout Period: The timeout period the switch waits for a RADIUS server to reply. (Default: 5 seconds; range: 1 to 15 seconds.)
  • Retransmit Attempts: The number of retries when there is no server response to a RADIUS authentication request. (Default: 3; range of 1 to 5.)
  • Server Dead-Time: The period during which the switch will not send new authentication requests to a RADIUS server that has failed to respond to a previous request. This avoids a wait for a request to time out on a server that is unavailable. If you want to use this feature, select a dead-time period of 1 to 1440 minutes. (Default: 0—disabled; range: 1 - 1440 minutes.) If your first-choice server was initially unavailable, but then becomes available before the dead-time expires, you can nullify the dead-time by resetting it to zero and then trying to log on again. As an alternative, you can reboot the switch, (thus resetting the dead-time counter to assume the server is available) and then try to log on again.
  • Number of Login Attempts: This is actually an aaa authentication command. It controls how many times in one session a RADIUS client (as well as clients using other forms of access) can try to log in with the correct username and password. (Default: Three times per ses sion.)

(For RADIUS accounting features, refer to “Configuring RADIUS Accounting” on page 4-17.)

Configuring the Switch for RADIUS Authentication

  1. Configure Authentication for the Access Methods You Want RADIUS To Protect

This section describes how to configure the switch for RADIUS authentication through the following access methods:

■ Console: Either direct serial-port connection or modem connection.

■ Telnet: Inbound Telnet must be enabled (the default).

■ SSH: To employ RADIUS for SSH access, you must first configure the switch for SSH operation. Refer to “Configuring Secure Shell (SSH)” on page 5-1.

You can also use RADIUS for Port-Based Access authentication. Refer to “Configuring Port-Based Access Control (802.1x)” on page 7-1.

You can configure RADIUS as the primary password authentication method for the above access methods. You will also need to select either local or none as a secondary, or backup, method. Note that for console access, if you configure radius (or tacacs ) for primary authentication, you must configure local for the secondary method. This prevents the possibility of being com pletely locked out of the switch in the event that all primary access methods fail.

Syntax: aaa authentication < console | telnet | ssh > < enable | login > < radius > Configures RADIUS as the primary password authentication method for console, Telnet, and/or SSH. (The default primary < enable | login > authentication is local .) [< local | none >] Provides options for secondary authentication (default: none ). Note that for console access, secondary authentication must be local if primary access is not local. This prevents you from being completely locked out of the switch in the event of a failure in other access methods.

Configuring the Switch for RADIUS Authentication

  1. Configure the Switch To Access a RADIUS Server

This section describes how to configure the switch to interact with a RADIUS server for both authentication and accounting services.

Note If you want to configure RADIUS accounting on the switch, go to page 4-17:

“Configuring RADIUS Accounting” instead of continuing here.

Syntax: [no] radius-server host < ip-address > Adds a server to the RADIUS configuration or (with no ) deletes a server from the configuration. You can configure up to three RADIUS server addresses. The switch uses the first server it successfully accesses. (Refer to “Changing the RADIUS Server Access Order” on page 4-29.) [auth-port < port-number >] Optional. Changes the UDP destination port for authenti cation requests to the specified RADIUS server (host). If you do not use this option with the radius-server host command, the switch automatically assigns the default authentication port number. The auth-port number must match its server counterpart. (Default: 1812 ) [acct-port < port-number >] Optional. Changes the UDP destination port for account ing requests to the specified RADIUS server. If you do not use this option with the radius-server host command, the switch automatically assigns the default accounting port number. The acct-port number must match its server coun terpart.(Default: 1813) [key < key-string >] Optional. Specifies an encryption key for use during authentication (or accounting) sessions with the specified server. This key must match the encryption key used on the RADIUS server. Use this command only if the specified server requires a different encryption key than configured for the global encryption key. no radius-server host < ip-address > key Use the no form of the command to remove the key for a specified server.

Configuring the Switch for RADIUS Authentication

For example, suppose you have configured the switch as shown in figure 4- and you now need to make the following changes:

  1. Change the encryption key for the server at 10.33.18.127 to “source0127”.
  2. Add a RADIUS server with an IP address of 10.33.18.119 and a server- specific encryption key of “source0119”.

Figure 4-3. Sample Configuration for RADIUS Server Before Changing the Key and Adding Another Server

To make the changes listed prior to figure 4-3, you would do the following:

Changes the key for the existing server to “source0127”

Adds the new RADIUS server with its required “source0119” key.

Lists the switch’s new RADIUS server configuration. Compare this with

Figure 4-4. Sample Configuration for RADIUS Server After Changing the Key and Adding Another Server

To change the order in which the switch accesses RADIUS servers, refer to “Changing RADIUS-Server Access Order” on page 4-29.

Configuring the Switch for RADIUS Authentication

Syntax: aaa authentication num-attempts < 1 - 10 > Specifies how many tries for entering the correct user- name and password before shutting down the session due to input errors. (Default: 3; Range: 1 - 10). [no] radius-server key < global-key-string > Specifies the global encryption key the switch uses with servers for which the switch does not have a server- specific key assignment. This key is optional if all RADIUS server addresses configured in the switch include a server-specific encryption key. (Default: Null.) dead-time < 1 - 1440 > Optional. Specifies the time in minutes during which the switch will not attempt to use a RADIUS server that has not responded to an earlier authentication attempt. (Default: 0; Range: 1 - 1440 minutes) radius-server timeout < 1 - 15 > Specifies the maximum time the switch waits for a response to an authentication request before counting the attempt as a failure. (Default: 3 seconds; Range: 1

- 15 seconds) radius-server retransmit < 1 - 5 > If a RADIUS server fails to respond to an authentica tion request, specifies how many retries to attempt before closing the session. Default: 3; Range: 1 - 5)

Note Where the switch has multiple RADIUS servers configured to support authen

tication requests, if the first server fails to respond, then the switch tries the next server in the list, and so-on. If none of the servers respond, then the switch attempts to use the secondary authentication method configured for the type of access being attempted (console, Telnet, or SSH). If this occurs, refer to “RADIUS-Related Problems” in the Troubleshooting chapter of the Manage ment and Configuration Guide for your switch.

Configuring the Switch for RADIUS Authentication

For example, suppose that your switch is configured to use three RADIUS servers for authenticating access through Telnet and SSH. Two of these servers use the same encryption key. In this case your plan is to configure the switch with the following global authentication parameters:

■ Allow only two tries to correctly enter username and password.

■ Use the global encryption key to support the two servers that use the same key. (For this example, assume that you did not configure these two servers with a server-specific key.)

■ Use a dead-time of five minutes for a server that fails to respond to an authentication request.

■ Allow three seconds for request timeouts.

■ Allow two retries following a request that did not receive a response.

Figure 4-5. Example of Global Configuration Exercise for RADIUS Authentication

Local Authentication Process

Local Authentication Process

When the switch is configured to use RADIUS, it reverts to local authentication only if one of these two conditions exists:

■ “Local” is the authentication option for the access method being used.

■ The switch has been configured to query one or more RADIUS servers for a primary authentication request, but has not received a response, and local is the configured secondary option.

For local authentication, the switch uses the Operator-level and Manager-level username/password set(s) previously configured locally on the switch. (These are the usernames and passwords you can configure using the CLI password command, the web browser interface, or the menu interface—which enables only local password configuration).

■ If the operator at the requesting terminal correctly enters the user- name/password pair for either access level (Operator or Manager), access is granted on the basis of which username/password pair was used. For example, suppose you configure Telnet primary access for RADIUS and Telnet secondary access for local. If a RADIUS access attempt fails, then you can still get access to either the Operator or Manager level of the switch by entering the correct username/pass word pair for the level you want to enter.

■ If the username/password pair entered at the requesting terminal does not match either local username/password pair previously configured in the switch, access is denied. In this case, the terminal is again prompted to enter a username/password pair. In the default configu ration, the switch allows up to three attempts. If the requesting terminal exhausts the attempt limit without a successful authentica tion, the login session is terminated and the operator at the requesting terminal must initiate a new session before trying again.

Controlling Web Browser Interface Access When Using RADIUS Authentication

Controlling Web Browser Interface

Access When Using RADIUS

Authentication

Configuring the switch for RADIUS authentication does not affect web browser interface access. To prevent unauthorized access through the web browser interface, do one or more of the following:

■ Configure local authentication (a Manager user name and password and, optionally, an Operator user name and password) on the switch.

■ Configure the switch’s Authorized IP Manager feature to allow web browser access only from authorized management stations. (The Authorized IP Manager feature does not interfere with TACACS+ operation.)

■ Disable web browser access to the switch.

Configuring RADIUS Accounting

RADIUS Accounting Commands Page [no] radius-server host < ip-address > 4- [acct-port < port-number >] 4- [key < key-string >] 4- [no] aaa accounting < exec | network | system > 4- < start-stop | stop-only> radius [no] aaa accounting update periodic < 1 - 525600 > ( in minutes )

4-

[no] aaa accounting suppress null-username 4- show accounting 4- show accounting sessions 4- show radius accounting 4-

Configuring RADIUS Accounting

The switch forwards the accounting information it collects to the designated RADIUS server, where the information is formatted, stored, and managed by the server. For more information on this aspect of RADIUS accounting, refer to the documentation provided with your RADIUS server.

Operating Rules for RADIUS Accounting

■ You can configure up to three types of accounting to run simulta neously: exec, system, and network.

■ RADIUS servers used for accounting are also used for authentication.

■ The switch must be configured to access at least one RADIUS server.

■ RADIUS servers are accessed in the order in which their IP addresses were configured in the switch. Use show radius to view the order. As long as the first server is accessible and responding to authentication requests from the switch, a second or third server will not be accessed. (For more on this topic, refer to “Changing RADIUS-Server Access Order” on page 4-29.)

■ If access to a RADIUS server fails during a session, but after the client has been authenticated, the switch continues to assume the server is available to receive accounting data. Thus, if server access fails during a session, it will not receive accounting data transmitted from the switch.

Steps for Configuring RADIUS Accounting

  1. Configure the switch for accessing a RADIUS server.

You can configure a list of up to three RADIUS servers (one primary, two backup). The switch operates on the assumption that a server can operate in both accounting and authentication mode. (Refer to the documentation for your RADIUS server application.)

  • Use the same radius-server host command that you would use to configure RADIUS authentication. Refer to “2. Configure the Switch To Access a RADIUS Server” on page 4-10.
  • Provide the following:
    • A RADIUS server IP address.
    • Optional—a UDP destination port for authentication requests. Otherwise the switch assigns the default UDP port (1812; recom mended).

Configuring RADIUS Accounting

  • Optional—if you are also configuring the switch for RADIUS authentication, and need a unique encryption key for use during authentication sessions with the RADIUS server you are desig nating, configure a server-specific key. This key overrides the global encryption key you can also configure on the switch, and must match the encryption key used on the specified RADIUS server. For more information, refer to the key < key-string > param eter on page 4-10. (Default: null)
  1. Configure accounting types and the controls for sending reports to the RADIUS server.
  • Accounting types: exec (page 4-18), network (page 4-18), or system (page 4-18)
  • Trigger for sending accounting reports to a RADIUS server: At session start and stop or only at session stop
  1. (Optional) Configure session blocking and interim updating options
  • Updating: Periodically update the accounting data for sessions-in- progress
  • Suppress accounting: Block the accounting session for any unknown user with no username access to the switch
  1. Configure the Switch To Access a RADIUS Server

Before you configure the actual accounting parameters, you should first configure the switch to use a RADIUS server. This is the same as the process described on page 4-10. You need to repeat this step here only if you have not yet configured the switch to use a RADIUS server, your server data has changed, or you need to specify a non-default UDP destination port for accounting requests. Note that switch operation expects a RADIUS server to accommodate both authentication and accounting.