From: "Brian J. Murrell" <brian@interlinx.bc.ca>
To: nfs <nfs@lists.sourceforge.net>
Subject: Re: proc/sys/sunrpc/max_resvport
Date: Wed, 10 Oct 2007 11:10:30 -0400 [thread overview]
Message-ID: <1192029030.31407.35.camel@pc.ilinx> (raw)
In-Reply-To: <1191973408.7418.18.camel@heimdal.trondhjem.org>
[-- Attachment #1.1: Type: text/plain, Size: 1852 bytes --]
On Tue, 2007-10-09 at 19:43 -0400, Trond Myklebust wrote:
>
> There are two ports involved in an IP connection: one source port (i.e.
> the client) and one destination port (i.e. the server). If bind() is run
> on a socket that was set up by the client, it will set the source port
> for the connection.
I see where this is going. I had not considered that one might want to
set a range of ports that the client uses.
> The reason why an RPC client would want to select a particular port
> number is that for most *NIX setups, the ports with number < 1024 will
> usually require root privileges to bind() to.
Indeed. The insecurity of putting (even a tiny amount of) trust in a
remote application using a port < 1024 aside. :-)
> By requiring that RPC
> calls must originate from such a 'privileged port', an NFS server can
> therefore make it slightly harder for an unprivileged process on that
> machine to spoof NFS requests.
Sure.
> See the 'secure' and 'insecure' export options on 'man 5 exports'.
Yeah. I'm familiar with them. I had just not drawn the link from that
to this sysctl being for limiting the client bind address.
> Not really. portmap doesn't choose the port numbers: the server
> processes themselves choose that number, and so they are the ones that
> you need to fix up.
Hrm? Really? I thought the process of registering an RPC server with
the port mapper involved the port mapper finding an available port for
it to run on. I thought that was whole point of the port mapper -- to
allocate ports out of a "limited" pool of available ports for services
that wanted to be available -- rather than the more traditional
"officially assigned port"-from-IANA method of getting a port number.
b.
--
My other computer is your Microsoft Windows server.
Brian J. Murrell
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-10-10 15:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 17:12 proc/sys/sunrpc/max_resvport Brian J. Murrell
2007-10-09 20:57 ` proc/sys/sunrpc/max_resvport Trond Myklebust
2007-10-09 21:01 ` proc/sys/sunrpc/max_resvport Brian J. Murrell
2007-10-09 21:09 ` proc/sys/sunrpc/max_resvport Trond Myklebust
2007-10-09 21:26 ` proc/sys/sunrpc/max_resvport Brian J. Murrell
2007-10-09 23:43 ` proc/sys/sunrpc/max_resvport Trond Myklebust
2007-10-10 15:10 ` Brian J. Murrell [this message]
2007-10-11 13:44 ` proc/sys/sunrpc/max_resvport Trond Myklebust
2007-10-11 13:53 ` proc/sys/sunrpc/max_resvport Brian J. Murrell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1192029030.31407.35.camel@pc.ilinx \
--to=brian@interlinx.bc.ca \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox