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

in one filter within a filter, or the source address, as defined in another term or filter within<br />

a filter.<br />

In contrast, in a standard firewall filter, multiple conditions within a single term are applied<br />

in a multiple AND order. If you specify more than one match condition within a single<br />

term, both conditions (for example, source port and source address) must be met for a<br />

packet to match.<br />

An additional advantage of nested firewall filters is that if you need to update a specific<br />

filter within a filter, you can do so without having to update the nested filter itself.<br />

The following example shows a nested firewall filter configuration. First, you define the<br />

Filter f1 that you want to nest within a firewall filter. Then you reference Firewall Filter f1<br />

within the nested firewall filter, named f2. When you need to update Filter f1, you can do<br />

so without having to update Filter f2. The example also includes standard Filter f3, which<br />

you also apply as part of input list. You then apply firewall Filters f2 and f3 to interface<br />

so-1/2/3 unit 0 as an input list. You do not need to apply filter f1 directly to the interface<br />

because it is referenced in Filter f2.<br />

• Defining Filter f1<br />

[edit firewall]<br />

family inet {<br />

filter f1 {<br />

from {<br />

source-address 192.168.27.14;<br />

}<br />

then count got-one;<br />

}<br />

}<br />

• Nesting Filter f1 in Filter f2<br />

[edit firewall]<br />

family inet {<br />

filter f2 {<br />

term 1<br />

filter f1; # Reference filter f1 defined at the [edit firewall] hierarchy level.<br />

# You must reference the filter within a term. Include only the name<br />

# of the filter you want to reference.<br />

}<br />

term 2 {<br />

from {<br />

source-port 3000;<br />

}<br />

then accept;<br />

}<br />

}<br />

}<br />

• Configuring standard firewall Filter f3<br />

[edit firewall]<br />

family inet {<br />

filter f3 {<br />

term 3 {<br />

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