TMA-PFSENSE-4.1.2
Ensure no Allow Rule with Any in Source field present in the Firewall Rules
Description
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).
How it is checked
Audit method: Configuration pattern
- Pattern
<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>
How it is fixed
Fix method: Guidance or infrastructure patch
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.
Properties
- Operating systems
- Any
- Tags
- pfsensefirewall-policy
- Reference
- CIS pfSense Firewall Benchmark v1.1.0 - 4.1.2 Ensure no Allow Rule with Any in Source field present in the Firewall Rules
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
tmaegis scan --target pfsense