new convention for who frees ancillary data
[unix-history] / usr / src / sbin / nfsd / nfsd.8
CommitLineData
7dd5dab1
KM
1.\" Copyright (c) 1989 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
1b3a818d 16.\" @(#)nfsd.8 5.4 (Berkeley) %G%
7dd5dab1
KM
17.\"
18.TH NFSD 8 ""
19.UC 7
20.SH NAME
21nfsd \- remote NFS server
22.SH SYNOPSIS
23.B /sbin/nfsd
1b3a818d
KM
24[
25.B numdaemons
26[
27.B filtermask
28.B filtervalue
29] ]
7dd5dab1
KM
30.SH DESCRIPTION
31.I Nfsd
1b3a818d 32runs on a server machine to service
7dd5dab1 33.SM NFS
1b3a818d
KM
34requests from client machines.
35At least one
36.I nfsd
37must be running for a machine to operate as a server.
38The option
39.I numdaemons
40defines how many
41.I nfsd
42daemons to start;
43if unspecified, only a single daemon will be started.
44A server should typically run enough daemons to handle
27dc6f73
KM
45the maximum level of concurrency from its clients,
46typically four to six.
1b3a818d
KM
47.PP
48The options
49.I filtermask
50and
51.I filtervalue
52may be specified to restrict the clients serviced by filtering incoming
53source addresses.
54They are expressed in Internet standard "." notation.
55The algorithm is simply:
56.sp
57.RS
58if ((filtermask & source_addr) == filtervalue)
59.RS
60.I accept request
61.RE
62.RE
63.sp
64The default values for filtermask and filtervalue are 0, which accepts
65requests from all client source_addr's.
66Alternately, the most secure values you could use for
67.I filtermask
68and
69.I filtervalue
70would be:
71.sp
72.RS
73filtervalue = (inet_addr1 & inet_addr2 & ... & inet_addrN)
74.br
75filtermask = ~(inet_addr1 | inet_addr2 | ... | inet_addrN) | filtervalue
76.RE
77.sp
78although your subnet or net number and mask will be just as good
79in most cases.
80.PP
7dd5dab1
KM
81.I Nfsd
82listens for service requests at the port indicated in the
83.SM NFS
84server specification; see
1b3a818d 85``Network File System Protocol Specification, RFC1094''
7dd5dab1
KM
86.SH SEE ALSO
87.IR nfsstat (1),
8d25ae69 88.IR nfssvc (2),
7dd5dab1
KM
89.IR mountd (8),
90.IR portmap (8)