PDA

View Full Version : NFS Newbie Question


cdeverapalli
19th October 2004, 12:00 AM
I am trying to setup NFS between a linux data server and a Fedora Client. I was successfully able to configure the NFS and see the files between the server and client. I have to put my client behind a linksys router and when I do this, I can mount the file system but a simple command like "ls" would hand up the client. I am not sure what exact ports I need to open or other things that I need to configure on the router (I am using a Linksys router). The rpcinfo -p SERVER gives the following:
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
391002 2 tcp 32769 sgi_fam
100011 1 udp 604 rquotad
100011 2 udp 604 rquotad
100011 1 tcp 607 rquotad
100011 2 tcp 607 rquotad
100005 1 udp 32865 mountd
100005 1 tcp 32931 mountd
100005 2 udp 32865 mountd
100005 2 tcp 32931 mountd
100005 3 udp 32865 mountd
100005 3 tcp 32931 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 32866 nlockmgr
100021 3 udp 32866 nlockmgr
100021 4 udp 32866 nlockmgr
and Hence I opened up all these ports for TCP & UDP on the router but still couldnt get my NFS to work, I even tried turning off the iptables on the client which was ofcourse of no use. Can someone tell me what I am doing wrong or what I havent done, for this work. All and any help would be appreciated.
thank You.

crackers
19th October 2004, 03:39 AM
You could be seeing a timing issue, actually. Trying to do NFS over the internet (which is what I'm assuming you're trying) is ... pretty bad. RPC is not a secure protocol and actually a bit slow. You should only use NFS inside a firewall router on a local LAN.

cdeverapalli
19th October 2004, 03:32 PM

I actually have the NFS server and client within a LAN, the NFS client itself is another application server which is behind a Linksys router hence I am trying to configure it through the router. Can this be done?

Dog-One
19th October 2004, 07:24 PM
I actually have the NFS server and client within a LAN, the NFS client itself is another application server which is behind a Linksys router hence I am trying to configure it through the router. Can this be done?Probably, not sure what is needed though. IMHO, it would be much cleaner to have your LAN working on a Ethernet switch or hub and then connect that device to your router. I'm guessing that your router has multiple ports, but those ports aren't acting as a switch if NFS won't talk between machines on your LAN. The Linksys router must be firewalling between ports instead of between the ports and the Internet. Does your router have a port that indicates it's only for uplink or something similar? If so, disconnect from that port and use one of the other ports.

willieray
19th October 2004, 07:48 PM
It'd be a quick hack but if you just wanna serve from the server to the single client, you could put the server's eth0 to the wan port and enable DMZ to the client. dirty dirty dirty, and limited, but effective

Petrohead
19th October 2004, 09:34 PM
Sounds to me like you may have configured NFS incorrectly. A tool I like to use is called webmin. It's a nice GUI frontend to configure NFS, FTP servers etc with a GUI that explains the whole thing to you and writes the script for you as well. You may want to install that on the PC that you have your NFS shares on and configure from there. I have a similar setup as you and webmin got things going quite smoothly for me.