DragonFly BSD
DragonFly users List (threaded) for 2006-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: NFS port range

From: Oliver Fromme <check+j8gjfy00rs09644r@xxxxxxxxxx>
Date: 09 Nov 2006 10:34:09 GMT

Petr Janda wrote:
 > Im trying to find some page documenting which ports NFS uses. I know it 
 > uses dynamic ports. Also is there anyway to make the ports static so I 
 > can just open a few ports in my firewall and thats it.

Basically two port numbers are involved, one for the mount
protocol, and one for the actual NFS traffic.  The latter
is always 2049 by convention, but the former is allocated
dynamically on some port below 1024 by default.  However,
mountd(8) has an option -p which specifies a fixed port
number.  So you simply have to start mountd(8) with that
option and choose a fixed, unused port number below 1024.
Then allow that port number and 2049 in your firewall.

(Beware:  mountd(8) will terminate with an error message if
it cannot allocate the specified port number.)

Best regards

Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd

Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]