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

/media/USB-drive/ 192.168.200.2(rw,sync,no_root_squash,no_all_squash)
(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
exportfs 
 
from client mount the nfs share
create folder
/mnt/nfs/USB-drive  
 
mount -t nfs 192.168.200.1:/media/USB-drive /mnt/nfs/USB-drive 

Comments

Popular posts from this blog

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

Reduce (shrink) and resize raw disk at Proxmox

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10