LinuxQuestions.org
Visit Jeremy's Blog.
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 12-02-2003, 06:21 PM   #1
neolus
LQ Newbie
 
Registered: Dec 2003
Location: australia
Distribution: redhat 9
Posts: 6

Rep: Reputation: 0
mount problems with NFS


it seems to me that i am having trouble mounting usinf NFS, ive read and followed a NFS howto, and when i go to mount i get a "mount: RPC: Timed Out" comment, i am unsure as to how to fix this.
 
Old 12-02-2003, 06:51 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
More than likely a firewall issue. What Linux are you running on the client and server?
 
Old 12-02-2003, 07:04 PM   #3
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
http://www.lowth.com/LinWiz/nfs_help.html

Looks like some good info on this link.
 
Old 12-02-2003, 07:22 PM   #4
neolus
LQ Newbie
 
Registered: Dec 2003
Location: australia
Distribution: redhat 9
Posts: 6

Original Poster
Rep: Reputation: 0
both machines are running redhat 9. so how do i go about troubleshooting the firewall issue
 
Old 12-02-2003, 07:32 PM   #5
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
I always flush my ruleset and see if that remedies the problem and then update the ruleset or work on another solution.

Code:
iptables -F
Go check out that link. There are also others that have posted their rulesets for NFS. They are easy to come across and there is probably some on this board as well.

EDIT:
It may make it easier to set up NFS to use TCP, although this will create a little more overhead:

http://docsrv.caldera.com:507/en/PER...ml#cfg_tcp_nfs

That may point you in the right direction.

Another good article:

http://www.linuxsecurity.com/feature...story-118.html

Last edited by jcookeman; 12-02-2003 at 07:35 PM.
 
Old 12-03-2003, 01:27 AM   #6
andrecbarros
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
The port used for nfs is 2049, you should try do add the following rules to iptables (in both computers)

iptables -a input -p all -i <interface> -s <network-mask> -d <ip> \
--sport 2049 --dport 2049 -j accept
iptables -a output -p all -o <interface> -s <network-mask> -d <ip> \
--sport 2049 --dport 2049 -j accept

<comp-iface> is "eth0" or "eth1" or "eth2"
<network-mask> is usually 255.255.255.0 but you can be a little more restrictive if you want
<ip> guess what, you ip address

Also, you must edit /etc/exports and add a line like
/home <ip-net>/<mask-bits>(<mode>,sync)

<ip-net> is yout network address like 192.168.0.0
<mask-bits> is usually 24 (it's equivalent to <network-mask>)
<mode> can be rw, r, etc

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
nfs mount problems GoldfingerUK Linux - Networking 1 02-01-2005 01:42 PM
NFS mount problems through VPN k2merlinsix Linux - Networking 3 12-09-2004 03:00 PM
problems with nfs mount! Falafel Linux - Networking 3 11-14-2003 03:47 PM
nfs mount problems GoldfingerUK Linux - General 4 02-15-2001 03:29 PM

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

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