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 12-10-2010, 02:58 PM   #1
tlemons
Member
 
Registered: Jun 2004
Posts: 39

Rep: Reputation: 15
Use NFS through a firewall


A while back, one of my users asked me to set up external access (from outside our lab) to our lab file server via NFS. I figured out how to do this by enabling the following on our firewall:

TCP RPC (port 111) to the file server
UDP RPC (port 111) to the file server
TCP NFS (port 2049) to the file server
UDP MOUNT (port 1020) to the file server

This works and will stay working as long as the file server’s port mapping doesn’t change. If it does, I’ll need to figure out how to ‘nail these down’ on the file server.

FYI
tl
 
Old 12-10-2010, 03:34 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
111 and 2049 won't change.

The mountd port probably will. You can nail that down but it would help if you told us what distro the file server is running.
 
Old 12-10-2010, 03:48 PM   #3
tlemons
Member
 
Registered: Jun 2004
Posts: 39

Original Poster
Rep: Reputation: 15
Hi Alucard

I'm using RHEL V5.5.

Thanks
tl
 
Old 12-10-2010, 05:04 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Edit /etc/sysconfig/nfs. Find the line with MOUNTD_PORT, uncomment it, and change it to something (1020, perhaps?). Restart NFS.

Not sure if you need to set STATD_PORT or LOCKD_*PORT. Try it!
 
1 members found this post helpful.
  


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
SuSE 10.3 NFS Firewall Settings dcasper Linux - Server 1 10-15-2008 10:53 PM
firewall stopping NFS Steve Riley Red Hat 3 01-23-2008 04:09 PM
NFS blocked by the firewall Tom Douglas Linux - Software 2 06-29-2007 05:49 AM
Export NFS behind firewall nifflerX Linux - Networking 2 07-06-2005 02:41 PM
NFS and firewall ports linuxhippy Slackware 2 05-06-2005 11:38 AM

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

All times are GMT -5. The time now is 08:29 AM.

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