Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

portreserve(1) [centos man page]

PORTRESERVE(1)						   TCP port reservation utility 					    PORTRESERVE(1)

NAME
portreserve - reserve ports to prevent portmap mapping them SYNOPSIS
portreserve DESCRIPTION
The portreserve program aims to help services with well-known ports that lie in the bindresvport range. It prevents portmap (or other programs using bindresvport) from occupying a real service's port by occupying it itself, until the real service tells it to release the port (generally in its init script). It is intended that portreserve runs from an initscript of its own, and services wishing to interact with it should use portrelease. When the portreserve daemon is started, it examines the /etc/portreserve/ directory. Each file not containing "." or "~" in its name is considered to be a service configuration file, and must contain a service name (as listed in /etc/services) or a port number. UDP services may be specified by appending "/udp" to the service name, and TCP services by "/tcp". Several services may be specified, one per line. For example, /etc/portreserve/cups might contain the string "ipp" or, equivalently, "ipp/tcp" and "ipp/udp" on separate lines. For each service configuration file, a socket is created and bound to the appropriate port. A service wishing to bind to its port must first run portrelease, which instructs portreserve to release the port associated with the service. Once all the reserved ports have been released, the daemon exits. FILES
/etc/portreserve/* Service configuration files /var/run/portreserve/socket communication socket for portrelease SEE ALSO
portrelease(1) AUTHOR
Tim Waugh <twaugh@redhat.com> Author. portreserve 1 July 2008 PORTRESERVE(1)

Check Out this Related Man Page

services(4)							   File Formats 						       services(4)

NAME
services - Internet services and aliases SYNOPSIS
/etc/inet/services /etc/services DESCRIPTION
The services file is a local source of information regarding each service available through the Internet. The services file can be used in conjunction with or instead of other services sources, including the NIS maps "services.byname" and the NIS+ table "services." Programs use the getservbyname(3SOCKET) routines to access this information. The services file contains an entry for each service. Each entry has the form: service-name port/protocol aliases service-name This is the official Internet service name. port/protocol This field is composed of the port number and protocol through which the service is provided, for instance, 512/tcp. aliases This is a list of alternate names by which the service might be requested. Fields can be separated by any number of SPACE and/or TAB characters. A number sign (#) indicates the beginning of a comment; any charac- ters that follow the comment character up to the end of the line are not interpreted by routines which search the file. Service names may contain any printable character other than a field delimiter, a NEWLINE, or a comment character. Any changes to a port assignment do not affect the actual port registration of the service. FILES
/etc/nsswitch.conf configuration file for name-service switch SEE ALSO
getservbyname(3SOCKET), inetd.conf(4), nsswitch.conf(4) NOTES
/etc/inet/services is the official SVR4 name of the services file. The symbolic link /etc/services exists for BSD compatibility. SunOS 5.11 12 Oct 2000 services(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

inet services, open ports etc

When I scan my linux box for open ports, i have several of them, but they shouldn't be open. I removed the lines for them in /etc/services, and left just stuff like telnet, ssh, ftp. Why are they still open? I've restarted the network, and I've even restarted my box, but they still apear as open.... (4 Replies)
Discussion started by: sTorm
4 Replies

2. IP Networking

TCP/UDP Ports

Just wondering if anyone knows of any good on-line documentation on TCP/UDP Ports. Basically i want to know how to check if they are in use, learn how to close them, etc... Thanks... (5 Replies)
Discussion started by: eugene_mayo
5 Replies

3. UNIX for Dummies Questions & Answers

111.22.31.123:1554, port 1554 defined where?

hi, given this 111.22.31.123:1554, isnt this 1554 defined in /etc/services? i am on aix. and this 1554 is a port? thanks (7 Replies)
Discussion started by: yls177
7 Replies

4. UNIX for Advanced & Expert Users

TCP ports - TIME_WAIT

What is the maximum number of TCP ports that can be consumed at any one time? How can I determine what the number is or increase it? I was under the impression that with our system (UnixWare 7.1.1) 1024 was the maximum under our current Kernel tuning parms, but I think that is really just... (4 Replies)
Discussion started by: dlkox
4 Replies

5. UNIX for Dummies Questions & Answers

Define different ports for one Service

Hi all, Is it possible to define different ports for one services. For examplehave I've a SMPP service on port 6000, and I want add port 6001, and 6002, and 6003, for the SMPP service. If it's possible? how can we proceed? is it just by modifiying the /etc/services file? Thanks for your... (3 Replies)
Discussion started by: Jeremy3
3 Replies

6. UNIX for Advanced & Expert Users

NFS services

What are all the services/daemons we use in NFS configuration? I know that nfs,portmap,nfslock the the services we use.But I am not sure that which service wil do what job? Is there any other services running for NFS? What services are running on server side and what services are running in... (4 Replies)
Discussion started by: praveen_b744
4 Replies

7. UNIX for Dummies Questions & Answers

Searching for text in a Space delimited File

Hi I am trying to search a firewall syslog space delimeted file for all of the different tcp and udp destination ports. I know that grep will find lines that contain specific text. And I have tried using the the the cut command to cut out of the file certain colums. However the test I am... (6 Replies)
Discussion started by: andyblaylock
6 Replies

8. Linux

How to setup ports on Linux

If Linux have a file like AIX: rc.tcpip to setup port services? (3 Replies)
Discussion started by: rainbow_bean
3 Replies

9. Solaris

SNMP services

Hello, Can anyone help me by telling how to open port 161 in solaris 10? I have added it in /etc/services but it is not working. I checked by telneting but I could not connect to that server on the port 161. I am trying to communicate using snmp services. (6 Replies)
Discussion started by: rcmrulzz
6 Replies

10. AIX

TCP port 70000 on AIX 6.1? (Surely higher than allowed maximum?)

Looking at /etc/services on AIX 6.1, I noticed some bizarre port numbers which exceed the 16-bit maximum port number for TCP (i.e. they are higher than 65535.) sco_printer 70000/tcp sco_spooler # For System V print IPC sco_s5_port 70001/tcp lpNet_s5_port ... (5 Replies)
Discussion started by: garethr
5 Replies

11. UNIX for Advanced & Expert Users

script for unassigned ports

Hi Guys, could you help me with this. I need a script where if we enter the hostname and range of port numbers, the script must be able to give me the ports that were unassigned to any of the services installed. Thanks, Charan (5 Replies)
Discussion started by: charan314
5 Replies

12. Solaris

list service with port number

Hi all, I want to list all service is running now with the specific port number (5 Replies)
Discussion started by: sharkux
5 Replies

13. Programming

How to free a port?

hi all, Im using a tcp socket for communication. After all the communications I close the socket and bind another socket to the same port. But it shows bind error. I see it is due to the port no being used immediately. But i am closing the first socket before the binding the second one to the... (9 Replies)
Discussion started by: v1jay
9 Replies

14. AIX

How to open port 1001 on AIX 6.1

Hi all, I have problem while starting Oracle Listener on port 1001(I think it's well known ports). It's error "Permission denied" I can start it on port 1111 and no any service started on port 1001(netstat -an). Can I start on this port ??, How ?? Thank you aRm (5 Replies)
Discussion started by: arm_naja
5 Replies

15. Red Hat

Restart of services if port no is changed in /etc/services in RHEL

I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed. I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed. Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies