-
Notifications
You must be signed in to change notification settings - Fork 0
Jay Dobies edited this page Mar 8, 2017
·
7 revisions
Add entries to /etc/exports
(the * can be replaced with an IP or hostname):
<dir> *(rw,sync,no_root_squash)
Enable rpc.mountd in /etc/sysconfig/nfs
MOUNTD_PORT=892
Start the NFS daemon
sudo systemctl start nfs
sudo systemctl enable nfs
Open up port 2049 over UDP and TCP
sudo firewall-cmd --zone=public --add-port=111/tcp --permanent
sudo firewall-cmd --zone=public --add-port=111/udp --permanent
sudo firewall-cmd --zone=public --add-port=2049/tcp --permanent
sudo firewall-cmd --zone=public --add-port=2049/udp --permanent
sudo firewall-cmd --zone=public --add-port=892/tcp --permanent
sudo firewall-cmd --reload
# Legacy before firewall-cmd
sudo iptables -I INPUT -p tcp -m tcp --dport 2049 -j ACCEPT
sudo iptables -I INPUT -p udp -m udp --dport 2049 -j ACCEPT
sudo /sbin/service iptables save
Example /etc/fstab
entry:
<host>:<dir> <local_dir> nfs user,noauto 0 0