xref: /dflybsd-src/usr.sbin/rpcbind/rpcbind.8 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino.\" @(#)rpcbind.1m 1.19 92/09/14 SMI; from SVr4
286d7f5d3SJohn Marino.\" Copyright 1989 AT&T
386d7f5d3SJohn Marino.\" Copyright 1991 Sun Microsystems, Inc.
486d7f5d3SJohn Marino.\" $FreeBSD: src/usr.sbin/rpcbind/rpcbind.8,v 1.10 2007/04/23 07:09:25 matteo Exp $
586d7f5d3SJohn Marino.Dd April 23, 2007
686d7f5d3SJohn Marino.Dt RPCBIND 8
786d7f5d3SJohn Marino.Os
886d7f5d3SJohn Marino.Sh NAME
986d7f5d3SJohn Marino.Nm rpcbind
1086d7f5d3SJohn Marino.Nd universal addresses to RPC program number mapper
1186d7f5d3SJohn Marino.Sh SYNOPSIS
1286d7f5d3SJohn Marino.Nm
1386d7f5d3SJohn Marino.Op Fl 6adiLls
1486d7f5d3SJohn Marino.Op Fl h Ar bindip
1586d7f5d3SJohn Marino.Sh DESCRIPTION
1686d7f5d3SJohn MarinoThe
1786d7f5d3SJohn Marino.Nm
1886d7f5d3SJohn Marinoutility is a server that converts
1986d7f5d3SJohn Marino.Tn RPC
2086d7f5d3SJohn Marinoprogram numbers into
2186d7f5d3SJohn Marinouniversal addresses.
2286d7f5d3SJohn MarinoIt must be running on the host to be able to make
2386d7f5d3SJohn Marino.Tn RPC
2486d7f5d3SJohn Marinocalls
2586d7f5d3SJohn Marinoon a server on that machine.
2686d7f5d3SJohn Marino.Pp
2786d7f5d3SJohn MarinoWhen an
2886d7f5d3SJohn Marino.Tn RPC
2986d7f5d3SJohn Marinoservice is started,
3086d7f5d3SJohn Marinoit tells
3186d7f5d3SJohn Marino.Nm
3286d7f5d3SJohn Marinothe address at which it is listening,
3386d7f5d3SJohn Marinoand the
3486d7f5d3SJohn Marino.Tn RPC
3586d7f5d3SJohn Marinoprogram numbers it is prepared to serve.
3686d7f5d3SJohn MarinoWhen a client wishes to make an
3786d7f5d3SJohn Marino.Tn RPC
3886d7f5d3SJohn Marinocall to a given program number,
3986d7f5d3SJohn Marinoit first contacts
4086d7f5d3SJohn Marino.Nm
4186d7f5d3SJohn Marinoon the server machine to determine
4286d7f5d3SJohn Marinothe address where
4386d7f5d3SJohn Marino.Tn RPC
4486d7f5d3SJohn Marinorequests should be sent.
4586d7f5d3SJohn Marino.Pp
4686d7f5d3SJohn MarinoThe
4786d7f5d3SJohn Marino.Nm
4886d7f5d3SJohn Marinoutility should be started before any other RPC service.
4986d7f5d3SJohn MarinoNormally, standard
5086d7f5d3SJohn Marino.Tn RPC
5186d7f5d3SJohn Marinoservers are started by port monitors, so
5286d7f5d3SJohn Marino.Nm
5386d7f5d3SJohn Marinomust be started before port monitors are invoked.
5486d7f5d3SJohn Marino.Pp
5586d7f5d3SJohn MarinoWhen
5686d7f5d3SJohn Marino.Nm
5786d7f5d3SJohn Marinois started, it checks that certain name-to-address
5886d7f5d3SJohn Marinotranslation-calls function correctly.
5986d7f5d3SJohn MarinoIf they fail, the network configuration databases may be corrupt.
6086d7f5d3SJohn MarinoSince
6186d7f5d3SJohn Marino.Tn RPC
6286d7f5d3SJohn Marinoservices cannot function correctly in this situation,
6386d7f5d3SJohn Marino.Nm
6486d7f5d3SJohn Marinoreports the condition and terminates.
6586d7f5d3SJohn Marino.Pp
6686d7f5d3SJohn MarinoThe
6786d7f5d3SJohn Marino.Nm
6886d7f5d3SJohn Marinoutility can only be started by the super-user.
6986d7f5d3SJohn Marino.Sh OPTIONS
7086d7f5d3SJohn Marino.Bl -tag -width indent
7186d7f5d3SJohn Marino.It Fl 6
7286d7f5d3SJohn MarinoBind to AF_INET6 (IPv6) addresses only.
7386d7f5d3SJohn Marino.It Fl a
7486d7f5d3SJohn MarinoWhen debugging
7586d7f5d3SJohn Marino.Pq Fl d ,
7686d7f5d3SJohn Marinodo an abort on errors.
7786d7f5d3SJohn Marino.It Fl d
7886d7f5d3SJohn MarinoRun in debug mode.
7986d7f5d3SJohn MarinoIn this mode,
8086d7f5d3SJohn Marino.Nm
8186d7f5d3SJohn Marinowill not fork when it starts, will print additional information
8286d7f5d3SJohn Marinoduring operation, and will abort on certain errors if
8386d7f5d3SJohn Marino.Fl a
8486d7f5d3SJohn Marinois also specified.
8586d7f5d3SJohn MarinoWith this option, the name-to-address translation consistency
8686d7f5d3SJohn Marinochecks are shown in detail.
8786d7f5d3SJohn Marino.It Fl h Ar bindip
8886d7f5d3SJohn MarinoSpecify specific IP addresses to bind to for TCP and UDP requests.
8986d7f5d3SJohn MarinoThis option
9086d7f5d3SJohn Marinomay be specified multiple times and is typically necessary when running
9186d7f5d3SJohn Marinoon a multi-homed host.
9286d7f5d3SJohn MarinoIf no
9386d7f5d3SJohn Marino.Fl h
9486d7f5d3SJohn Marinooption is specified,
9586d7f5d3SJohn Marino.Nm
9686d7f5d3SJohn Marinowill bind to
9786d7f5d3SJohn Marino.Dv INADDR_ANY ,
9886d7f5d3SJohn Marinowhich could lead to problems on a multi-homed host due to
9986d7f5d3SJohn Marino.Nm
10086d7f5d3SJohn Marinoreturning a UDP packet from a different IP address than it was
10186d7f5d3SJohn Marinosent to.
10286d7f5d3SJohn MarinoNote that when specifying IP addresses with
10386d7f5d3SJohn Marino.Fl h ,
10486d7f5d3SJohn Marino.Nm
10586d7f5d3SJohn Marinowill automatically add
10686d7f5d3SJohn Marino.Li 127.0.0.1
10786d7f5d3SJohn Marinoand if IPv6 is enabled,
10886d7f5d3SJohn Marino.Li ::1
10986d7f5d3SJohn Marinoto the list.
11086d7f5d3SJohn Marino.It Fl i
11186d7f5d3SJohn Marino.Dq Insecure
11286d7f5d3SJohn Marinomode.
11386d7f5d3SJohn MarinoAllow calls to SET and UNSET from any host.
11486d7f5d3SJohn MarinoNormally
11586d7f5d3SJohn Marino.Nm
11686d7f5d3SJohn Marinoaccepts these requests only from the loopback interface for security reasons.
11786d7f5d3SJohn MarinoThis change is necessary for programs that were compiled with earlier
11886d7f5d3SJohn Marinoversions of the rpc library and do not make those requests using the
11986d7f5d3SJohn Marinoloopback interface.
12086d7f5d3SJohn Marino.It Fl L
12186d7f5d3SJohn MarinoAllow old-style local connections over the loopback interface.
12286d7f5d3SJohn MarinoWithout this flag, local connections are only allowed over a local socket,
12386d7f5d3SJohn Marino.Pa /var/run/rpcbind.sock .
12486d7f5d3SJohn Marino.It Fl l
12586d7f5d3SJohn MarinoTurn on libwrap connection logging.
12686d7f5d3SJohn Marino.It Fl s
12786d7f5d3SJohn MarinoCause
12886d7f5d3SJohn Marino.Nm
12986d7f5d3SJohn Marinoto change to the user daemon as soon as possible.
13086d7f5d3SJohn MarinoThis causes
13186d7f5d3SJohn Marino.Nm
13286d7f5d3SJohn Marinoto use non-privileged ports for outgoing connections, preventing non-privileged
13386d7f5d3SJohn Marinoclients from using
13486d7f5d3SJohn Marino.Nm
13586d7f5d3SJohn Marinoto connect to services from a privileged port.
13686d7f5d3SJohn Marino.El
13786d7f5d3SJohn Marino.Sh NOTES
13886d7f5d3SJohn MarinoAll RPC servers must be restarted if
13986d7f5d3SJohn Marino.Nm
14086d7f5d3SJohn Marinois restarted.
14186d7f5d3SJohn Marino.Sh FILES
14286d7f5d3SJohn Marino.Bl -tag -width /var/run/rpcbind.sock -compact
14386d7f5d3SJohn Marino.It Pa /var/run/rpcbind.sock
14486d7f5d3SJohn Marino.El
14586d7f5d3SJohn Marino.Sh SEE ALSO
14686d7f5d3SJohn Marino.Xr rpcbind 3 ,
14786d7f5d3SJohn Marino.Xr netconfig 5 ,
14886d7f5d3SJohn Marino.Xr rpcinfo 8
149