Commit | Line | Data |
---|---|---|
7dd5dab1 KM |
1 | .\" Copyright (c) 1989 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
7167345e | 4 | .\" %sccs.include.redist.man% |
7dd5dab1 | 5 | .\" |
7167345e | 6 | .\" @(#)nfsd.8 5.6 (Berkeley) %G% |
7dd5dab1 KM |
7 | .\" |
8 | .TH NFSD 8 "" | |
9 | .UC 7 | |
10 | .SH NAME | |
11 | nfsd \- remote NFS server | |
12 | .SH SYNOPSIS | |
7167345e | 13 | .B nfsd |
1b3a818d | 14 | [ |
7a094649 KM |
15 | .B \-u |
16 | .I msk,mtch,numprocs | |
17 | ] | |
1b3a818d | 18 | [ |
7a094649 KM |
19 | .B \-t |
20 | .I msk,mtch,hostadr1,hostadr2,... | |
21 | ] | |
22 | [ | |
23 | .I numprocs | |
24 | ] | |
7dd5dab1 KM |
25 | .SH DESCRIPTION |
26 | .I Nfsd | |
1b3a818d | 27 | runs on a server machine to service |
7dd5dab1 | 28 | .SM NFS |
1b3a818d KM |
29 | requests from client machines. |
30 | At least one | |
31 | .I nfsd | |
32 | must be running for a machine to operate as a server. | |
1b3a818d | 33 | The options |
7a094649 | 34 | .B \-u |
1b3a818d | 35 | and |
7a094649 KM |
36 | .B \-t |
37 | are used to indicate which transport protocols are to be served. | |
38 | .TP | |
39 | .B \-u | |
40 | Serve UDP NFS clients. | |
41 | .TP | |
42 | .B \-t | |
43 | Serve TCP NFS clients. | |
44 | .TP | |
45 | .I "msk, mtch" | |
46 | These arguments permit restriction of NFS services | |
47 | to a subset of the host addresses. The | |
48 | .I msk | |
1b3a818d | 49 | and |
7a094649 KM |
50 | .I mtch |
51 | are applied to the client host address as follows: | |
1b3a818d | 52 | .sp |
7a094649 KM |
53 | if (( |
54 | .I host_address | |
55 | & | |
56 | .I msk | |
57 | ) == | |
58 | .I mtch | |
59 | ) | |
60 | .br | |
61 | - service the client request | |
1b3a818d | 62 | .br |
7a094649 KM |
63 | else |
64 | .br | |
65 | - drop the request | |
66 | .TP | |
67 | .I hostadr1,... | |
68 | You may also specify zero or more specific host addresses to be accepted | |
69 | as well as ones that pass the | |
70 | .I msk, mtch | |
71 | test above. | |
72 | This may only be done for transport protocols that are connection based, such | |
73 | as TCP. | |
74 | For the internet domain, | |
75 | .I msk, mtch | |
76 | and | |
77 | .I hostadrs' | |
78 | are specified in internet | |
79 | .I dot | |
80 | notation. | |
81 | .TP | |
82 | .I numprocs | |
83 | Specifies how many servers to fork off. This may only be specified for | |
84 | non-connection based protocols such as UDP. | |
85 | .LP | |
86 | If neither | |
87 | .I \-u | |
88 | or | |
89 | .I \-t | |
90 | are specified, | |
91 | .I numprocs | |
92 | servers for UDP accepting requests from all clients are started. | |
93 | If | |
94 | .I numprocs | |
95 | is not specified, it defaults to 1. | |
96 | .LP | |
97 | For example: | |
1b3a818d | 98 | .sp |
7167345e | 99 | nfsd \-u 255.255.255.0,131.104.48.0,4 \-t 255.255.0.0,131.104.0.0,131.102.31.2 |
7a094649 KM |
100 | .IP "- " |
101 | Serves UDP and TCP transports. For UDP, | |
102 | it runs 4 daemons that accept requests | |
103 | from any client on subnet 131.104.48. | |
104 | For TCP, it accepts connections from any client on network 131.104 | |
105 | plus the client with the address 131.102.31.2. | |
106 | .LP | |
7167345e | 107 | nfsd \-u 255.255.240.0,131.104.0.0,6 \-t 0,0 |
7a094649 KM |
108 | .IP "- " |
109 | Serves UDP and TCP transports. | |
110 | For UDP, it runs 6 daemons that accept requests from clients with | |
111 | addresses in the range 131.104.0.x - 131.104.15.x. | |
112 | For TCP, it accepts connections from any client. | |
113 | .LP | |
7167345e | 114 | nfsd \-u 0,0,4 |
7a094649 KM |
115 | .IP "- " |
116 | Serves any UDP client with 4 servers, only. | |
117 | .LP | |
7167345e | 118 | nfsd 4 |
7a094649 KM |
119 | .IP "- " |
120 | Serves any UDP client with 4 servers, only. (Compatibility) | |
121 | .LP | |
122 | A server should typically run enough daemons to handle | |
123 | the maximum level of concurrency from its clients, | |
124 | typically four to six. | |
1b3a818d | 125 | .PP |
7dd5dab1 KM |
126 | .I Nfsd |
127 | listens for service requests at the port indicated in the | |
128 | .SM NFS | |
129 | server specification; see | |
1b3a818d | 130 | ``Network File System Protocol Specification, RFC1094'' |
7dd5dab1 KM |
131 | .SH SEE ALSO |
132 | .IR nfsstat (1), | |
8d25ae69 | 133 | .IR nfssvc (2), |
7dd5dab1 KM |
134 | .IR mountd (8), |
135 | .IR portmap (8) | |
7a094649 KM |
136 | .SH BUGS |
137 | The client host address restrictions specified here are unrelated to | |
138 | the mount restrictions specified in /etc/exports for | |
139 | .IR mountd (8). |