Thursday, November 10, 2016

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 

No comments:

Post a Comment

Cybermap

Internet Storm Center Infocon Status

Internet Storm Center Infocon Status
Internet Storm Center Infocon Status