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

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

}<br />

then discard;<br />

}<br />

}<br />

Apply the bandwidth policer to rate-limit IPv4 and IPv6 traffic on interface fe-0/1/1:<br />

Configuring Load-Balance Groups<br />

[edit interfaces fe-0/1/1 unit 0 family inet]<br />

policer input new-police1;<br />

[edit interfaces fe-0/1/1 unit 0 family inet6]<br />

policer output new-police1;<br />

In addition to including policers in firewall filters, you can configure a load-balance group<br />

that is not part of a firewall filter configuration. A load-balance group contains interfaces<br />

that all use the same next-hop group characteristic to load-balance the traffic.<br />

To configure a load-balance group, include the load-balance-group statement at the<br />

[edit firewall] hierarchy level:<br />

Examples: Configuring Policing<br />

[edit firewall]<br />

load-balance-group group-name {<br />

next-hop-group [ group-names ];<br />

}<br />

Next-hop groups allow you to include multiple interfaces used to forward duplicate<br />

packets used in port mirroring. For more information about next-hop groups, see<br />

“Configuring Next-Hop Groups” on page 367.<br />

The following example shows a complete filter configuration containing a policer. It limits<br />

all FTP traffic from a given source to certain rate limits. Traffic exceeding the limits is<br />

discarded, and the remaining traffic is accepted and counted.<br />

[edit]<br />

firewall {<br />

policer policer-1 {<br />

if-exceeding {<br />

bandwidth-limit 400k;<br />

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

}<br />

then {<br />

discard;<br />

}<br />

}<br />

term tcp-ftp {<br />

from {<br />

source-address 10.2.3/24;<br />

protocol tcp;<br />

destination-port ftp;<br />

}<br />

then {<br />

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