1 # This is an example of an access control file to be used by ypserv.
3 # This file is parsed line by line. First match will terminate the check
7 #############################################################################
8 # This is the commands that will match a single host
10 # allow host <hostname|ip-address>
11 # deny host <hostname|ip-address>
13 # To process hostname gethostbyname is called. If the hostname has multiple
14 # ip-addresses all will be added (I hope). ip-address is processed by
19 #############################################################################
20 # This is the commands that will match a network
22 # allow net <netname|netnumber> [netmask <netname|netnumber>]
23 # deny net <netname|netnumber> [netmask <netname|netnumber>]
25 # To process netname getnetbyname is called, and inet_aton is used for
26 # netnumber. inet_aton both access numbers as 255.255.255.0 and 0xffffff00.
28 # If netmask isn't given the parser will assume netmask from the first bits
29 # of the network number. So if the network is subneted the you have to add
30 # the netmask. In my case I've got the network 139.58.253.0 at home so too
31 # allow any of my computers to talk with the server I need the following line
33 allow net mojathome netmask 255.255.255.0
35 #############################################################################
36 # At last we have a command that will match any caller:
42 # reject all connections