This was way too easy. Need to play with this a bit.
Server Setup
Software Installation
RHEL, CentOS
sudo yum -y install nfs-utils nfs-utils-lib
Debian, Ubuntu
sudo apt -y install nfs-kernal-server
Create a shared folder
sudo mkdir /home/public sudo chown nobody:nogroup /home/publi
Optional: Create test files.
cd /home/public touch test1 test2 test
Add the folder to the /etc/exports file
nano /etc/exports #file contents below /home/public * (rw,sync) #/home/public IP.ADD.RE.SS1 ([ro, rw],sync) #/home/public IP.ADD.RE.SS2 ([ro, rw],sync) #/home/public IP.ADD.RE.SS/24 ([ro, rw],sync)
Start NFS
# Ubuntu only? sudo exportfs -a # All OS versions systemctl start nfs
Setup the Client
Software Installation
RHEL, CentOS
sudo yum -y install nfs-utils nfs-utils-lib
Debian, Ubuntu
sudo apt -y install nfs-common
Mount the shared folder
mkdir /mnt/shared mount SERVER.DOMAIN.TLD:/home/public /mnt/shared
Verify the files are available
cd /mnt/shared ls test1 test2 test3