|
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(1M)
and ypxfrd(1M)
use the /var/yp/securenets file. The file is read
when the ypserv(1M)
and ypxfrd(1M)
daemons begin. If /var/yp/securenets is present, ypserv(1M) and ypxfrd(1M) 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(1M) and ypstart(1M).
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:
|