Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Deactivating and Activating Rules in an 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 IDP 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. Activate the rule.
      [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 status command.

    Published: 2012-06-29