man.bsd.lv manual page server

Manual Page Search Parameters

ISCSI.CONF(5) File Formats Manual ISCSI.CONF(5)

iscsi.confiSCSI initiator configuration file

The iscsi.conf configuration file is used by the iscsictl(8) and iscontrol(8) utilities. The general syntax is:
	# this is a comment
	nickname_1 {
	   variable = value;
	   ...
	}
	nickname_2 {
	   variable = value;
	   ...
	}
	...
Sets the authentication type. Type can be either "None", or "CHAP". Default is "None". When set to CHAP, both chapIName and chapSecret must be defined.
Login for CHAP authentication.
Secret for CHAP authentication.
Target login for Mutual CHAP authentication.
Target secret for Mutual CHAP authentication.
Sets the header digest; a checksum calculated over the header of iSCSI PDUs, and verified on receive. Digest can be either "None", or "CRC32C". Default is "None".
Sets the data digest; a checksum calculated over the Data Section of iSCSI PDUs, and verified on receive. Digest can be either "None", or "CRC32C". Default is "None".
Sets the initiator name. By default, the name is concatenation of "iqn.1994-09.org.freebsd:" with the hostname.
Sets the target name. Not required for discovery sessions.
Sets the target address and port, in format. The can be either an IP address, or hostname. The optional port defaults to 3260.
Sets the session type. Type can be either "Discovery", or "Normal". Default is "Normal". For normal sessions, the TargetName must be defined. Discovery sessions result in the initiator connecting to all the targets returned by SendTargets iSCSI discovery with the defined TargetAddress.
Enable or disable the session. State can be either "On", or "Off". Default is "On".
Name of selected iSCSI hardware offload driver. Default is "None".
Name of selected protocol. It can be either "iSER", for iSCSI over RDMA, or "iSCSI". Default is "iSCSI".

/etc/iscsi.conf
 

myiscsi { # nickname
   targetaddress = iscsi1
   targetname    = iqn.1900.com.com:sn.123456
}

myiscsi6 { # nickname
   targetaddress = [2001:db8::de:ef]:3260
   targetname    = iqn.1900.com.com:sn.123456
}

chaptest {
   targetaddress = 10.0.0.1;
   targetname    = iqn.1900.com.com:sn.123456;
   initiatorname = iqn.2005-01.il.ac.huji.cs:nobody;
   authmethod    = CHAP;
   chapiname     = iqn.2005-01.il.ac.huji.cs:nobody;
   chapsecret    = "secretsecret";
}

iscontrol(8), iscsictl(8)

May 6, 2016 FreeBSD-12.0