How to handle NFS and CIFS mount points when using firewall-cmd to set up firewall?
by pclinux66 from LinuxQuestions.org on (#54SP1)
I'm new in this forum and also new in setting up firewall using firewall-cmd. I'm working on Oracle Linux 7 servers which have both NFS and CIFS mount points.
For example:
NFS mount point 10.40.100.20:/database
CIFS mount point //10.40.100.30/reports
Do I just add them in a zone like this:
firewall-cmd --zone=mountpoints --add-source=10.40.100.20
firewall-cmd --zone=mountpoints --add-source=10.40.100.30
firewall-cmd --zone=mountpoints --add-service=nfs
firewall-cmd --zone=mountpoints --add-service=samba
Thanks for any help.


For example:
NFS mount point 10.40.100.20:/database
CIFS mount point //10.40.100.30/reports
Do I just add them in a zone like this:
firewall-cmd --zone=mountpoints --add-source=10.40.100.20
firewall-cmd --zone=mountpoints --add-source=10.40.100.30
firewall-cmd --zone=mountpoints --add-service=nfs
firewall-cmd --zone=mountpoints --add-service=samba
Thanks for any help.