The IDP rule-matching algorithm starts from the top of the rulebase
and checks traffic against all rules in the rulebase that match the
specified match conditions. You determine the sequence in which rules
are applied to network traffic by placing them in the desired order.
When you add a rule to the rulebase, it is placed at the end of the
existing list of rules. To place a rule in any other location than
at the end of the rulebase, you insert the rule
at the desired location in the rulebase.
Define the position of the rule in the rulebase
based on the order in which you want the rule to be evaluated. The
following configuration statement places rule R2 before rule R1 in the IPS rulebase in a policy called base-policy:
If you are finished configuring the router,
commit the configuration.
From configuration mode in the CLI, enter the show security idp command to verify the configuration. For more
information, see the JUNOS Software CLI Reference.