NFS server and/or syncthing under OPNsense

Started by gothbert, February 18, 2019, 07:35:48 PM

Previous topic - Next topic
Hi,

has somebody already setup a NFS server and/or syncthing under OPNsense?

I know this is not actually the job of a firewall so here is why I'm asking: I would like to use OPNsense on APU 4C4 board in a second home mainly for caching and filtering out ads (and because it is fun). The APU 4C4 equipped with a 500 GB SSD could readily also be used as file storage for home directory and for synchronization with the NAS in the primary location.

In my opinion, the straightforward way would be a jail with NFS server and syncthing installed manually. But maybe there are other suggestions out or warnings to better drop that idea. Happy to know.

Best regards,
Boris

For an APU you'd be just fine with a site2site VPN and rsync over ssh in the tunnel.

Quote from: newsense on February 20, 2019, 07:56:07 AM
For an APU you'd be just fine with a site2site VPN and rsync over ssh in the tunnel.

To my best knowledge, rsync is not capable of a two-way sync where changes, additions and deletions of files occur randomly on both ends and should be propagated to the other end. Apart from that, both sites will be part of a VPN.

The actual use case is having my home directory available at both sites locally to circumvent the issues related to NFS via WAN.

Further research led me to a Zotac ZBox CI329 which supports up to 16 GB RAM. I consider using a virtualized setup with Proxmox as host and OPNsense and FreeNAS as hosts - FreeNAS itself supports NFS and syncthing in a jail ("plugin"). FreeNAS is what I also use on the other end.

Only major issue is the lack of 802.11ac wireless adapters (even under FreeBSD 12.0 in an upcoming version of OPNsense) for access point mode.

There's hardly any justification for FreeNAS, a small linux vm would suffice, with both syncthing and NFS