export nfs to a host with dynamic IP address

Noel Jones noeldude at gmail.com
Mon Mar 19 13:49:04 UTC 2007


On 3/18/07, Zhang Weiwu <zhangweiwu at realss.com> wrote:
> Maybe this is not possible, but can I export NFS share to a host that
> have dynamic IP address?
>
> My office server export an NFS share folder to several local desktop
> computers. I often need to access these NFS share from my home computer,
> which have dynamic IP address. I do have a fixed domain name,
> myhome.ods.org always have a "A" dns record pointing to my home computer.
>
> Having dynamic IP address never caused a problem for me because, as I
> said I have fixed domain name (updated with ez-ipupdate) but when it
> comes to NFS it is a problem. If I write my fixed domain name in
> /etc/export I wouldn't be able to mount that share. NFS server seems to
> check the IP address that wish to connect to it, reverse lookup its
> domain name, and compare it with what's written in /etc/exports. For me
> it doesn't work because my dynamic IP address cannot reverse resolve to
> my fixed domain address.
>
> So, is there a network file system that can work for my case? I never
> tried NFS SSL authentication things because after a google search it
> looks quit complex to install and configure: but if that's the only way
> to go I'll start to learn it. I also know samba can provide
> authentication so I don't have to rely on IP address to control access.
> However I never set up samba server before: also I would do it if that's
> the only way to go.
>
> Any suggestions? Thanks a lot in advance.


Set up OpenVPN from ports/security/openvpn and export NFS to the VPN
tunnel address.
OpenVPN is secure, fairly easy to configure, and works well with dynamic IP.

-- 
Noel Jones


More information about the freebsd-questions mailing list