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

[edit]<br />

firewall {<br />

family inet6 {<br />

filter tcpfilt {<br />

term 1 {<br />

from {<br />

next-header tcp;<br />

tcp-flags syn;<br />

}<br />

then {<br />

count tcp_syn_pkt;<br />

log;<br />

accept;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Example: Setting a Rate Limit for Incoming Layer 2 Control Packets<br />

Configure rate limiting for incoming Layer 2 control packets. In order to meet this<br />

requirement, you must configure an input filter with the family type any and apply this<br />

filter to the interface:<br />

[edit]<br />

firewall {<br />

policer p1 {<br />

if-exceeding {<br />

bandwidth-limit 5m;<br />

burst-size-limit 10m;<br />

}<br />

then discard;<br />

}<br />

policer p2 {<br />

if-exceeding {<br />

bandwidth-limit 40m;<br />

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

}<br />

then discard;<br />

}<br />

policer p3 {<br />

if-exceeding {<br />

bandwidth-limit 600m;<br />

burst-size-limit 1g;<br />

}<br />

then discard;<br />

}<br />

interface-set ifset {<br />

fe-*;<br />

}<br />

family any {<br />

filter L2-filter {<br />

term t1 {<br />

from {<br />

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

251

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

Saved successfully!

Ooh no, something went wrong!