|  | 
   
 |   |  |   
  
    | ISCSI.CONF(5) | FreeBSD File Formats Manual | ISCSI.CONF(5) |  
iscsi.conf— iSCSI
    initiator configuration file
 The iscsi.confconfiguration file is used
    by the
    iscsictl(8)
    utility. The general syntax is: 
	# this is a comment
	nickname_1 {
	   variable = value;
	   ...
	}
	nickname_2 {
	   variable = value;
	   ...
	}
	... 
  AuthMethodSets the authentication type. Type can be either
      "None", or
      "CHAP". Default is
      "None". When set to
      CHAP, bothchapINameandchapSecretmust be defined.chapINameLogin for CHAP authentication.chapSecretSecret for CHAP authentication.tgtChapNameTarget login for Mutual CHAP authentication.tgtChapSecretTarget 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".DataDigestSets 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".InitiatorNameSets the initiator name. By default, the name is concatenation of
      "iqn.1994-09.org.freebsd:" with the
      hostname.TargetNameSets the target name. Not required for discovery sessions.TargetAddressSets the target address and port, in
      address[:port]
      format. The
      address
      can be either an IP address, or hostname. The optional port defaults to
      3260.SessionTypeSets 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.EnableEnable or disable the session. State can be either
      "On", or
      "Off". Default is
      "On".OffloadName of selected iSCSI hardware offload driver. Default is
      "None".ProtocolName of selected protocol. It can be either
      "iSER", for iSCSI over RDMA, or
      "iSCSI". Default is
      "iSCSI".dscpThe DiffServ Codepoint used for sending data. The DSCP can be set to
      numeric, or hexadecimal values directly, as well as the well-defined
      "cs<n>" and
      "af<xx>" codepoints. Default is no
      specified dscp codepoint, which means the default of the outgoing
      interface is used.pcpThe 802.1Q Priority CodePoint used for sending packets. The PCP can be set
      to a value in the range between "0" to
      "7". When omitted, the default for the
      outgoing interface is used.PingTimeoutSpecify the time in seconds to wait between pings (SCSI NOP), and for a
      ping response before declaring the session as dead and attempting a
      re-establishment. If this entry is not present in the conf file, the
      default value configured using
      "kern.iscsi.ping_timeout" (default at
      "5" seconds) is taken by the driver. If
      present, the PingTimeout can be set to any positive value starting with
      "1".LoginTimeoutSpecify the time in seconds to wait for a login PDU to be sent or received
      after trying to establish a new session. When no login PDU is received
      within this time, the login on a particular connection fails and a new
      reconnection attempt is made. If this entry is not present in the conf
      file, the default value of "60" seconds is
      used, as configured by
      "kern.iscsi.login_timeout". The
      LoginTimeout can be set to any positive value starting with
      "1". 
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";
} 
  Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc.
 |