Solved

Hard Coding a Port for NIS on Fedora Core2

Posted on 2004-09-21
6
297 Views
Last Modified: 2013-12-15
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?
0
Comment
Question by:qcomm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 250 total points
ID: 12117223
0
 
LVL 2

Expert Comment

by:fulp02
ID: 12144689
Yes make a startup script an place it in your runlevel that you are using
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
0
 

Author Comment

by:qcomm
ID: 12145168
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.

0
 
LVL 2

Assisted Solution

by:fulp02
fulp02 earned 250 total points
ID: 12153463
Aight 1 Make sure the RPC portmapper Is running with out it
I am pretty sure Nis Will crash every time , And in your startup after you verify
that the port mapper is runnin Put it at the very end to start so
say the your script was in roots home dir named "NisStart"
in that script there would be the command "ypserv -p 500"
Now copy this to Your run leve and Make it execute last

So I believe that you would do this
cp NisStart /etc/rc.d/rc3/S99NisStart give that a try and let me know how it works out
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question