Example: Deactivating and Reactivating Rules in a IDP Rulebase

This example shows how to deactivate and activate a rule in a rulebase.

Requirements

Before you begin:

Overview

In a rulebase, you can disable and enable rules by using the deactivate and activate commands. The deactivate command comments out the specified statement from the configuration. Rules that have been deactivated do not take effect when you issue the commit command. The activate command adds the specified statement back to the configuration. Rules that have been activated take effect when you next issue the commit command. This example shows how to deactivate and reactivate rule R2 in an IPS rulebase that is associated with a policy called base-policy.

Configuration

Step-by-Step Procedure

To deactivate and activate a rule in a rulebase:

  1. Specify the rule that you want to deactivate.
    [edit]user@host# deactivate security idp idp-policy base-policy rulebase-ips rule R2
  2. To reactivate the rule, use the activate command.
    [edit]user@host# activate security idp idp-policy base-policy rulebase-ips rule R2
  3. If you are done configuring the device, commit the configuration.
    [edit]user@host# commit

Verification

To verify the configuration is working properly, enter the show security idp command.

Related Topics