Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Managing security for iSCSI initiators

Ways to manage initiator security with authentication methods  Top

You can manage the security for iSCSI initiators by performing the following tasks:

How iSCSI authentication works  Top

During the initial stage of an iSCSI session, the initiator sends a login request to the filer to begin an iSCSI session. The filer 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 filer without authentication.

Guidelines for using CHAP authentication  Top

The following guidelines apply to CHAP authentication:

Defining an authentication method for an initiator  Top

To define an authentication method for initiator that are in the authentication list, complete the following steps.

Step

Action

1

If you want to...

Then...

Use CHAP authentication and generate a random password

  1. Enter the following command:

    iscsi security generate

    Result: The filer generates a 128-bit random password.

  2. 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 filer without authentication.
  • deny--The initiator cannot access the filer.

inpassword is the inbound password for CHAP authentication. The filer uses the inbound password to authenticate the initiator.

inname is a user name for inbound CHAP authentication. The filer uses the inbound user name to authenticate the initiator.

outpassword is a password for outbound CHAP authentication. The filer uses this password for authentication by the initiator.

outname is a user name for outbound CHAP authentication. The filer 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 filer interprets an ASCII string as an ASCII value and a hexadecimal string, such as 0x1345, as a binary value.

Displaying initiator authentication methods  Top

To view a list of initiators and their authentication methods, complete the following step.

Step

Action

1

Enter the following command:

iscsi security show 

Defining a default authentication method  Top

To define a default authentication method for initiators that are not on the authentication list, complete the following step.

Step

Action

1

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 filer.
  • deny--Initiators that are not on the list are denied access to the filer.

inpassword is the inbound password for CHAP authentication. The filer uses the inbound password to authenticate the initiator.

inname is a user name for inbound CHAP authentication. The filer uses the inbound user name to authenticate the initiator.

outpassword is a password for outbound CHAP authentication. The filer uses this password for authentication by the initiator.

outname is a user name for outbound CHAP authentication. The filer uses this user name for authentication by the initiator.

Removing an initiator from the authentication list  Top

To remove an initiator from the authentication list, complete the following step.

Step

Action

1

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 filer using the default authentication method.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments