LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-19-2020, 11:09 AM   #1
pclinux66
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Rep: Reputation: Disabled
How to handle NFS and CIFS mount points when using firewall-cmd to set up firewall?


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.
 
Old 06-20-2020, 05:23 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
As far as I know, the firewalld services nfs and samba help open ports on NFS and CIFS servers for ingress traffic. You seem to configure a client, which generates egress traffic.

Egress ports are normally not closed.

Last edited by berndbausch; 06-20-2020 at 05:29 AM.
 
1 members found this post helpful.
Old 06-20-2020, 11:26 AM   #3
pclinux66
LQ Newbie
 
Registered: Jun 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
As far as I know, the firewalld services nfs and samba help open ports on NFS and CIFS servers for ingress traffic. You seem to configure a client, which generates egress traffic.

Egress ports are normally not closed.
Hi berndbausch,

You're right that those are clients. I'm using netstat to check what connections have been established but that does not tell me whether the connection generates egrees, ingress, or both type of traffic. Do you have any suggestion how to determine the type of traffic for a connection using commands commonly available on linux servers?

Thanks for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs mount points do not mount from fstab when using wifi eflester Linux - Networking 8 02-23-2019 08:15 PM
Issue sg_modes cmd at cmd line, want to see the cmd in binary form NuUser Linux - Newbie 1 03-28-2012 08:08 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration