Tip

How to improve NIS security & fault tolerant...

NIS has inherent security and fault tolerant issues. By using the follwoing method to secure NIS you also make it fault tolerant, there is a downside but this is discussed at the end.

First read the man page for the securenets file. Then place the file in the /var/yp directory on your NIS master and do not allow any machines to retrieve NIS information from the master.

Then set each NIS client to be a NIS secondary, and in the /var/yp/securenets file only allow each machine to retrieve NIS information from itself.

This means that:

1) No machine outside of your defined NIS primaries and secondaries will be able to retrieve any NIS information. 2) All NIS information will now be retreived via the loopback interface, which is almost as fast as using the local files. 3) No machine will be dependent on any other for NIS information.

The downside to this approach is obviously that it requires a lot more bandwidth to push out the NIS maps. However I have found that this approach scales well to a couple of thousand hosts, after this point you can follow approaches such as limiting pushing the maps out to once a day out of hours, etc.

PLEASE NOTE: NIS is inherently insecure and provides little authentication over and above IP address, if you require truly secure Directory Services you should investigate either NIS+ or LDAP over SSL.


    Requires Free Membership to View

This was first published in May 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.