Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73
Rep:
iptables is blocking nfs
Hi guys.... i m stuck at a point in which i want to mount a nfs using tcp based connection... i have configured firewall to allow portmapper(tcp 111), nfs (tcp 2049) mountd(tcp 791) and is on a machine running rhel 5 .. however wen i try to mount this directory (the name is tempnfs) the mounting fails from another boxs running open suse 11 and cent OS4 using the command
mount -t nfs -o tcp 192.168.1.3:/tempnfs /mnt/tempdir
the mounting fails and the message "internal error" is displayed... the exit status using echo $? is 32.....
but if i flush the iptables firewall the mounting is successful with 0 exit status.... what should i do...???
The nfs server runs rhel 5 and has ip 192.168.1.3
the client with opensuse installed has ip 192.168.1.2
the client with centos installed on it has ip 192.168.1.4
First make sure that NFS is actually running on port 2049; the default is to grab a high-numbered port I think (this may depend on your distro'). Also, make sure that it's using TCP, as it's possible that you've only opened the TCP port on the firewall, and if configured to use UDP the packets may block.
I use a generic way to figure out those blocks, when just looking at the rules (especially if they are somewhat complex) doesn't show anything obvious.
See if that helps you. (My bet: It's not port 2049 -- the portmapper assigns a random free port. It often assigns the first free one in the range, but there are no guarantees.)
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73
Original Poster
Rep:
its definitely port 2049 because when redhat included the column of NFS4 in system-config-securitylevel-tui..... they made sure dat nfs bind itself on port 2049 tcp and udp... moreover the rpcinfo -p command also agrres dat nfs is running on port 2049 in both tcp and udp modes
Might sound crazy to ask but have you opened 2049 to UDP then? You have only said it's been opened to TCP what I believe should work, but I usually test things like these just in case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.