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

log;<br />

reject host-unknown;<br />

}<br />

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

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

In many cases, a firewall configuration references objects outside the firewall<br />

configuration. As a general rule, the referenced object must be defined under the same<br />

logical system as the referencing object. However, there are cases when the configuration<br />

of the referenced object is not supported at the [edit logical-systems logical-system-name]<br />

hierarchy level.<br />

In the following example, the service filter inetsf1 references prefix list prefix1. The service<br />

set fred cannot be defined under the logical system lr1. In this case, the [edit services]<br />

hierarchy is searched for the definition of the fred service set. This configuration is allowed<br />

because the [edit logical-systems logical-system logical-system-name] hierarchy already<br />

had the capability to reference service sets outside the logical system hierarchy.<br />

[edit]<br />

logical-systems {<br />

ls1 {<br />

interfaces {<br />

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

unit 0 {<br />

family inet {<br />

service {<br />

input {<br />

service-set fred service-filter lr1inetsf1;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

}<br />

policy-options {<br />

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

261

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

Saved successfully!

Ooh no, something went wrong!