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

family inet {<br />

filter router-alert {<br />

term 10 {<br />

from {<br />

ip-options any;<br />

}<br />

then {<br />

count option-any;<br />

discard;<br />

}<br />

}<br />

term 999 {<br />

then accept;<br />

}<br />

}<br />

}<br />

Example: Accepting OSPF Packets from Certain Addresses<br />

Accept only OSPF packets from an address in the prefix 10.108.0.0/16, discarding all<br />

other packets with an administratively-prohibited ICMP message:<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter ospf-filter {<br />

term term1 {<br />

from {<br />

source-address {<br />

10.108.0.0/16;<br />

}<br />

protocol ospf;<br />

}<br />

}<br />

term default-term {<br />

then {<br />

reject administratively-prohibited; # default reject action<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Example: Matching Packets Based on Two Unrelated Criteria<br />

Match packets that are either OSPF packets or packets that come from an address in<br />

the prefix 10.108/16, and send an administratively-prohibited ICMP message for all packets<br />

that do not match:<br />

[edit]<br />

firewall {<br />

family inet {<br />

filter ospf-or-131 {<br />

term protocol-match {<br />

from {<br />

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