2 .\" Copyright (C) 2000, Sun Microsystems,
3 .\" Inc. All Rights Reserved
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH SECURENETS 4 "Apr 26, 1999"
9 securenets \- configuration file for NIS security
13 \fB/var/yp/securenets\fR
19 The \fB/var/yp/securenets\fR file defines the networks or hosts which are
20 allowed access to information by the Network Information Service ("\fBNIS\fR").
23 The format of the file is as follows:
28 Lines beginning with the ``#'' character are treated as comments.
34 Otherwise, each line contains two fields separated by white space. The first
35 field is a netmask, the second a network.
41 The netmask field may be either \fB255.255.255.255\fR (IPv4),
42 \fBffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\fR (IPv6) , or the string ``host''
43 indicating that the second field is a specific host to be allowed access.
47 Both \fBypserv\fR(1M) and \fBypxfrd\fR(1M) use the \fB/var/yp/securenets\fR
48 file. The file is read when the \fBypserv\fR(1M) and \fBypxfrd\fR(1M) daemons
49 begin. If \fB/var/yp/securenets\fR is present, \fBypserv\fR(1M) and
50 \fBypxfrd\fR(1M) respond only to \fBIP\fR addresses in the range given. In
51 order for a change in the \fB/var/yp/securenets\fR file to take effect, you
52 must kill and restart any active daemons using \fBypstop\fR(1M) and
56 An important thing to note for all the examples below is that the server must
57 be allowed to access itself. You accomplish this either by the server being
58 part of a subnet that is allowed to access the server, or by adding an
59 individual entry, as the following:
70 \fBExample 1 \fRAccess for Individual Entries
73 If individual machines are to be give access, the entry could be:
78 255.255.255.255 192.9.1.20
96 \fBExample 2 \fRAccess for a Class C Network
99 If access is to be given to an entire class C network, the entry could be:
104 255.255.255.0 192.9.1.0
110 \fBExample 3 \fRAccess for a Class B Network
113 The entry for access to a class B network could be:
124 \fBExample 4 \fRAccess for an Invidual IPv6 Address
127 Similarly, to allow access for an individual IPv6 address:
132 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fec0::111:abba:ace0:fba5e:1
144 host fec0::111:abba:ace0:fba5e:1
150 \fBExample 5 \fRAccess for all IPv6 Addresses Starting with fe80
153 To allow access for all IPv6 addresses starting with fe80:
167 \fB\fB/var/yp/securenets\fR\fR
170 Configuration file for \fBNIS\fR security.
176 \fBypserv\fR(1M), \fBypstart\fR(1M), \fBypstop\fR(1M), \fBypxfrd\fR(1M)
180 The Network Information Service (NIS) was formerly known as Sun Yellow Pages
181 (YP). The functionality of the two remains the same; only the name has
182 changed. The name Yellow Pages is a registered trademark in the United Kingdom
183 of British Telecommunications plc, and may not be used without permission.