Operating System - HP-UX
1822480 Members
2473 Online
109642 Solutions
New Discussion юеВ

looking for The port uses by NIS

 
Goujon_1
Occasional Advisor

looking for The port uses by NIS

Hi all
I have my Nis/Nis+ server which are based in a client and my workstation is based in my company.The network is protected by a firewall and i would like to know which ports i should open on the firewall to be able to see my Nis server.I can not open all for safety reasons.
The workstation is porperly set (/var/yp/ypservers/domainname is correctly set as the /etc/rc.config.d/namesvrs)
My workstation can ping the nis servers but can not bind the Nis servers
5 REPLIES 5
Sivakumar TS
Honored Contributor

Re: looking for The port uses by NIS



Dear Goujon,

the follwoing ling has the ports used by all standard services

http://www.spirit.com/Resources/ports.html

HtH,
Siva.
Nothing is Impossible !
Goujon_1
Occasional Advisor

Re: looking for The port uses by NIS

Yes but this does not tell me which port is used by a nis client .The only protocol i could see in the list you have send me is bootp this one is already opened on my firewall .Ths protocol for example is needed when ignitestarting a workstation as tftp.
Sivakumar TS
Honored Contributor

Re: looking for The port uses by NIS


Dear Goujon,

Try this in the server, this will list the ports at which the various daemons running. This shoud the ports that needs to be opened.

Go thru the attachment.

rpcinfo -p localhost

With Regards,

Siva
Nothing is Impossible !
Ferfiris
New Member

Re: looking for The port uses by NIS

Hi,

NIS and NIS+ servers ussually do not use standard ports. Nis uses high ephemeral (temporary) ports,

Using "rpcinfo" command you can find out which are the ports that currently
Nis processes (ypserv, ypbind etc) are using and you can 'allow' them.

Also NIS uses RPC, and at your firewal you have to turn on RPC bind over TCP. ( Checkpoint F/W)

In general it is rare to use NIS/NIS+ with a firewal, and troubleshooting is difficult, in case of trouble try to use tcpdump it might give you some
clues.


Enjoy !

Cheers


Geoff Wild
Honored Contributor

Re: looking for The port uses by NIS

Or install nmap and run it like:

nmap -P0 -sT servername

http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Admin/nmap-3.93/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.