1e25c779eSMatthew Dillon.\" Copyright (c) 2007-2008 Daniel Braniss <danny@cs.huji.ac.il> 2e25c779eSMatthew Dillon.\" All rights reserved. 3e25c779eSMatthew Dillon.\" 4e25c779eSMatthew Dillon.\" Redistribution and use in source and binary forms, with or without 5e25c779eSMatthew Dillon.\" modification, are permitted provided that the following conditions 6e25c779eSMatthew Dillon.\" are met: 7e25c779eSMatthew Dillon.\" 1. Redistributions of source code must retain the above copyright 8e25c779eSMatthew Dillon.\" notice, this list of conditions and the following disclaimer. 9e25c779eSMatthew Dillon.\" 2. Redistributions in binary form must reproduce the above copyright 10e25c779eSMatthew Dillon.\" notice, this list of conditions and the following disclaimer in the 11e25c779eSMatthew Dillon.\" documentation and/or other materials provided with the distribution. 12e25c779eSMatthew Dillon.\" 13e25c779eSMatthew Dillon.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14e25c779eSMatthew Dillon.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15e25c779eSMatthew Dillon.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16e25c779eSMatthew Dillon.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17e25c779eSMatthew Dillon.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18e25c779eSMatthew Dillon.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19e25c779eSMatthew Dillon.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20e25c779eSMatthew Dillon.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21e25c779eSMatthew Dillon.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22e25c779eSMatthew Dillon.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23e25c779eSMatthew Dillon.\" SUCH DAMAGE. 24e25c779eSMatthew Dillon.\" 25ef8e7823SSascha Wildner.\" $FreeBSD: src/sbin/iscontrol/iscsi.conf.5,v 1.3 2008/11/25 07:17:11 scottl Exp $ 26e25c779eSMatthew Dillon.\" 27ef8e7823SSascha Wildner.Dd August 24, 2009 28e25c779eSMatthew Dillon.Dt ISCSI.CONF 5 29fb5b3747SSascha Wildner.Os 30e25c779eSMatthew Dillon.Sh NAME 31e25c779eSMatthew Dillon.Nm iscsi.conf 32e25c779eSMatthew Dillon.Nd key options to be negotiated in an iSCSI session 33e25c779eSMatthew Dillon.Sh DESCRIPTION 34e25c779eSMatthew DillonThe file 35e25c779eSMatthew Dillon.Nm , 36e25c779eSMatthew Dillonis read by the 37e25c779eSMatthew Dillon.Xr iscontrol 8 38e25c779eSMatthew Dillonprogram. 39e25c779eSMatthew DillonIt contains declarations and parameter/key-options. 40e25c779eSMatthew DillonThe syntax is very simple, 41e25c779eSMatthew Dillon.D1 Li variable = value; 42e25c779eSMatthew Dillonand they can be grouped via a 43e25c779eSMatthew Dillon.Em block 44e25c779eSMatthew Dillondeclaration: 45e25c779eSMatthew Dillon.Bf Li 46e25c779eSMatthew Dillon.Bd -literal 47e25c779eSMatthew Dillon # this is a comment 48e25c779eSMatthew Dillon target_1 { # nickname 49e25c779eSMatthew Dillon variable = value; 50e25c779eSMatthew Dillon ... 51e25c779eSMatthew Dillon } # this must be on a line by itself. 52e25c779eSMatthew Dillon.Ed 53e25c779eSMatthew Dillon.Ef 54e25c779eSMatthew Dillon.Pp 55e25c779eSMatthew DillonThe following are specified in the iSCSI RFC 3720, 56e25c779eSMatthew Dillonfor a full description see sections 11/12 of the RFC. 57e25c779eSMatthew Dillon.Bl -tag -width MaxConnections 58e25c779eSMatthew Dillon.It Cm AuthMethod 59e25c779eSMatthew Dilloncurrently only supported authentication method is CHAP, with 60e25c779eSMatthew Dillondigest either MD5 or SHA. 61e25c779eSMatthew DillonDefault is none. 62e25c779eSMatthew Dillon.It Cm HeaderDigest 63e25c779eSMatthew Dillona 64e25c779eSMatthew Dillon.Em digest 65e25c779eSMatthew Dillonis calculated on the header of all iSCSI PDUs, and 66e25c779eSMatthew Dillonchecked. 67e25c779eSMatthew DillonOnly CRC32C is implemented. 68e25c779eSMatthew DillonDefault is none. 69e25c779eSMatthew Dillon.It Cm DataDigest 70e25c779eSMatthew Dillonsame as for HeaderDigest, but on the data part of the iSCSI PDU. 71e25c779eSMatthew Dillon.It Cm MaxConnections 72e25c779eSMatthew Dillonis the number of simultaneous connections per session, 73e25c779eSMatthew Dilloncurrently only 1. 74e25c779eSMatthew Dillon.It Cm TargetName 75e25c779eSMatthew Dillonis the name by which the target is known, not to be confused with 76e25c779eSMatthew Dillontarget address, either obtained via the target administrator, or 77e25c779eSMatthew Dillonfrom a 78e25c779eSMatthew Dillon.Em discovery session . 79e25c779eSMatthew Dillon.It Cm InitiatorName 80e25c779eSMatthew Dillonif not specified, defaults to 81e25c779eSMatthew Dillon.Sy iqn.2005-01.il.ac.huji.cs: 82e25c779eSMatthew Dillon.Aq hostname . 83e25c779eSMatthew Dillon.It Cm TargetAlias / InitiatorAlias 84e25c779eSMatthew Dillonnot implemented. 85e25c779eSMatthew Dillon.It Cm TargetAddress 86e25c779eSMatthew Dillonis of the form 87e25c779eSMatthew Dillon.Sy domainname[:port][,portal-group-tag] 88e25c779eSMatthew Dillonto quote the RFC: 89e25c779eSMatthew Dillon.Bd -ragged -compact 90e25c779eSMatthew DillonThe domainname can be specified as either a DNS host name, a 91ef8e7823SSascha Wildnerdotted-decimal IPv4 address, or a bracketed IPv6 address as specified in 92ef8e7823SSascha Wildner.Sy RFC 2732 . 93e25c779eSMatthew Dillon.Ed 94e25c779eSMatthew DillonNote: portal-group-tag is unused at the moment. 95e25c779eSMatthew Dillon.It Cm TargetPortalGroupTag 96e25c779eSMatthew Dillon.Em not implemented yet. 97e25c779eSMatthew Dillon.It Cm InitialR2T 98e25c779eSMatthew Dillon.Em not implemented yet. 99e25c779eSMatthew Dillon.It Cm ImmediateData 100e25c779eSMatthew Dillon.Em not implemented yet. 101e25c779eSMatthew Dillon.It Cm MaxRecvDataSegmentLength 102e25c779eSMatthew Dillonthe maximum data segment length in 103e25c779eSMatthew Dillonbytes it can receive in an iSCSI PDU, default is 8192. 104e25c779eSMatthew Dillon.It Cm MaxBurstLength 105e25c779eSMatthew Dillon.Em not implemented yet. 106e25c779eSMatthew Dillon.It Cm FirstBurstLength 107e25c779eSMatthew Dillon.Em not implemented yet. 108e25c779eSMatthew Dillon.It Cm DefaultTime2Wait 109e25c779eSMatthew Dillon.Em not implemented yet. 110e25c779eSMatthew Dillon.It Cm DefaultTime2Retain 111e25c779eSMatthew Dillon.Em not implemented yet. 112e25c779eSMatthew Dillon.It Cm MaxOutstandingR2T 113e25c779eSMatthew Dillonis used to calculate/negotiate the 114e25c779eSMatthew Dillon.Em tag opening , 115566ca746SSascha Wildnercan be overridden by the 116e25c779eSMatthew Dillon.Sy tag 117e25c779eSMatthew Dillonoption. 118e25c779eSMatthew Dillon.It Cm DataPDUInOrder 119e25c779eSMatthew Dillon.Em not implemented yet. 120e25c779eSMatthew Dillon.It Cm DataSequenceInOrder 121e25c779eSMatthew Dillon.Em not implemented yet. 122e25c779eSMatthew Dillon.It Cm ErrorRecoveryLevel 123e25c779eSMatthew DillonOnly level 0 is supported. 124e25c779eSMatthew Dillon.It Cm SessionType 125e25c779eSMatthew Dilloneither Discovery or Normal, default is Normal, see the 126e25c779eSMatthew Dillon.Fl d 127e25c779eSMatthew Dillonflag of 128e25c779eSMatthew Dillon.Cm iscontrol . 129e25c779eSMatthew Dillon.El 130e25c779eSMatthew Dillon.sp 131e25c779eSMatthew DillonThe following are not specified in the 132e25c779eSMatthew Dillon.Sy RFC 3720 133e25c779eSMatthew Dillon.Bl -tag -width sockbufsize 134e25c779eSMatthew Dillon.It Cm port 135e25c779eSMatthew DillonThe iSCSI port used by the iSCSI protocol, defaults to 3260. 136e25c779eSMatthew Dillon.It Cm tags 137e25c779eSMatthew DillonSets the 138e25c779eSMatthew Dillon.Em tag opening 139e25c779eSMatthew Dillonto the value specified. 140e25c779eSMatthew Dillon.It Cm maxluns 141e25c779eSMatthew Dillonoverrides the compiled value of 142e25c779eSMatthew Dillon.Sy luns , 143e25c779eSMatthew Dillonsee 144e25c779eSMatthew Dillon.Xr iscsi_initiator 4 . 145e25c779eSMatthew DillonThis value can only be reduced. 146e25c779eSMatthew Dillon.It Cm sockbufsize 147e25c779eSMatthew Dillonsets the receiver and transmitter socket buffer size to 148e25c779eSMatthew Dillon.Em size , 149e25c779eSMatthew Dillonin kilobytes. 150e25c779eSMatthew DillonThe default is 128. 151e25c779eSMatthew Dillon.El 152e25c779eSMatthew Dillon.sp 153e25c779eSMatthew DillonIf 154e25c779eSMatthew Dillon.Em AuthMethod 155e25c779eSMatthew Dillonis set to 156e25c779eSMatthew Dillon.Cm CHAP , 157e25c779eSMatthew Dillonthen the following must also be set: 158e25c779eSMatthew Dillon.Bl -tag -width chapSecret 159e25c779eSMatthew Dillon.It Cm chapSecret 160e25c779eSMatthew Dillonthis 161e25c779eSMatthew Dillon.Em shared-secret . 162e25c779eSMatthew DillonCan be either an ASCII string (e.g. hello world), a hex string (e.g 163e25c779eSMatthew Dillon0xababcd0987654321...), or base64 string (eg 0b...) 164e25c779eSMatthew Dillon.It Cm chapIName 165e25c779eSMatthew Dillonthe chap-name, defaults to 166e25c779eSMatthew Dillon.Em hostname . 167e25c779eSMatthew Dillon.It Cm chapDigest 168e25c779eSMatthew Dilloncan be MD5 or SHA1. 169e25c779eSMatthew Dillon.It Cm tgtChapSecret/tgtChapName 170e25c779eSMatthew Dillonsame as the none 171e25c779eSMatthew Dillon.Em tgt 172e25c779eSMatthew Dilloncounterpart, but to authenticate the target. 173e25c779eSMatthew Dillon.El 174e25c779eSMatthew Dillon.Sh FILES 175e25c779eSMatthew Dillon.Pa /etc/iscsi.conf 176e25c779eSMatthew Dillon.Sh EXAMPLES 177e25c779eSMatthew Dillon.Bd -literal 178e25c779eSMatthew Dillon# 179e25c779eSMatthew Dillon# Globals 180e25c779eSMatthew Dillon# 181e25c779eSMatthew Dillonport = 3260 182e25c779eSMatthew Dillon# 183e25c779eSMatthew Dillonmyiscsi { # nickname 184e25c779eSMatthew Dillon targetaddress = iscsi1 185e25c779eSMatthew Dillon targetname = iqn.1900.com.com:sn.123456 186e25c779eSMatthew Dillon} 187e25c779eSMatthew Dillonchaptest { 188e25c779eSMatthew Dillon targetaddress= 10.0.0.1; 189e25c779eSMatthew Dillon targetname = iqn.1900.com.com:sn.123456 190e25c779eSMatthew Dillon initiatorname= iqn.2005-01.il.ac.huji.cs:nobody 191e25c779eSMatthew Dillon authmethod = CHAP; chapDigest = SHA1; 192e25c779eSMatthew Dillon chapsecret = 0x3713c3336d9a224c2791c873d3d2b174 193e25c779eSMatthew Dillon tags = 256 194e25c779eSMatthew Dillon} 195e25c779eSMatthew Dillon.Ed 196e25c779eSMatthew Dillon.Sh SEE ALSO 197e25c779eSMatthew Dillon.Xr iscsi_initiator 4 , 198e25c779eSMatthew Dillon.Xr iscontrol 8 199e25c779eSMatthew Dillon.Sh STANDARDS 200e25c779eSMatthew DillonISCSI RFC 3720 201e25c779eSMatthew Dillon.\"Sh HISTORY 202e25c779eSMatthew Dillon.\"Sh AUTHORS 203e25c779eSMatthew Dillon.Sh BUGS 204e25c779eSMatthew DillonSome options have not been implemented, either they were found 2051de3c21dSSascha Wildnerto be unnecessary, or not understood, this can change in the future. 206*1f214455SFranco Fichtner.Pp 207e25c779eSMatthew DillonThe tags opening value is difficult to calculate, use wisely. 208*1f214455SFranco Fichtner.Pp 209*1f214455SFranco FichtnerThe parsing is very primitive, so do not expect - at the moment - any 210*1f214455SFranco Fichtnererror messages. 211