Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2007 14:33:11 +0100 (CET)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-questions@FreeBSD.ORG, bkoenig@alpha-tierchen.de
Subject:   Re: nfs, mountd, /etc/exports: grant access to several networks
Message-ID:  <200702191333.l1JDXBtv055358@lurza.secnetix.de>
In-Reply-To: <54713.192.168.1.5.1171706899.squirrel@www.alpha-tierchen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
bkoenig@alpha-tierchen.de wrote:
 > is it possible to allow hosts of different networks to mount an NFS export?

Sure.

 > I tried already the following statements in /etc/exports without success:
 > 
 > -network <net1/mask> <net2/mask>
 > -network <net1/mask> -network <net2/mask>

Just list them on separate lines, e.g.

/foo/bar -network <net1> -mask <mask1>
/foo/bar -network <net2> -mask <mask2>

Also see the examples in the exports(5) manual page.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"... there are two ways of constructing a software design:  One way
is to make it so simple that there are _obviously_ no deficiencies and
the other way is to make it so complicated that there are no _obvious_
deficiencies."        -- C.A.R. Hoare, ACM Turing Award Lecture, 1980



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702191333.l1JDXBtv055358>