xref: /freebsd/usr.sbin/ctld/ctl.conf.5 (revision 1195fe34b0bde865fc38d55131bce43c0151c57c)
1009ea47eSEdward Tomasz Napierala.\" Copyright (c) 2012 The FreeBSD Foundation
2009ea47eSEdward Tomasz Napierala.\" All rights reserved.
3009ea47eSEdward Tomasz Napierala.\"
4009ea47eSEdward Tomasz Napierala.\" This software was developed by Edward Tomasz Napierala under sponsorship
5009ea47eSEdward Tomasz Napierala.\" from the FreeBSD Foundation.
6009ea47eSEdward Tomasz Napierala.\"
7009ea47eSEdward Tomasz Napierala.\" Redistribution and use in source and binary forms, with or without
8009ea47eSEdward Tomasz Napierala.\" modification, are permitted provided that the following conditions
9009ea47eSEdward Tomasz Napierala.\" are met:
10009ea47eSEdward Tomasz Napierala.\" 1. Redistributions of source code must retain the above copyright
11009ea47eSEdward Tomasz Napierala.\"    notice, this list of conditions and the following disclaimer.
12009ea47eSEdward Tomasz Napierala.\" 2. Redistributions in binary form must reproduce the above copyright
13009ea47eSEdward Tomasz Napierala.\"    notice, this list of conditions and the following disclaimer in the
14009ea47eSEdward Tomasz Napierala.\"    documentation and/or other materials provided with the distribution.
15009ea47eSEdward Tomasz Napierala.\"
16009ea47eSEdward Tomasz Napierala.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
17009ea47eSEdward Tomasz Napierala.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18009ea47eSEdward Tomasz Napierala.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19009ea47eSEdward Tomasz Napierala.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
20009ea47eSEdward Tomasz Napierala.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21009ea47eSEdward Tomasz Napierala.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22009ea47eSEdward Tomasz Napierala.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23009ea47eSEdward Tomasz Napierala.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24009ea47eSEdward Tomasz Napierala.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25009ea47eSEdward Tomasz Napierala.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26009ea47eSEdward Tomasz Napierala.\" SUCH DAMAGE.
27009ea47eSEdward Tomasz Napierala.\"
28009ea47eSEdward Tomasz Napierala.\" $FreeBSD$
29009ea47eSEdward Tomasz Napierala.\"
30*1195fe34SEdward Tomasz Napierala.Dd November 8, 2014
31009ea47eSEdward Tomasz Napierala.Dt CTL.CONF 5
32009ea47eSEdward Tomasz Napierala.Os
33009ea47eSEdward Tomasz Napierala.Sh NAME
34009ea47eSEdward Tomasz Napierala.Nm ctl.conf
35009ea47eSEdward Tomasz Napierala.Nd CAM Target Layer / iSCSI target daemon configuration file
36009ea47eSEdward Tomasz Napierala.Sh DESCRIPTION
37009ea47eSEdward Tomasz NapieralaThe
38009ea47eSEdward Tomasz Napierala.Nm
39009ea47eSEdward Tomasz Napieralaconfiguration file is used by the
40009ea47eSEdward Tomasz Napierala.Xr ctld 8
41009ea47eSEdward Tomasz Napieraladaemon.
42009ea47eSEdward Tomasz NapieralaLines starting with
43009ea47eSEdward Tomasz Napierala.Ql #
44c63d8c3bSEdward Tomasz Napieralaare interpreted as comments.
45009ea47eSEdward Tomasz NapieralaThe general syntax of the
46009ea47eSEdward Tomasz Napierala.Nm
47009ea47eSEdward Tomasz Napieralafile is:
48009ea47eSEdward Tomasz Napierala.Bd -literal -offset indent
49d1e933edSAllan Jude.No pidfile Ar path
50009ea47eSEdward Tomasz Napierala
51d1e933edSAllan Jude.No auth-group Ar name No {
52d1e933edSAllan Jude.Dl chap Ar user Ar secret
53d1e933edSAllan Jude.Dl ...
54009ea47eSEdward Tomasz Napierala}
55009ea47eSEdward Tomasz Napierala
56d1e933edSAllan Jude.No portal-group Ar name No {
57d1e933edSAllan Jude.Dl listen Ar address
583a6accd5SEdward Tomasz Napierala.\".Dl listen-iser Ar address
59d1e933edSAllan Jude.Dl discovery-auth-group Ar name
60d1e933edSAllan Jude.Dl ...
61009ea47eSEdward Tomasz Napierala}
62009ea47eSEdward Tomasz Napierala
63d1e933edSAllan Jude.No target Ar name {
64d1e933edSAllan Jude.Dl auth-group Ar name
65d1e933edSAllan Jude.Dl portal-group Ar name
66d1e933edSAllan Jude.Dl lun Ar number No {
67d1e933edSAllan Jude.Dl 	path Ar path
68d1e933edSAllan Jude.Dl }
69d1e933edSAllan Jude.Dl ...
70009ea47eSEdward Tomasz Napierala}
71009ea47eSEdward Tomasz Napierala.Ed
72d1e933edSAllan Jude.Ss Global Context
73009ea47eSEdward Tomasz Napierala.Bl -tag -width indent
74d1e933edSAllan Jude.It Ic auth-group Ar name
75d1e933edSAllan JudeCreate an
76d1e933edSAllan Jude.Sy auth-group
77d1e933edSAllan Judeconfiguration context,
78ce20734fSAllan Judedefining a new auth-group,
79009ea47eSEdward Tomasz Napieralawhich can then be assigned to any number of targets.
80d1e933edSAllan Jude.It Ic debug Ar level
81d1e933edSAllan JudeThe debug verbosity level.
82009ea47eSEdward Tomasz NapieralaThe default is 0.
83d1e933edSAllan Jude.It Ic maxproc Ar number
84d1e933edSAllan JudeThe limit for concurrently running child processes handling
85009ea47eSEdward Tomasz Napieralaincoming connections.
86009ea47eSEdward Tomasz NapieralaThe default is 30.
87d1e933edSAllan JudeA setting of 0 disables the limit.
88d1e933edSAllan Jude.It Ic pidfile Ar path
89d1e933edSAllan JudeThe path to the pidfile.
90009ea47eSEdward Tomasz NapieralaThe default is
91009ea47eSEdward Tomasz Napierala.Pa /var/run/ctld.pid .
92d1e933edSAllan Jude.It Ic portal-group Ar name
93d1e933edSAllan JudeCreate a
94d1e933edSAllan Jude.Sy portal-group
95d1e933edSAllan Judeconfiguration context,
964f66b233SEdward Tomasz Napieraladefining a new portal-group,
97009ea47eSEdward Tomasz Napieralawhich can then be assigned to any number of targets.
98d1e933edSAllan Jude.It Ic target Ar name
99d1e933edSAllan JudeCreate a
100d1e933edSAllan Jude.Sy target
101d1e933edSAllan Judeconfiguration context, which can contain one or more
102d1e933edSAllan Jude.Sy lun
103d1e933edSAllan Judecontexts.
104d1e933edSAllan Jude.It Ic timeout Ar seconds
105d1e933edSAllan JudeThe timeout for login sessions, after which the connection
106009ea47eSEdward Tomasz Napieralawill be forcibly terminated.
107009ea47eSEdward Tomasz NapieralaThe default is 60.
108d1e933edSAllan JudeA setting of 0 disables the timeout.
109829603e2SAlexander Motin.It Ic isns-server Ar address
110829603e2SAlexander MotinAn IPv4 or IPv6 address and optionally port of iSNS server to register on.
111829603e2SAlexander Motin.It Ic isns-period Ar seconds
112829603e2SAlexander MotiniSNS registration period.
113829603e2SAlexander MotinRegistered Network Entity not updated during this period will be unregistered.
114be6527d5SEdward Tomasz NapieralaThe default is 900.
115829603e2SAlexander Motin.It Ic isns-timeout Ar seconds
116829603e2SAlexander MotinTimeout for iSNS requests.
117be6527d5SEdward Tomasz NapieralaThe default is 5.
118009ea47eSEdward Tomasz Napierala.El
119d1e933edSAllan Jude.Ss auth-group Context
120009ea47eSEdward Tomasz Napierala.Bl -tag -width indent
121d1e933edSAllan Jude.It Ic auth-type Ar type
122d1e933edSAllan JudeSets the authentication type.
123d1e933edSAllan JudeType can be either
124d1e933edSAllan Jude.Qq Ar none ,
125d1e933edSAllan Jude.Qq Ar deny ,
126d1e933edSAllan Jude.Qq Ar chap ,
127d1e933edSAllan Judeor
128d1e933edSAllan Jude.Qq Ar chap-mutual .
129a8a5af86SWarren BlockIn most cases it is not necessary to set the type using this clause;
130d1e933edSAllan Judeit is usually used to disable authentication for a given
131d1e933edSAllan Jude.Sy auth-group .
132d1e933edSAllan Jude.It Ic chap Ar user Ar secret
133d1e933edSAllan JudeA set of CHAP authentication credentials.
134d1e933edSAllan JudeNote that for any
135d1e933edSAllan Jude.Sy auth-group ,
136d1e933edSAllan Judethe configuration may only contain either
137d1e933edSAllan Jude.Sy chap
138d1e933edSAllan Judeor
139d1e933edSAllan Jude.Sy chap-mutual
140d1e933edSAllan Judeentries; it is an error to mix them.
141d1e933edSAllan Jude.It Ic chap-mutual Ar user Ar secret Ar mutualuser Ar mutualsecret
142d1e933edSAllan JudeA set of mutual CHAP authentication credentials.
143d1e933edSAllan JudeNote that for any
144d1e933edSAllan Jude.Sy auth-group ,
145d1e933edSAllan Judethe configuration may only contain either
146d1e933edSAllan Jude.Sy chap
147d1e933edSAllan Judeor
148d1e933edSAllan Jude.Sy chap-mutual
149d1e933edSAllan Judeentries; it is an error to mix them.
150d1e933edSAllan Jude.It Ic initiator-name Ar initiator-name
151d1e933edSAllan JudeAn iSCSI initiator name.
152d1e933edSAllan JudeOnly initiators with a name matching one of the defined
153d1e933edSAllan Judenames will be allowed to connect.
1548cb2e958SEdward Tomasz NapieralaIf not defined, there will be no restrictions based on initiator
1558cb2e958SEdward Tomasz Napieralaname.
156d1e933edSAllan Jude.It Ic initiator-portal Ar address Ns Op / Ns Ar prefixlen
157d1e933edSAllan JudeAn iSCSI initiator portal: an IPv4 or IPv6 address, optionally
158d1e933edSAllan Judefollowed by a literal slash and a prefix length.
159d1e933edSAllan JudeOnly initiators with an address matching one of the defined
160d1e933edSAllan Judeaddresses will be allowed to connect.
1618cb2e958SEdward Tomasz NapieralaIf not defined, there will be no restrictions based on initiator
1628cb2e958SEdward Tomasz Napieralaaddress.
163009ea47eSEdward Tomasz Napierala.El
164d1e933edSAllan Jude.Ss portal-group Context
165009ea47eSEdward Tomasz Napierala.Bl -tag -width indent
166d1e933edSAllan Jude.It Ic discovery-auth-group Ar name
167d1e933edSAllan JudeAssign a previously defined authentication group to the portal group,
168009ea47eSEdward Tomasz Napieralato be used for target discovery.
1694af184b9SEdward Tomasz NapieralaBy default, portal groups are assigned predefined
170d1e933edSAllan Jude.Sy auth-group
171d1e933edSAllan Jude.Qq Ar default ,
172d1e933edSAllan Judewhich denies discovery.
173d1e933edSAllan JudeAnother predefined
174d1e933edSAllan Jude.Sy auth-group ,
175d1e933edSAllan Jude.Qq Ar no-authentication ,
176d1e933edSAllan Judemay be used
177ccb1f04dSEdward Tomasz Napieralato permit discovery without authentication.
17805374883SEdward Tomasz Napierala.It Ic discovery-filter Ar filter
17905374883SEdward Tomasz NapieralaDetermines which targets are returned during discovery.
18005374883SEdward Tomasz NapieralaFilter can be either
18105374883SEdward Tomasz Napierala.Qq Ar none ,
18205374883SEdward Tomasz Napierala.Qq Ar portal ,
18305374883SEdward Tomasz Napierala.Qq Ar portal-name ,
18405374883SEdward Tomasz Napieralaor
18505374883SEdward Tomasz Napierala.Qq Ar portal-name-auth .
18605374883SEdward Tomasz NapieralaWhen set to
18705374883SEdward Tomasz Napierala.Qq Ar none ,
18805374883SEdward Tomasz Napieraladiscovery will return all targets assigned to that portal group.
18905374883SEdward Tomasz NapieralaWhen set to
19005374883SEdward Tomasz Napierala.Qq Ar portal ,
19105374883SEdward Tomasz Napieraladiscovery will not return targets that cannot be accessed by the
19205374883SEdward Tomasz Napieralainitiator because of their
19305374883SEdward Tomasz Napierala.Sy initiator-portal .
19405374883SEdward Tomasz NapieralaWhen set to
19505374883SEdward Tomasz Napierala.Qq Ar portal-name ,
19605374883SEdward Tomasz Napieralathe check will include both
19705374883SEdward Tomasz Napierala.Sy initiator-portal
19805374883SEdward Tomasz Napieralaand
19905374883SEdward Tomasz Napierala.Sy initiator-name .
20005374883SEdward Tomasz NapieralaWhen set to
20105374883SEdward Tomasz Napierala.Qq Ar portal-name-auth ,
20205374883SEdward Tomasz Napieralathe check will include
20305374883SEdward Tomasz Napierala.Sy initiator-portal ,
20405374883SEdward Tomasz Napierala.Sy initiator-name ,
205*1195fe34SEdward Tomasz Napieralaand authentication credentials.
206*1195fe34SEdward Tomasz NapieralaThe target is returned if it does not require CHAP authentication,
207*1195fe34SEdward Tomasz Napieralaor if the CHAP user and secret used during discovery match those
208*1195fe34SEdward Tomasz Napieralaused by the target.
20905374883SEdward Tomasz NapieralaNote that when using
21005374883SEdward Tomasz Napierala.Qq Ar portal-name-auth ,
21105374883SEdward Tomasz Napieralatargets that require CHAP authentication will only be returned if
21205374883SEdward Tomasz Napierala.Sy discovery-auth-group
21305374883SEdward Tomasz Napieralarequires CHAP.
21405374883SEdward Tomasz NapieralaThe default is
21505374883SEdward Tomasz Napierala.Qq Ar none .
216d1e933edSAllan Jude.It Ic listen Ar address
217d1e933edSAllan JudeAn IPv4 or IPv6 address and port to listen on for incoming connections.
2183a6accd5SEdward Tomasz Napierala.\".It Ic listen-iser Ar address
2193a6accd5SEdward Tomasz Napierala.\"An IPv4 or IPv6 address and port to listen on for incoming connections
2203a6accd5SEdward Tomasz Napierala.\"using iSER (iSCSI over RDMA) protocol.
221009ea47eSEdward Tomasz Napierala.El
222d1e933edSAllan Jude.Ss target Context
223009ea47eSEdward Tomasz Napierala.Bl -tag -width indent
224d1e933edSAllan Jude.It Ic alias Ar text
225d1e933edSAllan JudeAssign a human-readable description to the target.
226009ea47eSEdward Tomasz NapieralaThere is no default.
227d1e933edSAllan Jude.It Ic auth-group Ar name
228d1e933edSAllan JudeAssign a previously defined authentication group to the target.
229affb88f5SEdward Tomasz NapieralaBy default, targets that do not specify their own auth settings,
230d1e933edSAllan Judeusing clauses such as
231d1e933edSAllan Jude.Sy chap
232d1e933edSAllan Judeor
233d1e933edSAllan Jude.Sy initiator-name ,
234d1e933edSAllan Judeare assigned
235d1e933edSAllan Judepredefined
236d1e933edSAllan Jude.Sy auth-group
237d1e933edSAllan Jude.Qq Ar default ,
238d1e933edSAllan Judewhich denies all access.
239d1e933edSAllan JudeAnother predefined
240d1e933edSAllan Jude.Sy auth-group ,
241d1e933edSAllan Jude.Qq Ar no-authentication ,
242d1e933edSAllan Judemay be used to permit access
243009ea47eSEdward Tomasz Napieralawithout authentication.
244d1e933edSAllan JudeNote that targets must only use one of
245d1e933edSAllan Jude.Sy auth-group , chap , No or Sy chap-mutual ;
246d1e933edSAllan Judeit is a configuration error to mix multiple types in one target.
247d1e933edSAllan Jude.It Ic auth-type Ar type
248d1e933edSAllan JudeSets the authentication type.
249d1e933edSAllan JudeType can be either
250d1e933edSAllan Jude.Qq Ar none ,
251d1e933edSAllan Jude.Qq Ar deny ,
252d1e933edSAllan Jude.Qq Ar chap ,
253d1e933edSAllan Judeor
254d1e933edSAllan Jude.Qq Ar chap-mutual .
255a8a5af86SWarren BlockIn most cases it is not necessary to set the type using this clause;
256d1e933edSAllan Judeit is usually used to disable authentication for a given
257d1e933edSAllan Jude.Sy target .
258d1e933edSAllan JudeThis clause is mutually exclusive with
259d1e933edSAllan Jude.Sy auth-group ;
260d1e933edSAllan Judeone cannot use
261df9900fbSEdward Tomasz Napieralaboth in a single target.
262d1e933edSAllan Jude.It Ic chap Ar user Ar secret
263d1e933edSAllan JudeA set of CHAP authentication credentials.
264d1e933edSAllan JudeNote that targets must only use one of
265d1e933edSAllan Jude.Sy auth-group , chap , No or Sy chap-mutual ;
266d1e933edSAllan Judeit is a configuration error to mix multiple types in one target.
267d1e933edSAllan Jude.It Ic chap-mutual Ar user Ar secret Ar mutualuser Ar mutualsecret
268d1e933edSAllan JudeA set of mutual CHAP authentication credentials.
269d1e933edSAllan JudeNote that targets must only use one of
270d1e933edSAllan Jude.Sy auth-group , chap , No or Sy chap-mutual ;
271d1e933edSAllan Judeit is a configuration error to mix multiple types in one target.
272d1e933edSAllan Jude.It Ic initiator-name Ar initiator-name
273d1e933edSAllan JudeAn iSCSI initiator name.
274d1e933edSAllan JudeOnly initiators with a name matching one of the defined
275d1e933edSAllan Judenames will be allowed to connect.
2768cb2e958SEdward Tomasz NapieralaIf not defined, there will be no restrictions based on initiator
2778cb2e958SEdward Tomasz Napieralaname.
278d1e933edSAllan JudeThis clause is mutually exclusive with
279d1e933edSAllan Jude.Sy auth-group ;
280d1e933edSAllan Judeone cannot use
2818cb2e958SEdward Tomasz Napieralaboth in a single target.
282d1e933edSAllan Jude.It Ic initiator-portal Ar address Ns Op / Ns Ar prefixlen
283d1e933edSAllan JudeAn iSCSI initiator portal: an IPv4 or IPv6 address, optionally
284d1e933edSAllan Judefollowed by a literal slash and a prefix length.
285d1e933edSAllan JudeOnly initiators with an address matching one of the defined
286d1e933edSAllan Judeaddresses will be allowed to connect.
2878cb2e958SEdward Tomasz NapieralaIf not defined, there will be no restrictions based on initiator
2888cb2e958SEdward Tomasz Napieralaaddress.
289d1e933edSAllan JudeThis clause is mutually exclusive with
290d1e933edSAllan Jude.Sy auth-group ;
291d1e933edSAllan Judeone cannot use
2928cb2e958SEdward Tomasz Napieralaboth in a single target.
293d1e933edSAllan Jude.It Ic portal-group Ar name
294d1e933edSAllan JudeAssign a previously defined portal group to the target.
295d1e933edSAllan JudeThe default portal group is
296d1e933edSAllan Jude.Qq Ar default ,
297d1e933edSAllan Judewhich makes the target available
298009ea47eSEdward Tomasz Napieralaon TCP port 3260 on all configured IPv4 and IPv6 addresses.
299d1e933edSAllan Jude.It Ic lun Ar number
300d1e933edSAllan JudeCreate a
301d1e933edSAllan Jude.Sy lun
302d1e933edSAllan Judeconfiguration context, defining a LUN exported by the parent target.
303009ea47eSEdward Tomasz Napierala.El
304d1e933edSAllan Jude.Ss lun Context
305009ea47eSEdward Tomasz Napierala.Bl -tag -width indent
306d1e933edSAllan Jude.It Ic backend Ar block No | Ar ramdisk
307d1e933edSAllan JudeThe CTL backend to use for a given LUN.
308009ea47eSEdward Tomasz NapieralaValid choices are
309d1e933edSAllan Jude.Qq Ar block
310009ea47eSEdward Tomasz Napieralaand
311d1e933edSAllan Jude.Qq Ar ramdisk ;
312009ea47eSEdward Tomasz Napieralablock is used for LUNs backed
313c63d8c3bSEdward Tomasz Napieralaby files or disk device nodes; ramdisk is a bitsink device, used mostly for
314009ea47eSEdward Tomasz Napieralatesting.
315009ea47eSEdward Tomasz NapieralaThe default backend is block.
316d1e933edSAllan Jude.It Ic blocksize Ar size
317d1e933edSAllan JudeThe blocksize visible to the initiator.
318009ea47eSEdward Tomasz NapieralaThe default blocksize is 512.
319d1e933edSAllan Jude.It Ic device-id Ar string
320d1e933edSAllan JudeThe SCSI Device Identification string presented to the initiator.
321d1e933edSAllan Jude.It Ic option Ar name Ar value
322d1e933edSAllan JudeThe CTL-specific options passed to the kernel.
323d1e933edSAllan JudeAll CTL-specific options are documented in the
324d1e933edSAllan Jude.Sx OPTIONS
325d1e933edSAllan Judesection of
3264f66b233SEdward Tomasz Napierala.Xr ctladm 8 .
327d1e933edSAllan Jude.It Ic path Ar path
328d1e933edSAllan JudeThe path to the file or device node used to back the LUN.
329d1e933edSAllan Jude.It Ic serial Ar string
330d1e933edSAllan JudeThe SCSI serial number presented to the initiator.
331d1e933edSAllan Jude.It Ic size Ar size
332d1e933edSAllan JudeThe LUN size, in bytes.
333009ea47eSEdward Tomasz Napierala.El
334009ea47eSEdward Tomasz Napierala.Sh FILES
335009ea47eSEdward Tomasz Napierala.Bl -tag -width ".Pa /etc/ctl.conf" -compact
336009ea47eSEdward Tomasz Napierala.It Pa /etc/ctl.conf
337009ea47eSEdward Tomasz NapieralaThe default location of the
338009ea47eSEdward Tomasz Napierala.Xr ctld 8
339009ea47eSEdward Tomasz Napieralaconfiguration file.
340009ea47eSEdward Tomasz Napierala.El
341009ea47eSEdward Tomasz Napierala.Sh EXAMPLES
342009ea47eSEdward Tomasz Napierala.Bd -literal
343009ea47eSEdward Tomasz Napieralapidfile	/var/run/ctld.pid
344009ea47eSEdward Tomasz Napierala
3453bea5b97SEdward Tomasz Napieralaauth-group ag0 {
346009ea47eSEdward Tomasz Napierala	chap-mutual "user" "secret" "mutualuser" "mutualsecret"
347009ea47eSEdward Tomasz Napierala	chap-mutual "user2" "secret2" "mutualuser" "mutualsecret"
348a5f9f526SEdward Tomasz Napierala	initiator-portal 192.168.1.1/16
349009ea47eSEdward Tomasz Napierala}
350009ea47eSEdward Tomasz Napierala
3513bea5b97SEdward Tomasz Napieralaauth-group ag1 {
3523bea5b97SEdward Tomasz Napierala	auth-type none
3533bea5b97SEdward Tomasz Napierala	initiator-name "iqn.2012-06.com.example:initiatorhost1"
3543bea5b97SEdward Tomasz Napierala	initiator-name "iqn.2012-06.com.example:initiatorhost2"
3553bea5b97SEdward Tomasz Napierala	initiator-portal 192.168.1.1/24
3563bea5b97SEdward Tomasz Napierala	initiator-portal [2001:db8::de:ef]
3573bea5b97SEdward Tomasz Napierala}
3583bea5b97SEdward Tomasz Napierala
3593bea5b97SEdward Tomasz Napieralaportal-group pg0 {
360009ea47eSEdward Tomasz Napierala	discovery-auth-group no-authentication
3613bea5b97SEdward Tomasz Napierala	listen 0.0.0.0:3260
3623bea5b97SEdward Tomasz Napierala	listen [::]:3260
3633bea5b97SEdward Tomasz Napierala	listen [fe80::be:ef]:3261
364009ea47eSEdward Tomasz Napierala}
365009ea47eSEdward Tomasz Napierala
366009ea47eSEdward Tomasz Napieralatarget iqn.2012-06.com.example:target0 {
367c63d8c3bSEdward Tomasz Napierala	alias "Example target"
368009ea47eSEdward Tomasz Napierala	auth-group no-authentication
369009ea47eSEdward Tomasz Napierala	lun 0 {
370a178d09eSEdward Tomasz Napierala		path /dev/zvol/tank/example_0
371009ea47eSEdward Tomasz Napierala		blocksize 4096
372009ea47eSEdward Tomasz Napierala		size 4G
373009ea47eSEdward Tomasz Napierala	}
374009ea47eSEdward Tomasz Napierala}
375009ea47eSEdward Tomasz Napierala
3763bea5b97SEdward Tomasz Napieralatarget iqn.2012-06.com.example:target1 {
377009ea47eSEdward Tomasz Napierala	chap chapuser chapsecret
378009ea47eSEdward Tomasz Napierala	lun 0 {
3793bea5b97SEdward Tomasz Napierala		path /dev/zvol/tank/example_1
380009ea47eSEdward Tomasz Napierala	}
381009ea47eSEdward Tomasz Napierala}
382009ea47eSEdward Tomasz Napierala
383009ea47eSEdward Tomasz Napieralatarget iqn.2012-06.com.example:target2 {
3843bea5b97SEdward Tomasz Napierala	auth-group ag0
3853bea5b97SEdward Tomasz Napierala	portal-group pg0
386009ea47eSEdward Tomasz Napierala	lun 0 {
387a178d09eSEdward Tomasz Napierala		path /dev/zvol/tank/example2_0
388009ea47eSEdward Tomasz Napierala	}
389009ea47eSEdward Tomasz Napierala	lun 1 {
390a178d09eSEdward Tomasz Napierala		path /dev/zvol/tank/example2_1
391009ea47eSEdward Tomasz Napierala		option foo bar
392009ea47eSEdward Tomasz Napierala	}
393009ea47eSEdward Tomasz Napierala}
394009ea47eSEdward Tomasz Napierala.Ed
395009ea47eSEdward Tomasz Napierala.Sh SEE ALSO
396009ea47eSEdward Tomasz Napierala.Xr ctl 4 ,
397009ea47eSEdward Tomasz Napierala.Xr ctladm 8 ,
398009ea47eSEdward Tomasz Napierala.Xr ctld 8
399009ea47eSEdward Tomasz Napierala.Sh AUTHORS
400009ea47eSEdward Tomasz NapieralaThe
401009ea47eSEdward Tomasz Napierala.Nm
402009ea47eSEdward Tomasz Napieralaconfiguration file functionality for
403009ea47eSEdward Tomasz Napierala.Xr ctld 8
404009ea47eSEdward Tomasz Napieralawas developed by
40501c2b8acSBaptiste Daroussin.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org
406009ea47eSEdward Tomasz Napieralaunder sponsorship from the FreeBSD Foundation.
407