Bottlerocket
TMA-BOTTLEROCKET-3.4.2.1
Ensure IPv6 default deny firewall policy
NiedrigStufe 2Automatisiertbottlerocket
Beschreibung
A default deny all policy on connections ensures that any unconfigured network usage will be rejected. The audit runs ip6tables -L -n and requires DROP or REJECT policy on INPUT, FORWARD and OUTPUT. Run tmaegis on the host through the admin container root shell (sudo sheltie).
So wird geprüft
Prüfmethode: Shell-Befehl
shell
out=$(ip6tables -L -n 2>/dev/null) || exit 1
bad=0
for c in INPUT FORWARD OUTPUT; do
p=$(printf '%s\n' "$out" | sed -n "s/^Chain $c (policy \([A-Z]*\).*/\1/p")
case "$p" in DROP|REJECT) ;; *) echo "$c policy ${p:-unknown}"; bad=1 ;; esac
done
[ "$bad" -eq 0 ] && echo compliant- Erwartete Ausgabe
compliant
So wird behoben
Behebungsmethode: Anleitung oder Infrastruktur-Patch
Run the following commands to implement a default DROP policy: # ip6tables -P INPUT DROP # ip6tables -P OUTPUT DROP # ip6tables -P FORWARD DROP
Eigenschaften
- Betriebssysteme
- Beliebig
- Tags
- bottlerocketnetwork
- Referenz
- CIS Bottlerocket Benchmark v1.0.0 - 3.4.2.1 Ensure IPv6 default deny firewall policy
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target bottlerocket --level 2