Parameterized Filter Nonterminating and Terminating Actions and Modifiers
The nonterminating and terminating actions and modifiers for parameterized filters are a subset of those available for static firewall filters.
You cannot configure the next term
nonterminating action with a terminating action in the same filter term. However, you can configure the next term
action with another nonterminating action in the same filter term.
Nonterminating actions carry with them an implicit accept action. In this context, nonterminating means that other actions can follow these actions, whereas no other actions can follow a terminating action.
Table 1 describes the nonterminating actions and modifiers you can configure for a parameterized filter term.
Nonterminating Action |
Description |
Protocol Families |
---|---|---|
|
Count the packet in the named counter. |
|
|
Set the IPv4 Differentiated Services code point (DSCP)
bit. You can specify a numerical value from The default DSCP value is best effort, that is, You can also specify one of the following text synonyms:
|
|
|
Classify the packet to the named forwarding class:
|
|
|
Police the packet using the specified hierarchical policer. |
|
|
Log the packet header information in a buffer within
the Packet Forwarding Engine. You can access this information by issuing
the Note:
The Layer 2 (L2) families log action is available only for MX Series routers with MPCs (MPC mode if the router has only MPCs, or mix mode if it has MPCs and DCPs). For MX Series routers with DPCs, the log action for L2 families is ignored if configured. |
|
|
Set the packet loss priority (PLP) level. You cannot also configure the For IP traffic on MX Series routers with Enhanced II Flexible
PIC Concentrators (FPCs), you must include the For information about the |
|
|
Proceed to the next filter term. |
|
|
(MX Series) Direct packets to the specified destination
IPv4 address. You can optionally specify a routing instance for the
address. In the following example, the variables $IP-address and $RT-name
would be defined in [edit dynamic-profiles service-profile-name firewall family inet filter $nextip] user@host# set term t1 then next-ip $IP-address routing-instance $RT-name Supported starting in Junos OS Release 18.2R1. |
|
|
(MX Series) Direct packets to the specified destination
IPv6 address. You can optionally specify a routing instance for the
address. In the following example, the variables $IPv6-address and
$RT-name would be defined in [edit dynamic-profiles service-profile-name firewall family inet filter $nextip6] user@host# set term t1 then next-ip6 $IPv6-address routing-instance $RT-name Supported starting in Junos OS Release 18.2R1. |
|
|
Name of policer to use to rate-limit traffic. |
|
|
Port-mirror the packet based on the specified family. We recommend
that you do not use both the |
|
|
Port-mirror a packet for an instance. This action is supported only on the MX Series routers. We recommend
that you do not use both the |
|
|
Direct packets to the specified routing instance. |
|
|
Sample the packet. Note:
Junos OS does not sample packets originating from the router. If you configure a filter and apply it to the output side of an interface, then only the transit packets going through that interface are sampled. Packets that are sent from the Routing Engine to the Packet Forwarding Engine are not sampled. |
|
|
Use the inline counting mechanism when capturing subscriber per-service statistics. Count the packet for service accounting. The count is applied
to a specific named counter ( The |
|
|
Use the deferred counting mechanism when capturing subscriber
per-service statistics. The count is applied to a specific named counter
( The |
|
|
(Only if the Indicate to subsequent filters in the chain that the packet
was already processed. This action, coupled with the |
|
|
Police the packet using the specified single-rate or two-rate three-color-policer. Note:
You cannot also configure the |
|
|
Specify the traffic-class code point. You can specify
a numerical value from The default traffic-class value is best effort, that is, In place of the numeric value, you can specify one of the following text synonyms:
|
|
Table 2 describes the terminating actions and modifiers you can configure for a parameterized filter term.
Terminating Action |
Description |
Protocol Families |
---|---|---|
accept |
Accept the packet. |
|
|
Discard a packet silently, without sending an Internet Control Message Protocol (ICMP) message. Discarded packets are available for logging and sampling. |
|
|
Reject the packet and return an ICMPv4 or ICMPv6 message:
Note:
Rejected packets can be sampled or logged if you configure
the The |
|