public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT - Finding the port NFS runs on
@ 2008-03-14  4:27 Michael Sullivan
  2008-03-14  4:46 ` Chris Brennan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Sullivan @ 2008-03-14  4:27 UTC (permalink / raw
  To: gentoo-user

How can I find out what port NFS is running on so I can let it through
my subrouter?

-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT - Finding the port NFS runs on
  2008-03-14  4:27 [gentoo-user] OT - Finding the port NFS runs on Michael Sullivan
@ 2008-03-14  4:46 ` Chris Brennan
  2008-03-14  6:56 ` Alan McKinnon
  2008-03-14  8:38 ` Etaoin Shrdlu
  2 siblings, 0 replies; 5+ messages in thread
From: Chris Brennan @ 2008-03-14  4:46 UTC (permalink / raw
  To: gentoo-user

install nmap and port map yourself ... or netstat -a | grep nfs(d) ....

Michael Sullivan wrote:
> How can I find out what port NFS is running on so I can let it through
> my subrouter?
> 
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT - Finding the port NFS runs on
  2008-03-14  4:27 [gentoo-user] OT - Finding the port NFS runs on Michael Sullivan
  2008-03-14  4:46 ` Chris Brennan
@ 2008-03-14  6:56 ` Alan McKinnon
  2008-03-14  8:38 ` Etaoin Shrdlu
  2 siblings, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2008-03-14  6:56 UTC (permalink / raw
  To: gentoo-user

On Friday 14 March 2008, Michael Sullivan wrote:
> How can I find out what port NFS is running on so I can let it
> through my subrouter?

It tends to vary somewhat. portmapper is quite loose and fancy free with 
port numbers, you will often find 2049 in use and others around 900 or 
so. nmap is your friend here, as well as netstat and tcpdump in extreme 
cases

If this becomes a problem, most nfs tools support a -p option where you 
define which one you want.

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT - Finding the port NFS runs on
  2008-03-14  4:27 [gentoo-user] OT - Finding the port NFS runs on Michael Sullivan
  2008-03-14  4:46 ` Chris Brennan
  2008-03-14  6:56 ` Alan McKinnon
@ 2008-03-14  8:38 ` Etaoin Shrdlu
  2008-03-14  9:27   ` Dave Jones
  2 siblings, 1 reply; 5+ messages in thread
From: Etaoin Shrdlu @ 2008-03-14  8:38 UTC (permalink / raw
  To: gentoo-user

On Friday 14 March 2008, Michael Sullivan wrote:

> How can I find out what port NFS is running on so I can let it through
> my subrouter?

rpcinfo -p <hostname> should tell you. Note that you might need to open 
other ports in addition to those used by nfs itself. In particular, the 
statd, lockd and mountd daemons usually use random ports, and I don't 
know whether and how they can be instructed to use fixed port numbers in 
Gentoo. Refer to this document for more information:

http://www.lowth.com/LinWiz/nfs_help.html
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] OT - Finding the port NFS runs on
  2008-03-14  8:38 ` Etaoin Shrdlu
@ 2008-03-14  9:27   ` Dave Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Jones @ 2008-03-14  9:27 UTC (permalink / raw
  To: gentoo-user

Etaoin Shrdlu wrote on 14/03/08 09:38:
> On Friday 14 March 2008, Michael Sullivan wrote:
>> How can I find out what port NFS is running on so I can let it through
>> my subrouter?

> rpcinfo -p <hostname> should tell you. Note that you might need to open 
> other ports in addition to those used by nfs itself. In particular, the 
> statd, lockd and mountd daemons usually use random ports, and I don't 
> know whether and how they can be instructed to use fixed port numbers in 
> Gentoo. Refer to this document for more information:

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

Modify /etc/conf.d/nfs to setup the ports you want to use:

OPTS_RPC_MOUNTD="-p nnnnn"
OPTS_RPC_STATD="-p mmmmm -o pppppp"

Modify /etc/sysctl.conf to set up the lockd port:

fs.nfs.nlm_udpport = xxxxxx
fs.nfs.nlm_tcpport = xxxxxx

NFS uses port 2049 as standard, portmap uses port 111

Cheers, Dave


-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-14  9:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14  4:27 [gentoo-user] OT - Finding the port NFS runs on Michael Sullivan
2008-03-14  4:46 ` Chris Brennan
2008-03-14  6:56 ` Alan McKinnon
2008-03-14  8:38 ` Etaoin Shrdlu
2008-03-14  9:27   ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox