Step 1; don't connect your system to the internetMy system was hacked and crashed
How to protect
Every OS is the same. Do NOT use easily guessed user accounts. Do NOT use easily guessed passwords. Do NOT reuse passwords (using the same password for everything).
Most of the "hacks" these days happen because people use easily guessed passwords. There are literately hundreds (if not thousands) of bots scanning the internet every minute. They're continuously looking, prodding and trying those easy to guess accounts and passwords.
Both can happen due to different cause. You have not described the symptom of hack and crash. Also to protect any OS follow SirDice's advise and Freebsd Handbook.hacked and crashed
Mac OS is The answer. Furthermore, you don't need password on Mac, you can use your finger. By the way, did you contant NomadBSD core team?Is MAC OS the same question?
First of all keep your software up to date, ipfw was vulnerable among others to CVE-2019-5614.My system was hacked and crashed
How to protect
Please step by step
A "real" firewall setup with a manageable switch, packet filter firewall-host, DMZ (de-militarized zone) & service host in the DMZ. On that host, run all services jailed or in VMs (bhyve(8)). Secure it with ipfw(8) (see /etc/rc.firewall) or pf(4) (beware pf is different...). Strictly speaking, some services (e.g. DB for a web application) should be on their own physical host, a VM is not enough. The packet filter firewall-host and the services host (inside the DMZ) must be physically separate machines (in any case). Physically sepatate the networks for management and ordinary traffic, some also have a dedicated machine (terminal) for network management. Install a virus scanner at least on the services host, integrate that into mail and web/FTP proxy. Best practice is to have a socks gateway/proxy, espc. if you need to access the internet e.g. with SSH. Consider one of the FreeBSD-based firewall "distros" for the packet filter.My system was hacked and crashed
How to protect
Please step by step