qcomm
asked on
Hard Coding a Port for NIS on Fedora Core2
I want to run NIS between a mail server in my DMZ to a server on my trusted network which runs Fedora Core2. My firewall requires a pin hold with a static port, but when I reboot my server the NIS turns up on another port. Is there a way to hard set the NIS communication port on a Server running Fedora Core 2?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is a comment to the original question to make it more concise!
I am familiar with NIS and know the howto forward and backward, I will try rewriting the startup script and see if the startup script is the problem. However, all attempts at this point to set the port have failed. NIS will not start under two conditions at this point -- 1. if I enter the -p entry in the startup script, and 2. if I run the machine at init level 3. I really would prefer to run the box at init level 3 rather than init level 5.
I am familiar with NIS and know the howto forward and backward, I will try rewriting the startup script and see if the startup script is the problem. However, all attempts at this point to set the port have failed. NIS will not start under two conditions at this point -- 1. if I enter the -p entry in the startup script, and 2. if I run the machine at init level 3. I really would prefer to run the box at init level 3 rather than init level 5.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
delete the old NIS script or it may be something with ypserv in it
Anyways make the new script and use the
ypserv -p 500
now the nis server will run on that port
Heres a link if you need help http://www.linuxforum.com/man/ypserv.5.php