16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9: Firewall Filter <strong>Configuration</strong><br />

The following conditions match on bit-field values:<br />

• first-fragment<br />

• fragment-flags<br />

• is-fragment<br />

• tcp-established<br />

• tcp-flags<br />

• tcp-initial<br />

NOTE: The Junos OS does not automatically check the first fragment bit<br />

when matching TCP flags. For IPv4 traffic only, to include the first fragment<br />

bit, include the fragment-offset match condition. This condition is not<br />

supported for any other protocol family.<br />

Single Bit-Field Value<br />

To specify the bit-field value to match, enclose the value in quotation marks (“ ”). For<br />

example, a match occurs if the RST bit in the TCP flags field is set:<br />

tcp-flags “rst”;<br />

Generally, you specify the bits being tested using text synonyms. Bit-field match text<br />

values always map to a single bit value. You also can specify bit fields as hexadecimal<br />

or decimal numbers.<br />

To negate a match, precede the value with an exclamation point. For example, a match<br />

occurs only if the RST bit in the TCP flags field is not set:<br />

tcp-flags “!rst”;<br />

Multiple Bit-Field Values<br />

To match multiple bit-field values, use the logical operators list in Table 34 on page 225.<br />

The operators are listed in order, from highest precedence to lowest precedence.<br />

Operations are left-associative.<br />

Table 34: Bit-Field Logical Operators<br />

Logical Operator<br />

Description<br />

(...)<br />

Grouping<br />

!<br />

Negation<br />

& or +<br />

Logical AND<br />

| or ,<br />

Logical OR<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!