xref: /dflybsd-src/usr.sbin/rpcbind/rpcbind.8 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
1*86d7f5d3SJohn Marino.\" @(#)rpcbind.1m 1.19 92/09/14 SMI; from SVr4
2*86d7f5d3SJohn Marino.\" Copyright 1989 AT&T
3*86d7f5d3SJohn Marino.\" Copyright 1991 Sun Microsystems, Inc.
4*86d7f5d3SJohn Marino.\" $FreeBSD: src/usr.sbin/rpcbind/rpcbind.8,v 1.10 2007/04/23 07:09:25 matteo Exp $
5*86d7f5d3SJohn Marino.Dd April 23, 2007
6*86d7f5d3SJohn Marino.Dt RPCBIND 8
7*86d7f5d3SJohn Marino.Os
8*86d7f5d3SJohn Marino.Sh NAME
9*86d7f5d3SJohn Marino.Nm rpcbind
10*86d7f5d3SJohn Marino.Nd universal addresses to RPC program number mapper
11*86d7f5d3SJohn Marino.Sh SYNOPSIS
12*86d7f5d3SJohn Marino.Nm
13*86d7f5d3SJohn Marino.Op Fl 6adiLls
14*86d7f5d3SJohn Marino.Op Fl h Ar bindip
15*86d7f5d3SJohn Marino.Sh DESCRIPTION
16*86d7f5d3SJohn MarinoThe
17*86d7f5d3SJohn Marino.Nm
18*86d7f5d3SJohn Marinoutility is a server that converts
19*86d7f5d3SJohn Marino.Tn RPC
20*86d7f5d3SJohn Marinoprogram numbers into
21*86d7f5d3SJohn Marinouniversal addresses.
22*86d7f5d3SJohn MarinoIt must be running on the host to be able to make
23*86d7f5d3SJohn Marino.Tn RPC
24*86d7f5d3SJohn Marinocalls
25*86d7f5d3SJohn Marinoon a server on that machine.
26*86d7f5d3SJohn Marino.Pp
27*86d7f5d3SJohn MarinoWhen an
28*86d7f5d3SJohn Marino.Tn RPC
29*86d7f5d3SJohn Marinoservice is started,
30*86d7f5d3SJohn Marinoit tells
31*86d7f5d3SJohn Marino.Nm
32*86d7f5d3SJohn Marinothe address at which it is listening,
33*86d7f5d3SJohn Marinoand the
34*86d7f5d3SJohn Marino.Tn RPC
35*86d7f5d3SJohn Marinoprogram numbers it is prepared to serve.
36*86d7f5d3SJohn MarinoWhen a client wishes to make an
37*86d7f5d3SJohn Marino.Tn RPC
38*86d7f5d3SJohn Marinocall to a given program number,
39*86d7f5d3SJohn Marinoit first contacts
40*86d7f5d3SJohn Marino.Nm
41*86d7f5d3SJohn Marinoon the server machine to determine
42*86d7f5d3SJohn Marinothe address where
43*86d7f5d3SJohn Marino.Tn RPC
44*86d7f5d3SJohn Marinorequests should be sent.
45*86d7f5d3SJohn Marino.Pp
46*86d7f5d3SJohn MarinoThe
47*86d7f5d3SJohn Marino.Nm
48*86d7f5d3SJohn Marinoutility should be started before any other RPC service.
49*86d7f5d3SJohn MarinoNormally, standard
50*86d7f5d3SJohn Marino.Tn RPC
51*86d7f5d3SJohn Marinoservers are started by port monitors, so
52*86d7f5d3SJohn Marino.Nm
53*86d7f5d3SJohn Marinomust be started before port monitors are invoked.
54*86d7f5d3SJohn Marino.Pp
55*86d7f5d3SJohn MarinoWhen
56*86d7f5d3SJohn Marino.Nm
57*86d7f5d3SJohn Marinois started, it checks that certain name-to-address
58*86d7f5d3SJohn Marinotranslation-calls function correctly.
59*86d7f5d3SJohn MarinoIf they fail, the network configuration databases may be corrupt.
60*86d7f5d3SJohn MarinoSince
61*86d7f5d3SJohn Marino.Tn RPC
62*86d7f5d3SJohn Marinoservices cannot function correctly in this situation,
63*86d7f5d3SJohn Marino.Nm
64*86d7f5d3SJohn Marinoreports the condition and terminates.
65*86d7f5d3SJohn Marino.Pp
66*86d7f5d3SJohn MarinoThe
67*86d7f5d3SJohn Marino.Nm
68*86d7f5d3SJohn Marinoutility can only be started by the super-user.
69*86d7f5d3SJohn Marino.Sh OPTIONS
70*86d7f5d3SJohn Marino.Bl -tag -width indent
71*86d7f5d3SJohn Marino.It Fl 6
72*86d7f5d3SJohn MarinoBind to AF_INET6 (IPv6) addresses only.
73*86d7f5d3SJohn Marino.It Fl a
74*86d7f5d3SJohn MarinoWhen debugging
75*86d7f5d3SJohn Marino.Pq Fl d ,
76*86d7f5d3SJohn Marinodo an abort on errors.
77*86d7f5d3SJohn Marino.It Fl d
78*86d7f5d3SJohn MarinoRun in debug mode.
79*86d7f5d3SJohn MarinoIn this mode,
80*86d7f5d3SJohn Marino.Nm
81*86d7f5d3SJohn Marinowill not fork when it starts, will print additional information
82*86d7f5d3SJohn Marinoduring operation, and will abort on certain errors if
83*86d7f5d3SJohn Marino.Fl a
84*86d7f5d3SJohn Marinois also specified.
85*86d7f5d3SJohn MarinoWith this option, the name-to-address translation consistency
86*86d7f5d3SJohn Marinochecks are shown in detail.
87*86d7f5d3SJohn Marino.It Fl h Ar bindip
88*86d7f5d3SJohn MarinoSpecify specific IP addresses to bind to for TCP and UDP requests.
89*86d7f5d3SJohn MarinoThis option
90*86d7f5d3SJohn Marinomay be specified multiple times and is typically necessary when running
91*86d7f5d3SJohn Marinoon a multi-homed host.
92*86d7f5d3SJohn MarinoIf no
93*86d7f5d3SJohn Marino.Fl h
94*86d7f5d3SJohn Marinooption is specified,
95*86d7f5d3SJohn Marino.Nm
96*86d7f5d3SJohn Marinowill bind to
97*86d7f5d3SJohn Marino.Dv INADDR_ANY ,
98*86d7f5d3SJohn Marinowhich could lead to problems on a multi-homed host due to
99*86d7f5d3SJohn Marino.Nm
100*86d7f5d3SJohn Marinoreturning a UDP packet from a different IP address than it was
101*86d7f5d3SJohn Marinosent to.
102*86d7f5d3SJohn MarinoNote that when specifying IP addresses with
103*86d7f5d3SJohn Marino.Fl h ,
104*86d7f5d3SJohn Marino.Nm
105*86d7f5d3SJohn Marinowill automatically add
106*86d7f5d3SJohn Marino.Li 127.0.0.1
107*86d7f5d3SJohn Marinoand if IPv6 is enabled,
108*86d7f5d3SJohn Marino.Li ::1
109*86d7f5d3SJohn Marinoto the list.
110*86d7f5d3SJohn Marino.It Fl i
111*86d7f5d3SJohn Marino.Dq Insecure
112*86d7f5d3SJohn Marinomode.
113*86d7f5d3SJohn MarinoAllow calls to SET and UNSET from any host.
114*86d7f5d3SJohn MarinoNormally
115*86d7f5d3SJohn Marino.Nm
116*86d7f5d3SJohn Marinoaccepts these requests only from the loopback interface for security reasons.
117*86d7f5d3SJohn MarinoThis change is necessary for programs that were compiled with earlier
118*86d7f5d3SJohn Marinoversions of the rpc library and do not make those requests using the
119*86d7f5d3SJohn Marinoloopback interface.
120*86d7f5d3SJohn Marino.It Fl L
121*86d7f5d3SJohn MarinoAllow old-style local connections over the loopback interface.
122*86d7f5d3SJohn MarinoWithout this flag, local connections are only allowed over a local socket,
123*86d7f5d3SJohn Marino.Pa /var/run/rpcbind.sock .
124*86d7f5d3SJohn Marino.It Fl l
125*86d7f5d3SJohn MarinoTurn on libwrap connection logging.
126*86d7f5d3SJohn Marino.It Fl s
127*86d7f5d3SJohn MarinoCause
128*86d7f5d3SJohn Marino.Nm
129*86d7f5d3SJohn Marinoto change to the user daemon as soon as possible.
130*86d7f5d3SJohn MarinoThis causes
131*86d7f5d3SJohn Marino.Nm
132*86d7f5d3SJohn Marinoto use non-privileged ports for outgoing connections, preventing non-privileged
133*86d7f5d3SJohn Marinoclients from using
134*86d7f5d3SJohn Marino.Nm
135*86d7f5d3SJohn Marinoto connect to services from a privileged port.
136*86d7f5d3SJohn Marino.El
137*86d7f5d3SJohn Marino.Sh NOTES
138*86d7f5d3SJohn MarinoAll RPC servers must be restarted if
139*86d7f5d3SJohn Marino.Nm
140*86d7f5d3SJohn Marinois restarted.
141*86d7f5d3SJohn Marino.Sh FILES
142*86d7f5d3SJohn Marino.Bl -tag -width /var/run/rpcbind.sock -compact
143*86d7f5d3SJohn Marino.It Pa /var/run/rpcbind.sock
144*86d7f5d3SJohn Marino.El
145*86d7f5d3SJohn Marino.Sh SEE ALSO
146*86d7f5d3SJohn Marino.Xr rpcbind 3 ,
147*86d7f5d3SJohn Marino.Xr netconfig 5 ,
148*86d7f5d3SJohn Marino.Xr rpcinfo 8
149