debian-cis/tests/hardening/3.5.1.1_enable_firewall.sh
GoldenKiwi 5370ec2ef6
feat: add nftables to firewall software allow list (#203)
* feat: add nftables to firewall software allow list

fixes #191

* fix: enhance 3.5.4.1.1_net_fw_default_policy_drop.sh iptables output check, disable associated test
2023-09-07 14:36:08 +02:00

20 lines
547 B
Bash

# shellcheck shell=bash
# run-shellcheck
test_audit() {
describe Running on blank host
register_test retvalshouldbe 1
dismiss_count_for_test
# shellcheck disable=2154
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
describe Correcting situation
apt-get update
apt-get install -y iptables
describe Checking resolved state
register_test retvalshouldbe 0
register_test contain "provides firewalling feature"
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
}