LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2011, 06:47 AM   #1
cerez
LQ Newbie
 
Registered: Dec 2009
Location: Rome
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
[rpc.mountd] how to bind mountd on two ports


Hi guys, i need a little help..
i want bind mountd on two different port
i m working on /etc/sysconfig/nfs
i have tried MOUNTD_PORT= but it's usefull for bind only one port,
with RPCMOUNTDOPTS= and the switch -t 2 i can duplicate the threads but the switch -p always works on one port
any idea?
thanks to all, bye
 
Old 06-23-2011, 04:48 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

May I ask what you're trying to achieve? As far as I know rpc.mountd
will listen on a whole host of ports unless you explicitly specify one.



Cheers,
Tink
 
Old 06-24-2011, 05:18 AM   #3
cerez
LQ Newbie
 
Registered: Dec 2009
Location: Rome
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
May I ask what you're trying to achieve?
Hi Tink, thanks for your interest!
I need to bind rpc.mountd on a specified port because the server are inside a DMZ and it's necessary make rule on the firewall. It's an HQ architecture.
If i run nfs service without /etc/sysconfig/nfs (default mode) i see mountd listen on two (random) ports and i would to have the same in "configured mode".
At the moment i have bind mountd on one port and all works fine, but i think two ports are better that one

Ty

Last edited by cerez; 06-24-2011 at 06:48 AM.
 
Old 06-24-2011, 06:38 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The problem is that portmapper assigns random ports
in the high range per connection attempt to rpc.mountd.

Unless you're lucky and the firewall is iptables on
yet another Linux box (in which case you could conceivably
script rules creation for newly attempted connections)
you may have to open a whole range of ports. How many
machines are attempting to nfs mount? Have you considered
other options that are less problematic when it comes to
firewalling, e.g. sshfs?


Cheers,
Tink
 
  


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
nfs tcp wrappers in rpc. mountd (rhce) deadeyes Linux - Certification 0 03-14-2010 08:15 PM
NFS rpc.mountd getting busy with mount request pd5c18 Linux - Networking 0 02-17-2010 05:53 AM
rpc.mountd ... problem kehkok Linux - Networking 1 01-22-2007 08:21 AM
mountd time out: "mount_nfs: bad MNT RPC: RPC: Timed out" on client brush Debian 1 10-15-2006 03:01 PM
Mandrake 8.1 boot problem: rpc.mountd failing lhoff Mandriva 0 12-05-2003 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration