28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

var/etc/filters/dfwc.out to see the actions taken by the different terms in the filter.<br />

The following is some of the output for the protect-RE filter:<br />

aviva@RouterF> file show /var/etc/filters/dfwc.out<br />

**************************************************************<br />

* filter "protect-RE" protocol ip: 8 rules, 24 matches<br />

* Stage: after match reduction and useless match elimination<br />

* Optimizations: max-reduction,skip,flatness,level-compress,<br />

* max-level-compress,branch,action-elimination<br />

**************************************************************<br />

rule "ospf-neighbors" matches 3<br />

match protocol unreferenced type range<br />

ranges 1<br />

89<br />

match source-address unreferenced type addrmask<br />

number of address-masks: 2<br />

10.0.8/24<br />

10.0.13/24<br />

match action unreferenced type action<br />

accept<br />

rule "dns-servers" matches 4<br />

match protocol unreferenced type range<br />

ranges 1<br />

17<br />

match port unreferenced type range<br />

ranges 1<br />

53<br />

match source-address unreferenced type addrmask<br />

number of address-masks: 1<br />

10/8<br />

match action unreferenced type action<br />

accept<br />

The header shows the name of the filter and the number of rules (terms) it has, along<br />

with the number of packets that have matched:<br />

* filter "protect-RE" protocol ip: 8 rules, 24 matches<br />

Again, because the firewall filter is fairly complicated, here is the complete configuration<br />

so you can see the structure:<br />

[edit firewall]<br />

aviva@RouterF# show<br />

filter protect-RE {<br />

term bgp-peers {<br />

from {<br />

source-address {<br />

10.0.8.0/24;<br />

10.0.13.0/24;<br />

}<br />

destination-port bgp;<br />

}<br />

then accept;<br />

}<br />

term ospf-neighbors {<br />

324 | Chapter 9: Routing Policy and Firewall Filters<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!