summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctl.conf.5
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-10-24 12:30:43 +0000
committertrasz <trasz@FreeBSD.org>2014-10-24 12:30:43 +0000
commitcbbca2de4dfaf610c857bebc91cd6029026797ad (patch)
tree40fe86f73f128954d8bfb8116993c60c098dfd7f /usr.sbin/ctld/ctl.conf.5
parent904ee8f9378b694958e470ffc7d0ae7fc8ad8f95 (diff)
downloadFreeBSD-src-cbbca2de4dfaf610c857bebc91cd6029026797ad.zip
FreeBSD-src-cbbca2de4dfaf610c857bebc91cd6029026797ad.tar.gz
Improve ctld.conf example.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctl.conf.5')
-rw-r--r--usr.sbin/ctld/ctl.conf.527
1 files changed, 17 insertions, 10 deletions
diff --git a/usr.sbin/ctld/ctl.conf.5 b/usr.sbin/ctld/ctl.conf.5
index 4e5719f..c4ea928 100644
--- a/usr.sbin/ctld/ctl.conf.5
+++ b/usr.sbin/ctld/ctl.conf.5
@@ -295,18 +295,25 @@ configuration file.
.Bd -literal
pidfile /var/run/ctld.pid
-auth-group example2 {
+auth-group ag0 {
chap-mutual "user" "secret" "mutualuser" "mutualsecret"
chap-mutual "user2" "secret2" "mutualuser" "mutualsecret"
initiator-portal 192.168.1.1/16
}
-portal-group example2 {
+auth-group ag1 {
+ auth-type none
+ initiator-name "iqn.2012-06.com.example:initiatorhost1"
+ initiator-name "iqn.2012-06.com.example:initiatorhost2"
+ initiator-portal 192.168.1.1/24
+ initiator-portal [2001:db8::de:ef]
+}
+
+portal-group pg0 {
discovery-auth-group no-authentication
- listen 127.0.0.1
- listen 0.0.0.0:3261
- listen [::]:3261
- listen [fe80::be:ef]
+ listen 0.0.0.0:3260
+ listen [::]:3260
+ listen [fe80::be:ef]:3261
}
target iqn.2012-06.com.example:target0 {
@@ -319,16 +326,16 @@ target iqn.2012-06.com.example:target0 {
}
}
-target iqn.2012-06.com.example:target3 {
+target iqn.2012-06.com.example:target1 {
chap chapuser chapsecret
lun 0 {
- path /dev/zvol/tank/example_3
+ path /dev/zvol/tank/example_1
}
}
target iqn.2012-06.com.example:target2 {
- auth-group example2
- portal-group example2
+ auth-group ag0
+ portal-group pg0
lun 0 {
path /dev/zvol/tank/example2_0
}
OpenPOWER on IntegriCloud