Report this

What is the reason for this report?

Nextcloud over VPN

Posted on April 8, 2018

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.