Nextcloud over VPN

April 8, 2018 117 views
VPN Ubuntu 16.04

I am looking at setting up a NAS using nextcloud but I want it to only be usable over VPN, ideally so I don't need a DNS/Domain registrar.
Similar to how you might map network drives in windows, but they only work when the VPN is connected.
Is this possible and actually useful? or should I setup a network share on my droplet?

Many Thanks

1 Answer

You could certainly do this. Once you have your services configured you can set up a firewall like ufw to restrict connections to these services to only the incoming IP provided by your VPN.

This guide will walk you through setting up a firewall with ufw.

by Shaun Lewis
Learn how to setup a firewall with UFW on an Ubuntu / Debian cloud server.
Have another answer? Share your knowledge.