TMAegis
Thêm quy tắc cho pfsense

TMA-PFSENSE-4.1.2

Ensure no Allow Rule with Any in Source field present in the Firewall Rules

CaoCấp 1Tự độngpfsense

Mô tả

The Firewall Rules with Any in the Destination field allows accessing all the IP Addresses of Network from specified Sources configured in the Firewall rules for specific services FAILs if any pass rule in config.xml has source any (disabled rules are also flagged). Audited against the pfSense config.xml (Diagnostics > Backup & Restore > Download configuration, or /cf/conf/config.xml).

Cách kiểm tra

Phương pháp kiểm tra: Mẫu cấu hình

Mẫu khớp
<rule>(?:[^<]|<[^/<]|</[^r<]|</r[^u<]|</ru[^l<]|</rul[^e<]|</rule[^><])*?<type>pass</type>(?:[^<]|<[^/<]|</[^r<]|</r[^u<]|</ru[^l<]|</rul[^e<]|</rule[^><])*?<source>\s*(?:<any\s*/>|<any>\s*</any>)\s*</source>

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

GUI: Firewall > Rules > <interface>: edit each pass rule with Source any and set a specific host/network alias, or disable/delete it, Apply Changes. # CIS guidance: Delete the rule from the firewall which has Any used in the Source field.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
pfsensefirewall-policy
Tham chiếu
CIS pfSense Firewall Benchmark v1.1.0 - 4.1.2 Ensure no Allow Rule with Any in Source field present in the Firewall Rules

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 pfsense