⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portmap.8

📁 当你重新编译了EM85XX的交叉编译工具以支持SUNRPC时
💻 8
字号:
.\" Copyright (c) 1987 Sun Microsystems.\" Copyright (c) 1990, 1991 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     from: @(#)portmap.8	5.3 (Berkeley) 3/16/91.\"	$Id: portmap.8,v 1.2 2004/04/03 09:30:21 herbert Exp $.\".Dd Apr 20, 2007.Dt PORTMAP 8.Os BSD 4.3.Sh NAME.Nm portmap.Nd.Tn DARPAport to.Tn RPCprogram number mapper.Sh SYNOPSIS.Nm portmap.Op Fl d.Op Fl f.Op Fl t Ar dir.Op Fl v.Op Fl V.Op Fl i Ar address.Op Fl l.Op Fl u Ar uid.Op Fl g Ar gid.Sh DESCRIPTION.Nm Portmapis a server that converts.Tn RPCprogram numbers into.Tn DARPAprotocol port numbers.It must be running in order to make.Tn RPCcalls..PpWhen an.Tn RPCserver is started, it will tell.Nm portmapwhat port number it is listening to, and what.Tn RPCprogram numbers it is prepared to serve.When a client wishes to make an.Tn RPCcall to a given program number,it will first contact.Nm portmapon the server machine to determinethe port number where.Tn RPCpackets should be sent..Pp.Nm Portmapmust be started before any.Tn RPCservers are invoked..PpNormally.Nm portmapforks and dissociates itself from the terminallike any other daemon..Nm Portmapthen logs errors using.Xr syslog 3 ..Pp.Nm Portmaprecords all current mapping in the file.Nm /var/run/portmap_mappingso that if it gets killed and restarted, it can reload the mapping forcurrently active services..PpOptions available:.Bl -tag -width Ds.It Fl VDisplay version number and exit..It Fl d(debug) prevents.Nm portmapfrom running as a daemon,and causes errors and debugging informationto be printed to the standard error output..It Fl f(foreground) prevents.Nm portmapfrom running as a daemon,and causes log messagesto be printed to the standard error output..It Fl t Ar dir(chroot) tell.Nm portmapto.Xr chroot 2into.Ar dir ..Ar dirshould be empty, not writeable by the daemon user, and preferably on afilesystem mounted read-only, noexec, nodev, and nosuid..It Fl u Ar uid.It Fl g Ar gidSet the user-id and group-id of the running process to those given,rather than the compiled-in defaults of DAEMON_UID/DAEMON_GID..if 'RPCUSER'' .igIf neither are set, then.Nm portmapwill look up the user.Nm RPCUSERand use the uid and gid of that user....It Fl v(verbose) run.Nm portmapin verbose mode..It Fl i Ar addressbind.Nm portmapto address. If you specify 127.0.0.1 it will bind to the loopbackinterface only..It Fl lbind.Nm portmapto the loop-back address 127.0.0.1.  This is a shorthand forspecifying 127.0.0.1 with -i..ElThis.Nm portmapversion is protected by the.Nm tcp_wrapperlibrary. You have to give the clients access to.Nm portmapif they should be allowed to use it..if 'USE_DNS'yes' .igTo allow connects from clients of the network 192.168. you could usethe following line in /etc/hosts.allow:portmap: 192.168.In order to avoid deadlocks, the.Nm portmapprogram does not attempt to look up the remote host name or user name, nor willit 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.Nm portmapfor the daemon name (even if the binary has a different name). For theclient names you can only use the keyword ALL or IP addresses (NOThost or domain names)....if !'USE_DNS'yes' .igTo allow connects from clients ofthe .bar.com domain you could use the following line in /etc/hosts.allow:.Ppportmap: .bar.com.PpYou have to use the daemon name.Nm portmapfor the daemon name (even if the binary has a different name). For theclient names you can use the keyword ALL, IP addresses, hostnames or domainnames. Using netgroup names will likely cause.Nm portmapto deadlock.Note that localhost will always be allowed access to the portmapper...For further information please have a look at the.Xr tcpd 8 ,.Xr hosts_allow 5and.Xr hosts_access 5manual pages..Sh SEE ALSO.Xr inetd.conf 5 ,.Xr rpcinfo 8 ,.Xr pmap_set 8 ,.Xr pmap_dump 8 ,.Xr inetd 8 ,.Xr tcpd 8 ,.Xr hosts_access 5 ,.Xr hosts_options 5.Sh HISTORYThe.Nmcommand appeared in.Bx 4.3.Sh AUTHORSThismanual page was changed by.An Anibal Monsalve Salazarfor the Debian Project.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -