Bottlerocket
TMA-BOTTLEROCKET-3.4.2.1
Ensure IPv6 default deny firewall policy
DüşükDüzey 2Otomatikbottlerocket
Açıklama
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).
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
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- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
Run the following commands to implement a default DROP policy: # ip6tables -P INPUT DROP # ip6tables -P OUTPUT DROP # ip6tables -P FORWARD DROP
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- bottlerocketnetwork
- Referans
- CIS Bottlerocket Benchmark v1.0.0 - 3.4.2.1 Ensure IPv6 default deny firewall policy
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target bottlerocket --level 2