submitted 3 years ago* (last edited 3 years ago) by to c/linux@lemmy.ml
 

Im using linux for +-3 yrs and im pretty used to it. Im currently running nixos on my laptop. My question is what kind of hardening do i need firejail, apparmor, selinux, .. all 3 of them ? none of them ? Thanks for the advice and have a nice day

you are viewing a single comment's thread
view the rest of the comments
[–] -2 points 3 years ago (12 children)

I am not sure. I personally don’t trust selinux because it was developed my the nsa, though that is just me being tinfoil-hat-ish about it. I am a fan of clamav / clamtk for files you think are sketchy (“alternatively obtained” games and things.) I also use ufw but that is more of a thing for servers if I’m not mistaken. If you use ssh server on your laptop, you should get fail2ban or sshguard. While the whole “Linux can’t get hacked” thing is wrong, as long as you stay updated and don’t be stupid you should be protected from automated scripts which is all desktop users really need to worry about.

  • source
  • hideshow 12 child comments
  • [–] 3 points 3 years ago (1 child)

    I put fail2ban on everything, and I manage to lock my self out of systems at least once a month, so I guess it's working as intended.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 3 years ago (9 children)

    Thanks for the time to anwser. What is the diffrents between ufw and systemds firewall ?

  • source
  • parent
  • hideshow 9 child comments
  • [–] 1 point 3 years ago (7 children)

    Which systemd firewall are you talking about?

  • source
  • parent
  • hideshow 7 child comments
  • [–] [S] 2 points 3 years ago (6 children)
  • [–] 2 points 3 years ago (4 children)

    Use UFW - uncomplicated firewall. Some distros install it by default. Its very easy to use whereas other firewalls are super complicated

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 2 points 3 years ago (3 children)

    I currently use firewalld is their a diffrents in terms of security ?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 3 years ago (1 child)

    I dont think so. Both UFW and firewalld are just frontends - they don't actually do any work themselves. That is all handled by the iptables or the newer nftables kernel modules inside the kernel itself, the major difference will be in what rules they create but both should be able to create the same rules for either of these kernel APIs. UFW is what ubuntu uses by default I believe and firewalld what a lot of other distros use by default.

  • source
  • parent
  • hideshow 1 child comment