Question

Nextcloud over VPN

Posted April 8, 2018 4.3k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.
Submit an Answer