LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-05-2006, 09:40 AM   #1
guarriman
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
NFS through iptables: unable to configure it


Hi.

Working with Fedora Core (at server and at client), I want client to access
server via NFS, but when trying to mount a local directory:
-----------
[local]# mount -o nfsvers=2 myserver:/home/mydir /home/serverdir -o nfsvers=2
mount to NFS server 'myserver' failed: server is down.
-----

I edited '/etc/sysconfig/iptables' at the server, adding this line:
-----
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-----
and restarted iptables ('/etc/rc.d/init.d/iptables restart')

But it doesn't work. Any suggestion?
 
Old 12-06-2006, 02:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nfs uses rpc to dynamically assign ports for the actual data transfer. from what i'm aware it is possible to make rpc.mountd only use one single port though: http://www.lowth.com/LinWiz/nfs_help.html
 
  


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
Allowing NFS in IPTABLES: Fix port for NFS Lock Manager Swakoo Linux - General 10 08-25-2006 05:24 AM
nfs and iptables muumi Linux - General 0 08-15-2006 02:31 PM
how to configure iptables for nfs ?? dansawyer Linux - Security 4 08-06-2006 11:32 PM
unable to configure firewall using IPTABLES adityavpratap Slackware 5 05-29-2006 10:21 AM
how to configure the NFS smthakur Linux - Networking 0 09-03-2001 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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