OPNsense Forum

English Forums => General Discussion => Topic started by: gothbert on February 18, 2019, 07:35:48 pm

Title: NFS server and/or syncthing under OPNsense
Post by: gothbert on February 18, 2019, 07:35:48 pm
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
Title: Re: NFS server and/or syncthing under OPNsense
Post by: 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.
Title: Re: NFS server and/or syncthing under OPNsense
Post by: gothbert on February 20, 2019, 09:16:57 pm
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.
Title: Re: NFS server and/or syncthing under OPNsense
Post by: gothbert on March 03, 2019, 06:57:59 pm
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.
Title: Re: NFS server and/or syncthing under OPNsense
Post by: newsense on March 04, 2019, 05:08:06 am
There's hardly any justification for FreeNAS, a small linux vm would suffice, with both syncthing and NFS