NFS share Proxmox server at datacenter to a freenas at home configured with ddns NOIP

Inlakesh

Well-Known Member
Jan 13, 2019
75
4
48
Hello

I want to make NFS share(for backups) from my proxmox server (located at a datacenter) to my freenas server which is located at home with dynamic IP.
I have setup the freenas server with ddns noip service, but I have no idea hot to get the proxmox server and freenas together to make NFS work.

Tried to search everywhere without any luck, I wonder if anyone here have got this to work with a similar setup?
 
Before going any further, keep in mind that NFS is completely unencrypted. Using NFS over the public internet is generally a bad idea.

I'd suggest using at least a point-to-point VPN for NFS, or switching over to a more secure protocol (SMBv3 is encrypted, though I have rarely seen it be used over the internet - many sources cite security issues here as well; sshfs is very simple to use and secure, but performance might be a tad lower - this is not supported by our GUI though, so you'd have to do the mount locally via SSH and then add the mountpoint as a 'directory' type storage in the GUI).

Other than that, you need to look into port forwarding to open a 'hole' in your firewall to allow incoming traffic to enter. The port you need to open depends on the protocol you decide on (e.g. sshfs uses 22 just like regular SSH; SMB uses, 139/445 for SMBv3, ...).
 
Ok, so now I have gone on the vpn road.
I made a KVM(IP 12.23.145.128) on the proxmox machine, installed openvpn to create a connection between kvm and freenas.
On the kvm created: sudo mkdir -p /mnt/nfs/backup, changed the directory ownership: sudo chown nobody:nogroup /mnt/nfs/backup,

Configuring the NFS Export: /mnt/nfs/backup 12.23.145.128(rw,sync,no_subtree_check)

Been able to ad this in proxmox gui nfs, and now I am without a clue how to get this linked from kvm to my freenas at home, there is a working vpn tunnel between kvm and freenas, but as I am a noob in freenas I reach out for some advice.
 
You want to mount the NFS storage from your KVM in the datacenter to your FreeNAS at home? Not the other way around?

and now I am without a clue how to get this linked from kvm to my freenas at home
You say you have a working VPN tunnel, so your KVM and your FreeNAS can connect to each other, right? In that case you'd simply need to add the KVM's VPN IP address as a new NFS connection on your NAS. I'd suggest taking a look at the FreeNAS documentation or forum for that, as it's entirely unrelated to PVE.
 
You want to mount the NFS storage from your KVM in the datacenter to your FreeNAS at home? Not the other way around?
Maybe it is the other way around, ( I am so new to this, maybe I am doing all wrong) o.O, What I want to accomplish is to being able to make backup to the nas, in the near future I am planning to upgrade proxmox to 6.*
 
Last edited:
Backup to the NAS would mean *exporting* an NFS share (iow. the server) from your FreeNAS, and *importing* (mounting) the share from PVE (note: the host, not a KVM! Otherwise you will not be able to use PVE's integrated backup).

Adding an NFS storage to PVE for backups is easy, simple go to 'Datacenter' -> 'Storage' -> 'Add' -> 'NFS' and put in the IP of your FreeNAS (the VPN IP, mind you, to make sure it uses your tunnel).

How to export an NFS share on FreeNAS, once again, is something you'd have to look up in their documentation though.
 
  • Like
Reactions: guletz and Inlakesh
Backup to the NAS would mean *exporting* an NFS share (iow. the server) from your FreeNAS, and *importing* (mounting) the share from PVE (note: the host, not a KVM! Otherwise you will not be able to use PVE's integrated backup).

Adding an NFS storage to PVE for backups is easy, simple go to 'Datacenter' -> 'Storage' -> 'Add' -> 'NFS' and put in the IP of your FreeNAS (the VPN IP, mind you, to make sure it uses your tunnel).

How to export an NFS share on FreeNAS, once again, is something you'd have to look up in their documentation though.
Thank you for your guidance, teaches me a lot and much appreciated.
 
  • Like
Reactions: guletz

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!