Managing security for iSCSI initiators
Ways to manage initiator security with authentication methods
You can manage the security for iSCSI initiators by performing the following tasks:
- Define iSCSI initiator authentication methods that are kept in an authentication list
- Display the authentication methods in the list
- Define iSCSI initiator authentication methods for initiators not in the list
- Add initiators to the authentication list
- Remove initiators from the authentication list
How iSCSI authentication works
During the initial stage of an iSCSI session, the initiator sends a login request to the storage system to begin an iSCSI session. The storage system permits or denies the login request according to one of the following authentication methods:
You can define a list of initiators and their authentication methods. You can also define a default authentication method for initiators that are not on this list. If you do not specify a list of initiators and authentication methods, the default method is none--any initiator can access the storage system without authentication.
Authentication with vFiler units
If you use iSCSI with vFiler units, the CHAP authentication settings are configured separately for each vFiler. Each vFiler has its own default authentication mode and list of initiators and passwords.
To configure CHAP settings for vFiler units, you must use the command line.
Note
For information about managing vFiler units, see the sections on iSCSI service on vFiler units in the MultiStore Management Guide.
Guidelines for using CHAP authentication
The following guidelines apply to CHAP authentication:
- If you define an inbound user name and password on the storage system, you must use the same user name and password for outbound CHAP settings on the initiator.
- If you also define an outbound user name and password on the storage system to enable bidirectional authentication, you must use the same user name and password for inbound CHAP settings on the initiator.
- You cannot use the same user name and password for inbound and outbound settings on the storage system.
- CHAP user names can be 1 to 128 bytes. A null user name is not allowed.
- CHAP passwords (secrets) can be 1 to 512 bytes. Passwords can be hexadecimal values or strings. For hexadecimal values, enter the value with a prefix of "0x" or "0X". A null password is not allowed.
- See the initiator's documentation for additional restrictions. For example, the Microsoft iSCSI software initiator requires both the initiator and target CHAP passwords to be at least 12 bytes if IPsec encryption is not being used. The maximum password length is 16 bytes regardless of whether IPsec is used.
Upgrading from a previous release
If you upgrade from Data ONTAP 6.4.x to Data ONTAP 6.5 or later, and you have CHAP authentication configured, the CHAP configuration from the previous release is not saved. The CHAP configuration file in Data ONTAP 6.5 and later uses a new format that is not compatible with the CHAP configuration file format of the previous release. When you upgrade, you must use the iscsi security command to reconfigure CHAP settings.
If you do not reconfigure CHAP after the upgrade, Data ONTAP displays the following message when the initiator sends a login message to the storage system:
"ISCSI: Incorrect iSCSI configuration file version"
Defining an authentication method for an initiator
Defining an authentication method using the command line
To define an authentication method for an initiator that is in the authentication list, complete the following steps.
Step
|
Action
|
|
1
|
If you want to...
|
Then...
|
|
Use CHAP authentication and generate a random password
|
- Enter the following command:
iscsi security generate
Result: The storage system generates a 128-bit random password.
- Proceed to Step 2.
|
- Use CHAP authentication and specify a password
- Use another security method
|
Proceed to Step 2.
|
|
2
|
For each initiator, enter the following command:
iscsi security add -i initiator -s method -p inpassword
-n inname [-o outpassword -m outname]
initiator is the initiator name in the iSCSI nodename format.
method is one of the following:
- chap--Authenticate using a CHAP user name and password.
- none--The initiator can access the storage system without authentication.
- deny--The initiator cannot access the storage system.
inpassword is the inbound password for CHAP authentication. The storage system uses the inbound password to authenticate the initiator.
inname is a user name for inbound CHAP authentication. The storage system uses the inbound user name to authenticate the initiator.
outpassword is a password for outbound CHAP authentication. The storage system uses this password for authentication by the initiator.
outname is a user name for outbound CHAP authentication. The storage system uses this user name for authentication by the initiator.
Note If you generated a random password in Step 1, you can use this string for either inpassword or outpassword. If you enter a string, the storage system interprets an ASCII string as an ASCII value and a hexadecimal string, such as 0x1345, as a binary value.
|
Defining an authentication method using FilerView
To define an authentication method for an initiator, complete the following steps.
Step
|
Action
|
|
1
|
Click LUNs > iSCSI > Manage Initiator Security.
Result
A list of initiators is displayed.
|
|
2
|
If you want to...
|
Then...
|
|
Define authentication for an initiator in the list
|
Check the box for the initiator and then click Modify. Proceed to Step 3.
|
|
Define authentication for an initiator that is not in the list
|
- Click Add New Initiator
Security.
- Enter the initiator node name.
Proceed to Step 3.
|
|
3
|
Select the security type.
|
|
4
|
Click Next.
|
|
5
|
If you selected CHAP, enter an inbound user name and password, and then click Next.
|
|
6
|
If you selected CHAP, optionally enter an outbound user name and password, and then click Next.
|
|
7
|
Click Commit.
|
Displaying initiator authentication methods
Displaying initiator authentication methods using the command line
To view a list of initiators and their authentication methods, complete the following step.
Step
|
Action
|
|
1
|
On the storage system console, enter the following command:
iscsi security show
|
Displaying initiator authentication methods using FilerView
To view a list of initiators and their authentication methods, complete the following step.
Step
|
Action
|
|
1
|
Click LUNs > iSCSI > Manage Initiator Security.
|
Defining a default authentication method
To define a default authentication method for initiators that are not on the authentication list, complete the following step. You must use the command line to define a default method.
Step
|
Action
|
|
1
|
On the storage system console, enter the following command:
iscsi security default -s method -p inpassword -n inname
[-o outpassword -m outname]
method is one of the following:
- chap--Authenticate using a CHAP user name and password.
- none--Initiators that are not on the list do not require authentication to access the storage system.
- deny--Initiators that are not on the list are denied access to the storage system.
inpassword is the inbound password for CHAP authentication. The storage system uses the inbound password to authenticate the initiator.
inname is a user name for inbound CHAP authentication. The storage system uses the inbound user name to authenticate the initiator.
outpassword is a password for outbound CHAP authentication. The storage system uses this password for authentication by the initiator.
outname is a user name for outbound CHAP authentication. The storage system uses this user name for authentication by the initiator.
|
Removing specific authentication settings for an initiator
Removing specific authentication settings using the command line
To remove specific authentication settings for an initiator, complete the following step.
Step
|
Action
|
|
1
|
On the storage system console, enter the following command:
iscsi security delete -i initiator
-i initiator is the initiator name in the iSCSI node name format.
Result
The initiator is removed from the authentication list and logs in to the storage system using the default authentication method.
|
Removing specific authentication settings using FilerView
To remove an initiator from the authentication list, complete the following steps.
Step
|
Action
|
|
1
|
Click LUNs > iSCSI > Manage Initiator Security.
|
|
2
|
Check the box for the desired initiator.
|
|
3
|
Click Unset, and then click OK.
Result
The specific security settings for the initiator are removed and the initiator logs in to the storage system using the default authentication method.
|
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01094_B0
File: c11mgt-6.htm
Last updated: 08-Dec-2005 13:25:39