Firewall Filter Match Conditions for IPv6 Traffic
You can configure a firewall filter with match conditions for Internet Protocol version 6
(IPv6) traffic (family inet6
).
For MX Series routers with MPCs, you need to initialize the filter counter for Trio-only
match filters by walking the corresponding SNMP MIB, for example, show snmp mib walk name ascii
. This forces Junos to learn the filter counters and ensure that
the filter statistics are displayed. This guidance applies to all enhanced mode firewall filters,
filters with flexible conditions, and filters with the certain terminating actions. See those
topics, listed under Related Documentation, for details.
Table 1 describes the match conditions you can configure at the
[edit firewall family inet6 filter filter-name term
term-name from]
hierarchy level.
Match Condition |
Description |
|
---|---|---|
|
Match the IPv6 source or destination address field
unless the |
|
|
Match the IPv6 destination address field unless
the You cannot specify both the |
|
|
Match the UDP or TCP destination port field. You cannot specify both the If you configure this match condition, we recommend that
you also configure the In place of the numeric value, you can specify one of the following text
synonyms (the port numbers are also listed):
|
|
|
Do not match the UDP or TCP destination port field.
For details, see the |
|
|
Match the IPv6 destination prefix to the specified
list unless the The prefix list is defined at the |
|
|
Match an extension header type that is contained in the packet by identifying a Next Header value. Note:
This match condition is only supported on MPCs in MX Series routers. In the first fragment of a packet, the filter searches for a match in any of the extension header types. When a packet with a fragment header is found (a subsequent fragment), the filter only searches for a match of the next extension header type because the location of other extension headers is unpredictable. In place of the numeric value, you can specify one of the following text synonyms (the
field values are also listed): To match any value for the extension header option, use the text
synonym For MX Series routers with MPCs, initialize new firewall filters that include this condition by walking the corresponding SNMP MIB. |
|
|
Do not match an extension header type that is contained in the packet. For details,
see the Note:
This match condition is only supported on MPCs in MX Series routers. |
|
|
Match if the packet is the first fragment. |
|
|
|
Length of integer input (1..32 bits); (Optional) Length of string input (1..128 bits) |
|
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 |
|
Ranges should use the following format: Integer-Integer |
|
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 of the packet. Specify |
|
|
Do not match the forwarding class of the packet.
For details, see the |
|
|
Match the hop limit to the specified hop limit
or set of hop limits. For Supported on interfaces hosted on MICs or MPCs in MX Series routers only. Note:
This match condition is supported on PTX series routers when |
|
|
Do not match the hop limit to the specified hop
limit or set of hop limits. For details, see the Supported on interfaces hosted on MICs or MPCs in MX Series routers only. Note:
This match condition is supported on PTX series routers when |
|
|
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 |
|
|
Match the ICMP message type field. If you configure this match
condition, we recommend that you also configure the In place of the
numeric value, you can specify one of the following text synonyms (the field values are also
listed): For |
|
|
Do not match the ICMP message type field. For details,
see the |
|
|
Match if the packet is a fragment. |
|
|
Match if the packet is the last fragment. |
|
|
Match the packet loss priority (PLP) level. Specify a single level or multiple levels: For IP traffic on MX Series routers with Enhanced II Flexible PIC Concentrators (FPCs), you must
include the |
|
|
Do not match the PLP level. For details, see the |
|
|
Match the first 8-bit Next Header field in the packet. Support for the For IPv6, we recommend that you use the Match the first 8-bit Next Header field in the packet. In place of the numeric value, you can specify one of the following text synonyms (the
field values are also listed): Note:
|
|
|
Do not match the 8-bit Next Header field that identifies
the type of header between the IPv6 header and payload. For details, see the |
|
|
Match the length of the received packet, in bytes. The length refers only to the IP packet, including the packet header, and does not include any Layer 2 encapsulation overhead. |
|
|
Do not match the length of the received packet,
in bytes. For details, see the |
|
|
Match the payload protocol type. In place of the You can also use the Note:
This match condition is only supported on MPCs on MX Series Routers. Initialize new firewall filters that include this condition by walking the corresponding SNMP MIB. |
|
|
Do not match the payload protocol type. For details,
see the Note:
This match condition is only supported on MPCs on MX Series Routers |
|
|
Match the UDP or TCP source or destination port field. If you configure this match condition, you cannot configure the If you configure this match condition, we recommend that
you also configure the In place of the numeric value, you can specify one of the text
synonyms listed under |
|
|
Do not match the UDP or TCP source or destination
port field. For details, see the |
|
|
Match the prefixes of the source or destination
address fields to the prefixes in the specified list unless
the The prefix list is defined at the |
|
|
Match a packet received from a filter where a |
|
|
Match the IPv6 address of the source node sending
the packet unless the You cannot specify both the |
|
|
Match the UDP or TCP source port field. You cannot specify the If you configure this match condition, we recommend that
you also configure the In place of the numeric value, you can specify one of the text
synonyms listed with the |
|
|
Do not match the UDP or TCP source port
field. For details, see the |
|
|
Match the IPv6 address prefix of the packet source
field unless the Specify a prefix list name defined at the |
|
|
Match TCP packets other than the first packet of
a connection. This is a text synonym for Note:
This condition does not implicitly check that the protocol is TCP. To check this,
specify the If you configure this match condition, we recommend that you also configure 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. For combined bit-field match conditions, see the If you configure this match condition, we
recommend that you also configure the |
|
|
Match the initial packet of a TCP connection. This
is a text synonym for This condition does not implicitly check that the protocol is TCP. If you configure
this match condition, we recommend that you also configure the |
|
|
Match the 8-bit field that specifies the class-of-service (CoS) priority of the packet. This field was previously used as the type-of-service (ToS) field in IPv4. 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 8-bit field that specifies the
CoS priority of the packet. For details, see the |
If you specify an IPv6 address in a match condition (the address
,
destination-address
, or source-address
match
conditions), use the syntax for text representations described in RFC 4291, IP
Version 6 Addressing Architecture.