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 />

terms that apply to many or most of the interface. You can then apply each unique filter<br />

only to the specific interface for which it is defined, along with the filter or filters that<br />

apply to many interfaces. This approach gives you the flexibility of being able to update<br />

a filter that applies only to one interface without having to update the configuration for<br />

all the other interfaces.<br />

A second approach to chaining multiple firewall filters is to configure one or more filters<br />

within a filter, or nested firewall filter. To configure a nested firewall filter, you must first<br />

define each filter that you plan to nest by configuring it at the [edit firewall] hierarchy<br />

level. You then reference each filter you want to nest by including the filter filter-name<br />

statement at the [edit firewall filter filter-name family family-name term term-name]<br />

hierarchy level. You can then apply any combination of nested and standard firewall<br />

filters to interfaces as input lists or output lists. The advantage of this approach is that<br />

you can update any referenced firewall filter without having to update the nested firewall<br />

filter itself. Another advantage of nested firewall filters is that you can include a filter<br />

that you defined at the [edit firewall] hierarchy level in multiple nested filters.<br />

In the following example, you configure multiple firewall filters, each of which is applied<br />

individually as part of an input list or an output list. Configuring multiple filters that include<br />

only one term enables you to update any one filter quickly without affecting any of the<br />

other filters.<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter if1 {<br />

term 0 {<br />

from {<br />

destination-port 21;<br />

}<br />

then accept;<br />

}<br />

}<br />

filter if2 {<br />

term 0 {<br />

from {<br />

destination-port 23;<br />

}<br />

then accept;<br />

}<br />

}<br />

filter if3 {<br />

term 0 {<br />

from {<br />

destination-port 22;<br />

}<br />

then accept;<br />

}<br />

}<br />

filter of1 {<br />

term 0 {<br />

from {<br />

dscp af11;<br />

240<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!