We will setup next environment:
In our organization we will use setup NFS server to allow users centrally managed by mine NIS server to have the same files in the same home directory on any machine in mine organization. I want to export /home/org directory to trusted network (192.168.0.0/24) using NFSv3. In NIS I will configure user which will use this directory. To be sure that all will work, I will setup some static ports for listening in local firewall.
Configure nfs so he is listening on static ports. It means that you should remove comment from some lines in /etc/sysconfig/nfs
After this we can start nfs service and nfslock service.
Look for open ports which are important for nfs, and open it permanent in firewall.
Now you will make directory where you will add all of yours users home directory. In mine case it is /home/org, so inside home I will just add directory. In this point it is very important to pay attention on selinux type of added directory.
Now you will change /etc/exports file and add next line
On client side add directory, and make permanent mount for shared directory
192.168.0.120:/home/org /home/org nfs defaults 0 0
Now on server side add nfsuser with uid 5000, and home directory located in /home/org. Recompile NIS maps, and add user in kerberos. On end try to connect on security2.
kadmin.local: addprinc nfsuser