This is in relation to NAS. Well, as you might be aware, dont expose your webmanagement to the internet. Like the fridges in France. Wasn’t it something like that?
PFsense also has a webgui to configure itself. The Community Edition comes with a firewall rule blocking anyone trying to acess it via WAN. Also “default deny”. Which means, if you have no firewall rules, everything is denied. You pretty much only add rules for what is allowed. Everything else, denied. It is something to think about on Linux distros, servers, VPSes too. Is your firewall app (nftables, firewalld, ufw, iptables) accepting every type of connection? I would not start with iptables today, it will be obsolete soon. I still do on my daily driver. It keeps working.
Either way, those rules are easily converted to nftables.
RAID is not a backup. Remember the 3-2-1 of backups. Data Backup Strategies: Why the 3-2-1 Backup Strategy is the Best
Theres books written on all kinds of security etc. Have you considered looking for those?
I’ve used Packtpub to buy e-books. Subjects like KVM and virtualization, Raspberry Pi stuff, OpenVPN. They have all kinds of books.
Linux Commandline, free e-book. Has a lot of info. So much so, I don’t even know half of it. Been on Linux for 15 years. I like to setup VPSs, VMs, modify my systems. I would also not expect anyone to know all of it. Pick what you need and like.
I spend probably 50% of my time in the commandline. It is just easier. Like, how do you SSH to a VPS via GUI? How do you edit any file that is owned by root?
Be careful when using sudo. Understand every command you run, especially if it is something you found on the internet. Just because someone wrote a guide does not mean it is a good guide.
Paste a terminal command on this webiste, it manages to explain most of them: https://explainshell.com
I’ll take an example: sudo journalctl -u openvpn-server@server -n 50 --no-pager
explainshell gets it wrong. -u = unit IIRC. and -n 50 means 50 lines. Same as “cat /var/log/“some-log-file” | tail -n 50”. Have you learned “piping” yet?
Some examples of it: Piping in Unix or Linux - GeeksforGeeks
I’ll stop here. Theres lots to cover. Takes years to learn.