1 .\" Copyright (c) 2007-2010 Daniel Braniss <danny@cs.huji.ac.il>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd iSCSI initiator configuration file
36 configuration file is used by the
39 The general syntax is:
54 .Bl -tag -width MaxConnections
56 Sets the authentication type.
71 Login for CHAP authentication.
73 Secret for CHAP authentication.
75 Target login for Mutual CHAP authentication.
77 Target secret for Mutual CHAP authentication.
79 Sets the header digest; a checksum calculated over the header of iSCSI
80 PDUs, and verified on receive.
88 Sets the data digest; a checksum calculated over the Data Section of iSCSI
89 PDUs, and verified on receive.
97 Sets the initiator name.
98 By default, the name is concatenation of
99 .Qq Ar iqn.1994-09.org.freebsd:
102 Sets the target name.
103 Not required for discovery sessions.
105 Sets the target address and port, in
110 can be either an IP address, or hostname.
111 The optional port defaults to 3260.
113 Sets the session type.
120 For normal sessions, the
123 Discovery sessions result in the initiator connecting to all the targets
124 returned by SendTargets iSCSI discovery with the defined
127 Enable or disable the session.
135 Name of selected iSCSI hardware offload driver.
139 Name of selected protocol.
142 for iSCSI over RDMA, or
147 The DiffServ Codepoint used for sending data.
148 The DSCP can be set to numeric, or hexadecimal values directly,
149 as well as the well-defined
154 Default is no specified dscp codepoint, which means the default
155 of the outgoing interface is used.
157 The 802.1Q Priority CodePoint used for sending packets.
158 The PCP can be set to a value in the range between
162 When omitted, the default for the outgoing interface is used.
164 Specify the time in seconds to wait between pings (SCSI NOP), and
165 for a ping response before declaring the session as dead and
166 attempting a re-establishment.
167 If this entry is not present in the conf file, the default value
169 .Qq Ar kern.iscsi.ping_timeout
172 seconds) is taken by the driver.
173 If present, the PingTimeout can be set to any positive value
177 Specify the time in seconds to wait for a login PDU to be sent or
178 received after trying to establish a new session.
179 When no login PDU is received within this time, the login on a
180 particular connection fails and a new reconnection attempt is made.
181 If this entry is not present in the conf file, the default value of
183 seconds is used, as configured by
184 .Qq Ar kern.iscsi.login_timeout .
185 The LoginTimeout can be set to any positive value starting with
189 .Bl -tag -width indent
190 .It Pa /etc/iscsi.conf
195 targetaddress = iscsi1
196 targetname = iqn.1900.com.com:sn.123456
199 myiscsi6 { # nickname
200 targetaddress = [2001:db8::de:ef]:3260
201 targetname = iqn.1900.com.com:sn.123456
205 targetaddress = 10.0.0.1;
206 targetname = iqn.1900.com.com:sn.123456;
207 initiatorname = iqn.2005-01.il.ac.huji.cs:nobody;
209 chapiname = iqn.2005-01.il.ac.huji.cs:nobody;
210 chapsecret = "secretsecret";