Hi,
I’m considering ways to make my nextcloud installation available to my devices outside of my home… what can I do to protect my data and network against bots and other bad actors?
Thanks
James
Hi,
I’m considering ways to make my nextcloud installation available to my devices outside of my home… what can I do to protect my data and network against bots and other bad actors?
Thanks
James
For Nextcloud itself, good passwords, 2FA, keep everything updated.
For the rest of the system, it is similar to web servers and other systems exposed to the internet (only run services needed, give these services just enough permission as they need, ssh with key authentication, updates, …).
And to protect you data, a good backup is required, and especially one that is not reachable/modifiable from a corrupted setup.
If you feel more comfortable with fail2ban or similar things, they can reduce the number of attempts, but they are also more software to fail and possibly do strange things.
good starting point is How to maintain, check and improve the security of your Nextcloud installation and other 101 articles
Thank you both for the replies ![]()
I backup all my important stuff weekly, including Nextcloud, but my passwords could be better, I’ll admit. My admin password is pretty good but my user one, not so much so I’ll change that. Not sure how I would do two-factor authorisation with a Nextcloud install.
James
Although I’m relatively new to this I managed to open up my Netcloud instance from outside my network. Although I do believe I did al the right things which I can offer here as starting point, I’m also aware I only know what I know and am open for further suggestions:
In my case:
The official Admin Manual has an entire section on the topic.
See the 2FA chapter.
A strong password is of little use. Imagine you are using Windows internally on your LAN and your password is captured by a keylogger and sent to the attacker via the internet. Then, regardless of how complex your password was, they can log in to your Nextcloud. That is why you use 2FA. Although, I don’t use 2FA either.
Hi James,
install fail2ban !
I solved it with Cloudflare tunnel via a domain this by the way gives me a lot of security my installation is through CasaOS and it was very easy, I have no engineering knowledge or anything like that and I achieved it
I can share my solution.
Can that be downloaded as a PDF or some other downloadable format? I prefer to have local copies of anything important ![]()
James
Can that be downloaded as a PDF or some other downloadable format?
why don’t you look yourself? it’s not really hidden https://docs.nextcloud.com/
It’s very easy to set up 2fa. Go to apps, install “Two-Factor TOTP Provider.” You can then go to the admin panel > security and “Enforce two-factor authentication” if you want to force users to use it for added security.
Once the 2fa app is installed, go to “personal settings > security” and you can then enable TOTP for your account and set it up with whatever application you use for TOTP. I personally like OneAUTH by Zoho because you can upload your keys to the cloud and retrieve them on a new device if you ever need to.
Nextcloud also supports passwordless login. I have this setup through Bitwarden, it skips the password and asks for my TOTP key.
There is also the Nextcloud site checker that can do a basic scan on your Nextcloud domain to see how secure you have it setup. You can access it from the “overview” tab in admin settings.
The security scan site is https://scan.nextcloud.com
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.