LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2004, 08:37 PM   #1
lock_nb
LQ Newbie
 
Registered: Oct 2003
Location: NB
Distribution: Mint/Debian/Raspbian/Arch
Posts: 18

Rep: Reputation: 1
What ipchains do you open on an NFS client


I have two RH7.2 boxes on a home LAN and I'm trying
to mount a share from one to the other.

If I stop iphains on both boxes everything works.

I know I need to configure ipchains on the server
but what do I do with the client.

If I turn on ipchains on the client I get an
RPC timeout error. Everything I read talks
about which server ports to open up to allow
RPC and portmapper to work.

Nothing I can find describes what do open up
on the client end.

Any thoughts??
 
Old 01-06-2004, 03:53 PM   #2
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
The answer is none or all. Problem is that NFS is an RPC application, and RPC uses the lead RPC port to assign a pseudo-random port for the NFS application. So you'd have to open up a large block of ports for NFS to work.

If you firewall at all, then NFS is generally a bad idea. I use two NICs and a private sub-net for the NFS shares on my network. This way I simply "trust" one subnet - and block the other sub-net.
 
Old 01-06-2004, 06:28 PM   #3
lock_nb
LQ Newbie
 
Registered: Oct 2003
Location: NB
Distribution: Mint/Debian/Raspbian/Arch
Posts: 18

Original Poster
Rep: Reputation: 1
Thanks for the tip, I woke up and thought of the answer.

Your are right about the RPC. I native mode NFS uses
UDP based RPCs. Since there is no TCP session the
message from the server to the client are seen as
unsolicited message. Of course the ipchain rules will
block this.

By adding a rule to accept UDP messages from the
NFS server the whole thing works.
 
  


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 client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM
NFS mount problems due to ipchains irishb3 Linux - Networking 1 02-17-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:13 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