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.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

then {<br />

accept;<br />

}<br />

}<br />

}<br />

To apply this filter to an interface, include the rpf-check fail-filter statement at the [edit<br />

interface interface-name unit logical-unit-number family family-name] hierarchy level:<br />

[edit interface interface-name unit logical-unit-number family inet]<br />

rpf-check fail-filter rpf-dhcp;<br />

Example: Defining a Policer for a Destination Class<br />

Define a policer for destination class class1:<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter filter1 {<br />

policer police-class1 {<br />

if-exceeding {<br />

bandwidth-limit 25;<br />

burst-size-limit 1000;<br />

}<br />

then {<br />

discard;<br />

}<br />

}<br />

term term1 {<br />

from {<br />

destination-class class1;<br />

}<br />

then {<br />

policer police-class1;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Example: Counting IP Option Packets<br />

Count individual IP option packets, but do not block any traffic. Also, log packets that<br />

have loose or strict source routing:<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter ip-option-filter {<br />

term match-strictsource {<br />

from {<br />

ip-options strict-source-route;<br />

}<br />

then {<br />

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