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.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

to other filters. To make changes to the common desired terms, you need to make term<br />

modifications only to the filter with the common terms instead of changing terms on<br />

every filter.<br />

To configure a filter within a filter, include the filter statement at the [edit firewall filter<br />

inet filter-name term term-name] hierarchy level:<br />

term term-name {<br />

filter filter-name;<br />

}<br />

A filter within a filter cannot reference yet another filter. For example, the following<br />

configuration is not valid:<br />

[edit]<br />

firewall {<br />

filter filter-name {<br />

term t1 {<br />

filter filter-name2 {<br />

term t2 {<br />

filter filter-name3;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

You cannot configure the from or then statement under the same filter term that<br />

references a filter within a filter. For example, the following configuration is not valid:<br />

[edit]<br />

firewall {<br />

filter filter-name {<br />

term t1 {<br />

filter filter-name2 {<br />

then {<br />

accept;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Example: Configuring Nested Filters<br />

The maximum number of filters within a filter is limited to 256.<br />

Define a filter common-filter and configure it into two separate filters:<br />

[edit]<br />

firewall {<br />

filter common-filter {<br />

term t1 {<br />

from {<br />

protocol udp;<br />

port tftp;<br />

}<br />

234<br />

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

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

Saved successfully!

Ooh no, something went wrong!