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 11: Policer <strong>Configuration</strong><br />

policer shared-police1 {<br />

physical-interface-policer;<br />

if-exceeding {<br />

bandwidth-limit 100m;<br />

burst-size-limit 500k;<br />

}<br />

then {<br />

discard;<br />

}<br />

}<br />

}<br />

Configuring Firewall Filters That Reference Physical Interface Policers<br />

To use a physical interface policer, you must reference it in a firewall filter. For each filter,<br />

you also configure one or more terms for which you configure match conditions to define<br />

the types of traffic on which you limit traffic. To apply the policer to traffic that meets<br />

the match conditions in a term, you configure the physical interface policer as an action<br />

for the term.<br />

To configure a firewall filter that references a physical interface policer:<br />

1. Include the physical-interface-filter statement at the [edit firewall family family-name<br />

filter filter-name] hierarchy level.<br />

NOTE: You cannot specify family any. You must configure a specific<br />

protocol family for a firewall filter that references a physical interface<br />

policer.<br />

2. Include the term term-name statement at the [edit firewall family family-name filter<br />

filter-name] hierarchy level to define a term.<br />

3. Include the from match-conditions statement at the [edit firewall family family-name<br />

filter filter-name term term-name] hierarchy level to define the characteristics that<br />

packets must have to have rate limiting performed as defined in the physical interface<br />

policer.<br />

For more information about configuring specific match conditions, see “Overview of<br />

Match Conditions in Firewall Filter Terms” on page 197.<br />

4. Include the then policer policer-name statement at the [edit firewall family family-name<br />

filter filter-name term term-name] hierarchy level to apply the specified physical<br />

interface policer as an action for the specified term. The rate-limiting parameters<br />

defined in the physical interface policer are performed on any traffic that matches<br />

the conditions defined in the term.<br />

In the following example, a firewall filter is configured that references a physical interface<br />

filter. The filter is configured with family inet as the protocol family. A term tcp-police-1<br />

is defined to match any IPv4 traffic that is received through TCP with the IP precedence<br />

fields critical-ecp, immediate, or priority. IPv4 traffic that matches these characteristics<br />

has rate limiting performed, as defined in the shared-police1 policer, which is applied as<br />

an action to the term tcp-police-1. A second term, tcp-police-2, is defined to match IPv4<br />

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

307

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

Saved successfully!

Ooh no, something went wrong!