Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2003 21:03:35 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
Cc:        Kris Kennaway <kris@obsecurity.org>
Subject:   Re: NFS v2? possible?
Message-ID:  <20031110030334.GG36548@dan.emsphone.com>
In-Reply-To: <6BE82884-1328-11D8-9FD6-003065A70D30@shire.net>
References:  <61B97A72-128F-11D8-9FD6-003065A70D30@shire.net> <20031109112856.GB94834@xor.obsecurity.org> <6BE82884-1328-11D8-9FD6-003065A70D30@shire.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 09), Chad Leigh -- Shire.Net LLC said:
> On Nov 9, 2003, at 4:28 AM, Kris Kennaway wrote:
> >On Sun, Nov 09, 2003 at 01:33:23AM -0700, Chad Leigh -- Shire.Net LLC 
> >wrote:
> >>I have a linux server that needs to mount my FBSD server's web
> >>volume and the linux server only has v2 support right now (and I
> >>cannot make my own kernel since this is a UML kernel distributed as
> >>part of a product) and so I would like to run a v2 compatible nfs
> >>server on my FBSD server if possible.  Can I do this?  How?  Thanks
> >
> >Read the mount_nfs and/or nfsd manpages..the answer is right there.
> 
> The mount_nfs is for mounting on FreeBSD.  I am serving from FreeBSD
> and mounting on Linux, so that does not apply.  I read the nfsd man
> page a few time before posting, and just did again, and I see nothing
> in their about nfs versions except that the server listens on the
> port as outlined in thge NFS v3 spec.  Please enlighten me on what I
> should read in the nfsd man page.

You don't have to do anything actually.  FreeBSD serves both NFSv2 and
NFSv3 clients by default:

$ rpcinfo -p | grep nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs

You can disable NFSv3 with the -2 option to mountd, but if you have to
do that, then your Linux distro is extremely broken and you should have
your vendor fix it.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031110030334.GG36548>