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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9: Firewall Filter <strong>Configuration</strong><br />

}<br />

then accept;<br />

}<br />

}<br />

filter of2 {<br />

term 0 {<br />

from {<br />

is-fragment;<br />

}<br />

then accept;<br />

}<br />

}<br />

filter of3 {<br />

term 0 {<br />

from {<br />

protocol ospf;<br />

}<br />

then accept;<br />

}<br />

}<br />

}<br />

}<br />

To apply the filters in this example on incoming and outbound traffic, use the input-list<br />

[ filter-names] and output-list [ filter-names] statements. In the following example, a list<br />

of three input filters and a list of three output filters are applied to the ge-1/3/0 interface.<br />

The filters are processed in the order in which they are applied.<br />

[edit]<br />

interfaces {<br />

ge-1/3/0 {<br />

unit 0 {<br />

family inet {<br />

filter {<br />

input-list [ if1 if2 if3 ];<br />

output-list [ of1 of2 of3 ];<br />

}<br />

address 1.1.1.2/30;<br />

}<br />

}<br />

}<br />

}<br />

NOTE: The input-list filter-names and output-list filter-names statements for<br />

firewall filters for the ccc and mpls protocol families are supported on all<br />

interfaces except management and internal Ethernet (fxp) interfaces,<br />

loopback (lo0) interfaces, and USB modem (umd) interfaces.<br />

Nested firewall filters also give you the ability to apply each filter within the filter in a<br />

multiple OR order. When you specify more than one match condition within a single term,<br />

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

to match. In a nested firewall filter, a packet can match either the source port as defined<br />

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

241

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

Saved successfully!

Ooh no, something went wrong!