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

Apr 7 15:48:55 192.168.9.194 192.168.9.195 0 0 1 0x0 84 8 0x0 0x0<br />

Apr 7 15:48:56 192.168.9.194 192.168.9.195 0 0 1 0x0 84 8 0x0 0x0<br />

NOTE: When you enable reverse path forwarding (RPF) on an interface with<br />

an input filter for firewall log and count, the input firewall filter does not log<br />

the packets rejected by RPF, although the rejected packets are counted. To<br />

log the rejected packets, use an RPF check fail filter.<br />

For more information about sampling output, see “Applying Filters to Forwarding Tables”<br />

on page 363.<br />

Example: Setting the DSCP Bit to Zero<br />

Set the DSCP bit to 0 (zero) using a firewall filter:<br />

firewall {<br />

filter filter1 {<br />

term 1 {<br />

from {<br />

dscp 2;<br />

}<br />

then {<br />

dscp 0;<br />

forwarding-class best-effort;<br />

}<br />

}<br />

term 2 {<br />

from {<br />

dscp 3;<br />

}<br />

then {<br />

forwarding-class best-effort;<br />

}<br />

}<br />

}<br />

}<br />

Apply this filter to the logical interface corresponding to the VPN routing and forwarding<br />

(VRF) instance:<br />

interfaces so-0/1/0 {<br />

unit 0 {<br />

family inet {<br />

filter input filter1;<br />

}<br />

}<br />

}<br />

Configuring Nested Firewall Filters<br />

You can configure a filter within the term of another filter to minimize the work needed<br />

to configure terms common to numerous filters. Each firewall filter consists of one or<br />

more terms. You can configure one filter with the common desired terms, and apply them<br />

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

233

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

Saved successfully!

Ooh no, something went wrong!