LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount problems with NFS (https://www.linuxquestions.org/questions/linux-networking-3/mount-problems-with-nfs-122089/)

neolus 12-02-2003 06:21 PM

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.

jcookeman 12-02-2003 06:51 PM

More than likely a firewall issue. What Linux are you running on the client and server?

jcookeman 12-02-2003 07:04 PM

http://www.lowth.com/LinWiz/nfs_help.html

Looks like some good info on this link.

neolus 12-02-2003 07:22 PM

both machines are running redhat 9. so how do i go about troubleshooting the firewall issue

jcookeman 12-02-2003 07:32 PM

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

andrecbarros 12-03-2003 01:27 AM

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


All times are GMT -5. The time now is 09:32 AM.