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

}<br />

then discard;<br />

}<br />

filter filter1 {<br />

term one {<br />

from {<br />

source-address 12.1.0.0/16;<br />

}<br />

then {<br />

reject host-unknown;<br />

}<br />

}<br />

term two {<br />

from {<br />

source-address 12.2.0.0/16;<br />

}<br />

then policer pol1;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Scenario 2: Nonfirewall Objects Reference Firewall Objects<br />

When an object is configured within a logical system (but is not included in the firewall<br />

configuration for the logical system) and that object references a firewall object, the<br />

following logic is used to resolve the configuration:<br />

• If firewall configuration statements are defined within the same logical system, the<br />

[edit logical-systems logical-system-name firewall] hierarchy is searched to resolve the<br />

configuration. The main [edit firewall] hierarchy is not searched.<br />

• If no firewall configuration statements are defined within the same logical system, the<br />

firewall configuration defined at the [edit firewall] hierarchy level is searched to resolve<br />

the configuration. This search option is provided for legacy purposes. The main [edit<br />

firewall] hierarchy is searched only if firewall configuration statements are not defined<br />

within the same logical system.<br />

• Firewall configurations that belong to other logical systems are not searched.<br />

In the following example, the filter fred is applied to an interface in the logical system ls1.<br />

However, fred is defined in the main firewall configuration instead of in the ls1 firewall<br />

configuration. Therefore, in this first example, the configuration is not valid.<br />

[edit]<br />

logical-systems {<br />

ls1 {<br />

interfaces {<br />

fe-0/3/2 {<br />

unit 0 {<br />

family inet {<br />

filter {<br />

input-list [ filter1 fred ];<br />

}<br />

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

257

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

Saved successfully!

Ooh no, something went wrong!