Firewall Filter Match Conditions for VPLS Traffic
In the from
statement in the VPLS filter term, you specify conditions that the
packet must match for the action in the then
statement to be taken. All
conditions in the from
statement must match for the action to be taken. The
order in which you specify match conditions is not important, because a packet must match all the
conditions in a term for a match to occur.
If you specify no match conditions in a term, that term matches all packets.
An individual condition in a from
statement can contain a list of values. For
example, you can specify numeric ranges. You can also specify multiple source addresses or
destination addresses. When a condition defines a list of values, a match occurs if one of the
values in the list matches the packet.
Individual conditions in a from
statement can be negated. When you negate a
condition, you are defining an explicit mismatch. For example, the negated match condition for
forwarding-class
is forwarding-class-except
. If a packet
matches a negated condition, it is immediately considered not to match the from
statement, and the next term in the filter is evaluated, if there is one. If there are no more
terms, the packet is discarded.
You can configure a firewall filter with match conditions for Virtual Private LAN Service
(VPLS) traffic (family vpls
). Table 1 describes the match-conditions
you can configure at the
[edit firewall family vpls filter filter-name term
term-name from]
hierarchy level.
Not all match conditions for VPLS traffic are supported on all routing platforms or switching platforms. A number of match conditions for VPLS traffic are supported only on MX Series 5G Universal Routing Platforms.
In the VPLS documentation, the word router in terms such as PE router is used to refer to any device that provides routing functions.
Match Condition |
Description |
|
---|---|---|
|
Match the destination media access control (MAC) address of a VPLS packet. |
|
|
(MX Series routers and EX Series switches only) Match the UDP or TCP destination port field. You cannot specify both the In place of the numeric value, you can specify one of the following
text synonyms (the port numbers are also listed): |
|
|
(MX Series routers and EX Series switches only) Do not match on the TCP or UDP destination
port field. You cannot specify both the |
|
|
(ACX Series routers, MX Series routers, and EX Series switches only) Match destination
prefixes in the specified list. Specify the name of a prefix list defined at the
Note:
VPLS prefix lists support only IPv4 addresses. IPv6 addresses included in a VPLS prefix list will be discarded. |
|
|
(MX Series routers and EX Series switches only) Do not match destination prefixes in the
specified list. For more information, see the |
|
|
(MX Series routers and EX Series switches only) Match the Differentiated Services code point (DSCP). The DiffServ protocol uses the type-of-service (ToS) byte in the IP header. The most significant 6 bits of this byte form the DSCP. For more information, see the Understanding How Behavior Aggregate Classifiers Prioritize Trusted Traffic. You can specify a numeric value from In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed):
|
|
|
(MX Series routers and EX Series switches only) Do not match on the DSCP. For details, see
the |
|
|
Match the 2-octet IEEE 802.3 Length/EtherType field to the specified value or list of values. You can specify decimal or hexadecimal values from 0 through 65535 (0xFFFF). A value from 0 through 1500 (0x05DC) specifies the length of an Ethernet Version 1 frame. A value from 1536 (0x0600) through 65535 specifies the EtherType (nature of the MAC client protocol) of an Ethernet Version 2 frame. In place of the numeric value, you can specify one of the following text synonyms (the
hexadecimal values are also listed): |
|
|
Do not match the 2-octet Length/EtherType field to the specified value or list of values. For details about specifying the |
|
|
|
Starting in Junos OS 14.2, flexible offset filters are supported in firewall hierarchy configurations. Length of the data to be matched in bits, not needed for string input (0..128) |
|
Bit offset after the (match-start + byte) offset (0..7) |
|
|
Byte offset after the match start point |
|
|
Select a flexible match from predefined template field |
|
|
Mask out bits in the packet data to be matched |
|
|
Start point to match in packet |
|
|
Value data/string to be matched |
|
|
|
Length of the data to be matched in bits (0..32) |
|
Bit offset after the (match-start + byte) offset (0..7) |
|
|
Byte offset after the match start point |
|
|
Select a flexible match from predefined template field |
|
|
Start point to match in packet |
|
|
Range of values to be matched |
|
|
Do not match this range of values |
|
|
Match the forwarding class. Specify |
|
|
Do not match the forwarding class. For details, see the |
|
|
Match the ICMP message code field. If you configure this match condition, we recommend that you also configure the
If you configure this match condition, you must also configure the In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed). The keywords are grouped by the ICMP type with which they are associated:
|
|
|
Do not match the ICMP message code field. For details, see the |
|
|
(MX Series routers and EX Series switches only) Match the ICMP message code field. If you configure this match condition,
we recommend that you also configure the If you configure this match condition, you must also
configure the In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed). The keywords are grouped by the ICMP type with which they are associated:
|
|
|
(MX Series routers and EX Series switches only) Do not match on the ICMP code
field. For details, see the |
|
|
Interface on which the packet was received. You can configure a match condition that matches packets based on the interface on which they were received. Note:
If you configure this match condition with an interface that does not exist, the term does not match any packet. |
|
|
Match the logical interface on which the packet was received to the specified interface
group or set of interface groups. For To assign a logical interface to an interface group
For more information, see Filtering Packets Received on a Set of Interface Groups Overview. Note:
This match condition is not supported on T4000 Type 5 FPCs. |
|
|
Do not match the logical interface on which the packet was received to the specified
interface group or set of interface groups. For details, see the
Note:
This match condition is not supported on T4000 Type 5 FPCs. |
|
|
Match the interface on which the packet was received to the specified interface set. To define an interface set, include the |
|
|
(MX Series routers and EX Series switches only) 32-bit address that supports the standard syntax for IPv4 addresses. Note that when using this term, the match condition ether-type IPv4 must be defined on the same term. |
|
|
(MX Series routers and EX Series switches only) 32-bit address that is the final destination node address for the packet. Note that when using this term, the match condition ether-type IPv4 must be defined on the same term. |
|
|
(MX Series routers and EX Series switches only) IP precedence field. In place of the
numeric field value, you can specify one of the following text synonyms (the field values
are also listed): |
|
|
(MX Series routers and EX Series switches only) Do not match on the IP precedence field. |
|
|
(MX Series routers and EX Series switches only) IP protocol field. |
|
|
(MX Series routers and EX Series switches only) Do not match on the IP protocol field. |
|
|
(MX Series routers and EX Series switches only) IP address of the source node sending the packet. Note that when using this term, the match condition ether-type IPv4 must also be defined on the same term. |
|
|
(MX Series only) Match the IPv6 source address in a named-list. |
|
|
(MX Series and EX9200 only) 128-bit address that supports the standard syntax for IPv6 addresses. Starting in Junos OS 14.2, firewall family bridge IPv6 match criteria is supported on MX Series and EX9200 switches. |
|
|
((MX Series and EX9200 only) 128-bit address that is the final destination node address
for this packet. Note that when using this term, the match condition |
|
|
(MX Series only) Match the IPv6 destination addresses in a named-list. |
|
|
(MX Series only) Match IPv6 next header protocol type. The following list shows the supported values for protocol:
|
|
|
(MX Series only) Do not match the IPv6 next header protocol type. |
|
|
(MX Series only) Match IPv6 payload protocol type. The following list shows the supported values for protocol:
|
|
|
(MX Series only) Do not match the IPv6 payload protocol. |
|
|
(MX Series only) Match the IPv6 address in a named-list. |
|
|
(MX Series only) 128-bit address that is the originating source node address for this packet. |
|
|
(MX Series only) Differentiated Services code point (DSCP). The DiffServ protocol uses the type-of-service (ToS) byte in the IP header. The most significant 6 bits of this byte form the DSCP. For more information, see Understanding How Behavior Aggregate Classifiers Prioritize Trusted Traffic. You can specify a numeric value from In place of the numeric value, you can specify one of the following text synonyms (the field values are also listed):
|
|
|
Do not match the DSCP |
|
|
(MX Series routers, M320 router, and EX Series switches only) Match on the IEEE 802.1p
learned VLAN priority bits in the provider VLAN tag (the only tag in a single-tag frame with
802.1Q VLAN tags or the outer tag in a dual-tag frame with 802.1Q VLAN tags). Specify a
single value or multiple values from Compare with the Note:
This match condition supports the presence of a control word for MX Series routers and the M320 router. |
|
|
(MX Series routers, M320 router, and EX Series switches only) Do not match on the
IEEE 802.1p learned VLAN priority bits. For details, see the
Note:
This match condition supports the presence of a control word for MX Series routers and the M320 router. |
|
|
(MX Series routers and EX Series switches only) Match the user VLAN ID drop eligability indicator (DEI) bit. |
|
|
(MX Series routers and EX Series switches only) Do not match the user VLAN ID DEI bit. |
|
|
(MX Series routers and EX Series switches only) VLAN identifier used for MAC learning. |
|
|
(MX Series routers and EX Series switches only) Do not match on the VLAN identifier used for MAC learning. |
|
|
Packet loss priority (PLP) level. Specify a single level or multiple levels:
Supported on M120 and M320 routers; M7i and M10i routers with the Enhanced CFEB (CFEB-E); and MX Series routers. For IP traffic on M320, MX Series, and T Series routers with Enhanced II Flexible PIC
Concentrators (FPCs) and EX Series switches, you must include the For information about the |
|
|
Do not match on the packet loss priority level. Specify a single level or multiple levels:
For information about using behavior aggregate (BA) classifiers to set the PLP level of incoming packets, see Understanding How Behavior Aggregate Classifiers Prioritize Trusted Traffic. |
|
|
(MX Series routers and EX Series switches only) TCP or UDP source or destination port. You
cannot specify both the |
|
|
(MX Series routers and EX Series switches only) Do not match on the TCP or UDP source or
destination port. You cannot specify both the |
|
|
(MX Series routers and EX Series switches only) Match the destination or source prefixes
in the specified list. Specify the name of a prefix list defined at the Note:
VPLS prefix lists support only IPV4 addresses. IPV6 addresses included in a VPLS prefix list will be discarded. |
|
|
(MX Series routers and EX Series switches only) Do not match the destination or source
prefixes in the specified list. For more information, see the
|
|
|
Source MAC address of a VPLS packet. |
|
|
(MX Series routers and EX Series switches only) TCP or UDP source port field. You cannot
specify the |
|
|
(MX Series routers and EX Series switches only) Do not match on the TCP or UDP source port
field. You cannot specify the |
|
|
(ACX Series routers, MX Series routers, and EX Series switches only) Match the source
prefixes in the specified prefix list. Specify a prefix list name defined at the
Note:
VPLS prefix lists support only IPV4 addresses. IPV6 addresses included in a VPLS prefix list will be discarded. |
|
|
(MX Series routers and EX Series switches only) Do not match the source prefixes in the
specified prefix list. For more information, see the |
|
|
Match one or more of the low-order 6 bits in the 8-bit TCP flags field in the TCP header. To specify individual bit fields, you can specify the following text synonyms or hexadecimal values:
In a TCP session, the SYN flag is set only in the initial packet sent, while the ACK flag is set in all packets sent after the initial packet. You can string together multiple flags using the bit-field logical operators. If you configure this match condition for IPv6
traffic, we recommend that you also configure the |
|
|
(MX Series routers and EX Series switches only) Traffic type. Specify
|
|
|
(MX Series routers and EX Series switches only) Do not match on the traffic type. Specify
|
|
|
(MX Series routers, M320 router, and EX Series switches only) Match on the IEEE 802.1p
user priority bits in the customer VLAN tag (the inner tag in a dual-tag frame with 802.1Q
VLAN tags). Specify a single value or multiple values from Compare with the Note:
This match condition supports the presence of a control word for MX Series routers and the M320 router. |
|
|
(MX Series routers, M320 rouer, and EX Series switches only) Do not match on the IEEE
802.1p user priority bits. For details, see the Note:
This match condition supports the presence of a control word for MX Series routers and the M320 router. |
|
|
(MX Series routers and EX Series switches only) Match the first VLAN identifier that is part of the payload. |
|
|
(MX Series routers and EX Series switches only) Do not match on the first VLAN identifier that is part of the payload. |
|
|
VLAN Ethernet type field of a VPLS packet. |
|
|
Do not match on the VLAN Ethernet type field of a VPLS packet. |
For matches flexible-match-mask
and flexible-match-range
match-start layer-4 used to match over IPV6 header will not work for L2 family filters such as
"bridge, CCC, VPLS". Instead, use layer-3 with appropriate offset to match over IPV6 payload
fields.
Commit check issues an error if traffic-type
known-unicast
or traffic-type
unknown-unicast
is unsupported.
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.