TMAegisBeta
Thêm quy tắc cho vmware

VMware ESXi

TMA-VMWARE-5.4

Host must filter Bridge Protocol Data Unit (BPDU) packets

Trung bìnhCấp 1Tự độngvmware

Mô tả

To prevent cascading lockout of uplink interfaces from the ESXi host, the Net.BlockGuestBPDU parameter can be set to 1, enabling BPDU Filter to drop BPDU packets sent from virtual machines to the physical switch. This is crucial as ESXi's Standard and Distributed Virtual Switches do not support STP, making them prone to network loops if BPDUs are unfiltered. The audit reads Net.BlockGuestBPDU with esxcli and requires 1. Runs in the ESXi Shell (busybox sh) as root.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
out=$(esxcli system settings advanced list -o /Net/BlockGuestBPDU 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | awk '$1=="Int" && $2=="Value:" {print $3; exit}')
case "$v" in ''|*[!0-9-]*) echo '/Net/BlockGuestBPDU: no integer value'; exit 1 ;; esac
if [ "$v" -eq 1 ]; then echo compliant; else echo "/Net/BlockGuestBPDU = $v (expected 1)"; fi
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

From an administrative PowerCLI session: Execute - Get-VMHost | Get-AdvancedSetting -Name Net.BlockGuestBPDU | Set- AdvancedSetting -Value 1 -Confirm:$false. Validate network appliances/virtual switching workloads before enforcing this setting.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
vmwareesxinetwork
Tham chiếu
CIS VMware ESXi 8.0 Benchmark v1.4.0 - 5.4 Host must filter Bridge Protocol Data Unit (BPDU) packets

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target vmware