From owner-svn-src-head@FreeBSD.ORG Fri Sep 5 14:58:25 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88B57D8A; Fri, 5 Sep 2014 14:58:25 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59EAB1F57; Fri, 5 Sep 2014 14:58:25 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s85EwPwZ056063; Fri, 5 Sep 2014 14:58:25 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s85EwPgX056062; Fri, 5 Sep 2014 14:58:25 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201409051458.s85EwPgX056062@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Fri, 5 Sep 2014 14:58:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271170 - head/usr.sbin/ctld X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2014 14:58:25 -0000 Author: trasz Date: Fri Sep 5 14:58:24 2014 New Revision: 271170 URL: http://svnweb.freebsd.org/changeset/base/271170 Log: Document initiator-portal netmask support. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/ctld/ctl.conf.5 Modified: head/usr.sbin/ctld/ctl.conf.5 ============================================================================== --- head/usr.sbin/ctld/ctl.conf.5 Fri Sep 5 14:48:06 2014 (r271169) +++ head/usr.sbin/ctld/ctl.conf.5 Fri Sep 5 14:58:24 2014 (r271170) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 28, 2014 +.Dd September 5, 2014 .Dt CTL.CONF 5 .Os .Sh NAME @@ -118,8 +118,9 @@ If not defined, there will be no restric name. Otherwise, only initiators with names matching one of defined ones will be allowed to connect. -.It Ic initiator-portal Ao Ar address Ac -Specifies iSCSI initiator portal - IPv4 or IPv6 address or network. +.It Ic initiator-portal Ao Ar address Ac Ao Ar / prefixlen Ac +Specifies the iSCSI initiator portal: an IPv4 or IPv6 address, optionally +followed by slash and prefix length. If not defined, there will be no restrictions based on initiator address. Otherwise, only initiators with addresses matching one of defined @@ -178,8 +179,9 @@ Otherwise, only initiators with names ma ones will be allowed to connect. This clause is mutually exclusive with auth-group; one cannot use both in a single target. -.It Ic initiator-portal Ao Ar address Ac -Specifies iSCSI initiator portal - IPv4 or IPv6 address. +.It Ic initiator-portal Ao Ar address Ac Ao Ar / prefixlen Ac +Specifies the iSCSI initiator portal: an IPv4 or IPv6 address, optionally +followed by slash and prefix length. If not defined, there will be no restrictions based on initiator address. Otherwise, only initiators with addresses matching one of defined @@ -234,6 +236,7 @@ pidfile /var/run/ctld.pid auth-group example2 { chap-mutual "user" "secret" "mutualuser" "mutualsecret" chap-mutual "user2" "secret2" "mutualuser" "mutualsecret" + initiator-portal 192.168.1.1/16 } portal-group example2 {