This guide provides instructions for enabling and disabling specific WAF rules in cPFence for OLS/LS based on rule IDs.
Disable WAF Rule
To disable a specific WAF rule by ID, use the following command:
cpfence --disable-waf-rule RULE-ID
Replace RULE-ID
with the actual ID of the rule you want to disable. This command disables the specified rule and updates the configuration.
Enable WAF Rule
To re-enable a previously disabled WAF rule by ID, use the following command:
cpfence --enable-waf-rule RULE-ID
Replace RULE-ID
with the actual ID of the rule you want to enable. This command enables the specified rule and updates the configuration.