xref: /illumos-gate/usr/src/man/man5/securenets.5 (revision 15f90b02bdacbf0ae47fa105944f15b6596f9748)
te
Copyright (C) 2000, Sun Microsystems,
Inc. All Rights Reserved
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.
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.
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]
SECURENETS 5 "May 16, 2020"
NAME
securenets - configuration file for NIS security
SYNOPSIS
/var/yp/securenets
DESCRIPTION
The /var/yp/securenets file defines the networks or hosts which are allowed access to information by the Network Information Service ("NIS").

The format of the file is as follows:

Lines beginning with the ``#'' character are treated as comments.

Otherwise, each line contains two fields separated by white space. The first field is a netmask, the second a network.

The netmask field may be either 255.255.255.255 (IPv4), ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff (IPv6) , or the string ``host'' indicating that the second field is a specific host to be allowed access.

Both ypserv(8) and ypxfrd(8) use the /var/yp/securenets file. The file is read when the ypserv(8) and ypxfrd(8) daemons begin. If /var/yp/securenets is present, ypserv(8) and ypxfrd(8) respond only to IP addresses in the range given. In order for a change in the /var/yp/securenets file to take effect, you must kill and restart any active daemons using ypstop(8) and ypstart(8).

An important thing to note for all the examples below is that the server must be allowed to access itself. You accomplish this either by the server being part of a subnet that is allowed to access the server, or by adding an individual entry, as the following:

hosts 127.0.0.1
EXAMPLES
Example 1 Access for Individual Entries

If individual machines are to be give access, the entry could be:

255.255.255.255 192.9.1.20

or

host 192.0.1.20

Example 2 Access for a Class C Network

If access is to be given to an entire class C network, the entry could be:

255.255.255.0 192.9.1.0

Example 3 Access for a Class B Network

The entry for access to a class B network could be:

255.255.0.0 9.9.0.0

Example 4 Access for an Individual IPv6 Address

Similarly, to allow access for an individual IPv6 address:

ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fec0::111:abba:ace0:fba5e:1

or

host fec0::111:abba:ace0:fba5e:1

Example 5 Access for all IPv6 Addresses Starting with fe80

To allow access for all IPv6 addresses starting with fe80:

ffff:: fe80::
FILES
/var/yp/securenets

Configuration file for NIS security.

SEE ALSO
ypserv (8), ypstart (8), ypstop (8), ypxfrd (8)
NOTES
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same; only the name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications plc, and may not be used without permission.