What is everyone doing? SELinux? AppArmor? Something else?
I currently leave my nextcloud exposed to the Internet. It runs in a VM behind an nginx reverse proxy on the VM itself, and then my OPNSense router runs nginx with WAF rules. I enforce 2fa and don’t allow sign-ups.
My goal is protecting against ransomware and zerodays (as much as possible). I don’t do random clicking on links in emails or anything like that, but I’m not sure how people get hit with ransomware. I keep nextcloud updated (subscribed to RSS update feed) frequently and the VM updates everyday and reboots when necessary. I’m running the latest php-fpm and that just comes from repos so it gets updated too. HTTPS on the lan with certificates maintained by my router, and LE certs for the Internet side.
Beside hiding this thing behind a VPN (which I’m not prepared to do currently), is there anything else I’m overlooking?
bjoern_tantau@swg-empire.de 10 months ago
For protection against ransomware you need backups. Ideally ones that are append-only where the history is preserved.
thisisawayoflife@lemmy.world 10 months ago
Good call. I do some backups now but I should formalize that process. Any recommendations on selfhost packages that can handle the append only functionality?
Rootiest@lemmy.world 10 months ago
I use and love Kopia for all my backups: local, LAN, and cloud.
patchexempt@lemmy.zip 10 months ago
I’ve used rclone with backblaze B2 very successfully. rclone is easy to configure and can encrypt everything locally before uploading, and B2 is dirt cheap and has retention policies so I can easily manage (per storage pool) how long deleted/changed files should be retained. works well.
also once you get something set up. make sure to test run a restore! a backup solution is only good if you make sure it works :)
baccaratrevivify@lemmy.world 10 months ago
Borg backup has append only
tuhriel@infosec.pub 10 months ago
Restic can do append-only when you use their rest server (easily deployed in a docker container)
bjoern_tantau@swg-empire.de 10 months ago
No, I’d actually be interested in that myself. I currently just rsync to another server.