From owner-freebsd-questions@FreeBSD.ORG  Sun Apr 20 15:05:13 2014
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@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 65B503BC
 for <freebsd-questions@freebsd.org>; Sun, 20 Apr 2014 15:05:13 +0000 (UTC)
Received: from mail.otcnet.ru (mail.otcnet.ru [194.190.78.3])
 by mx1.freebsd.org (Postfix) with ESMTP id 21D2E16BF
 for <freebsd-questions@freebsd.org>; Sun, 20 Apr 2014 15:05:12 +0000 (UTC)
Received: from [192.168.0.151] (unknown [195.91.216.248])
 by mail.otcnet.ru (Postfix) with ESMTPSA id 66ADA36
 for <freebsd-questions@freebsd.org>; Sun, 20 Apr 2014 18:55:57 +0400 (MSK)
From: Victor Gamov <vit@euro-comm.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: nfs4 esports
Message-Id: <6675F6F5-C7EF-424B-ABCB-3C89FEB37646@euro-comm.net>
Date: Sun, 20 Apr 2014 18:55:04 +0400
To: freebsd-questions@freebsd.org
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
X-Mailer: Apple Mail (2.1874)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 20 Apr 2014 15:05:13 -0000

Hi All

I have one FreeBSD NFS-4 server and some FreeBSD NFS- 4 clients.  And I =
want to export different parts of server filesystems to clients.

I try the following at /etc/exports:

V4:  /  -network=3D192.168.100.0/24
# I assume al clients from this network will have access to server

/usr/ports -maproot=3Droot -network=3D192.168.100.0/24
# I want to allow mount servers /usr/ports by all clients

/pub/files/dir23 -maproot=3Droot -network=3D192.168.100.23/32
# access /pub/files/dir23 from 192.168.100.23/32 only

/pub/files/dir24 -maproot=3Droot -network=3D192.168.100.24/32
# access /pub/files/dir24 from 192.168.100.24/32 only


But now 192.168.100.24 allow to mount /pub/files/dir23 too

Is it possible via NFS-4?  If so where I have mistake (at syntax or at =
my logic)?


Thanks for advice!

--
CU,
Victor Gamov
vit@euro-comm.net