NAME
port to
program number mapper
SYNOPSIS
DESCRIPTION
is a server that converts
program numbers into
protocol port numbers.
It must be running in order to make
calls.
When an
server is started, it will tell
what port number it is listening to, and what
program numbers it is prepared to serve.
When a client wishes to make an
call to a given program number,
it will first contact
on the server machine to determine
the port number where
packets should be sent.
must be started before any
servers are invoked.
Normally
forks and dissociates itself from the terminal
like any other daemon.
then logs errors using
syslog(3)
records all current mapping in the file
so that if it gets killed and restarted, it can reload the mapping for
currently active services.
Options available:
- V
Display version number and exit.
- d
(debug) prevents
from running as a daemon,
and causes errors and debugging information
to be printed to the standard error output.
- f
(foreground) prevents
from running as a daemon,
and causes log messages
to be printed to the standard error output.
- dir
(chroot) tell
to
chroot(2)
into
should be empty, not writeable by the daemon user, and preferably on a
filesystem mounted read-only, noexec, nodev, and nosuid.
- uid
- gid
Set the user-id and group-id of the running process to those given,
rather than the compiled-in defaults of 1/1.
If neither are set, then
will look up the user
and use the uid and gid of that user.
- v
(verbose) run
in verbose mode.
- address
bind
to address. If you specify 127.0.0.1 it will bind to the loopback
interface only.
- l
bind
to the loop-back address 127.0.0.1. This is a shorthand for
specifying 127.0.0.1 with -i.
This
version is protected by the
library. You have to give the clients access to
if they should be allowed to use it.
To allow connects from clients of the network 192.168. you could use
the following line in /etc/hosts.allow:
portmap: 192.168.
In order to avoid deadlocks, the
program does not attempt to look up the remote host name or user name, nor will
it try to match NIS netgroups. As a consequence only network number patterns
(or IP addresses) will work for portmap access control, do not use hostnames.
Notice that localhost will always be allowed access to the portmapper.
You have to use the daemon name
for the daemon name (even if the binary has a different name). For the
client names you can only use the keyword ALL or IP addresses (NOT
host or domain names).
To allow connects from clients of
the .bar.com domain you could use the following line in /etc/hosts.allow:
portmap: .bar.com
You have to use the daemon name
for the daemon name (even if the binary has a different name). For the
client names you can use the keyword ALL, IP addresses, hostnames or domain
names. Using netgroup names will likely cause
to deadlock.
Note that localhost will always be allowed access to the portmapper.
For further information please have a look at the
tcpd(8)
hosts_allow(5)
and
hosts_access(5)
manual pages.
SEE ALSO
HISTORY
The
command appeared in
x
4.3
AUTHORS
This
manual page was changed by
for the Debian Project.