What are CIS Benchmarks and how do you apply them?
BeginnerProductionFirewalls, MAC & Compliance
Answer
CIS publishes distro-specific hardening guides with Level 1 (practical baseline) and Level 2 (defence in depth, may break things) controls: partitions, services, sysctls, SSH, auditd, permissions, logging. We apply them through code, never by hand: Ansible roles (e.g. ansible-lockdown), Ubuntu Security Guide (usg), or CIS-hardened marketplace images, and scan with OpenSCAP or CIS-CAT. Document justified exceptions instead of blindly applying every control.
More on Firewalls, MAC & Compliance
How do ufw, firewalld, nftables and iptables relate?BeginnerConfigure ufw for a web server with SSH only from the office.BeginnerExplain firewalld zones and runtime vs permanent configuration.IntermediateWrite a minimal nftables ruleset for a server.AdvancedWhy are nftables preferred over iptables at scale?AdvancedHow do you avoid locking yourself out when changing remote firewall rules?Intermediate