NFS, Centos 7, firewalld setup

NFS, Centos 7, firewalld setup

On server
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap

systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap

edit  /etc/exports

(path do shared folder, IP of client, permissions and configs)

firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
to check if everything is correct
from client mount the nfs share
create folder
mount -t nfs /mnt/nfs/USB-drive 


Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

How to clean DB from old logs in Magento 1.x

Python pxssh failed on login. could not set shell prompt