Commit | Line | Data |
---|---|---|
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 | |
21 | nfsd \- 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 | 32 | runs on a server machine to service |
7dd5dab1 | 33 | .SM NFS |
1b3a818d KM |
34 | requests from client machines. |
35 | At least one | |
36 | .I nfsd | |
37 | must be running for a machine to operate as a server. | |
38 | The option | |
39 | .I numdaemons | |
40 | defines how many | |
41 | .I nfsd | |
42 | daemons to start; | |
43 | if unspecified, only a single daemon will be started. | |
44 | A server should typically run enough daemons to handle | |
27dc6f73 KM |
45 | the maximum level of concurrency from its clients, |
46 | typically four to six. | |
1b3a818d KM |
47 | .PP |
48 | The options | |
49 | .I filtermask | |
50 | and | |
51 | .I filtervalue | |
52 | may be specified to restrict the clients serviced by filtering incoming | |
53 | source addresses. | |
54 | They are expressed in Internet standard "." notation. | |
55 | The algorithm is simply: | |
56 | .sp | |
57 | .RS | |
58 | if ((filtermask & source_addr) == filtervalue) | |
59 | .RS | |
60 | .I accept request | |
61 | .RE | |
62 | .RE | |
63 | .sp | |
64 | The default values for filtermask and filtervalue are 0, which accepts | |
65 | requests from all client source_addr's. | |
66 | Alternately, the most secure values you could use for | |
67 | .I filtermask | |
68 | and | |
69 | .I filtervalue | |
70 | would be: | |
71 | .sp | |
72 | .RS | |
73 | filtervalue = (inet_addr1 & inet_addr2 & ... & inet_addrN) | |
74 | .br | |
75 | filtermask = ~(inet_addr1 | inet_addr2 | ... | inet_addrN) | filtervalue | |
76 | .RE | |
77 | .sp | |
78 | although your subnet or net number and mask will be just as good | |
79 | in most cases. | |
80 | .PP | |
7dd5dab1 KM |
81 | .I Nfsd |
82 | listens for service requests at the port indicated in the | |
83 | .SM NFS | |
84 | server 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) |