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.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

Configuring Accounting for Firewall Filters<br />

<strong>Juniper</strong> <strong>Networks</strong> devices can collect various kinds of data about traffic passing through<br />

the device. You can set up one or more accounting profiles that specify some common<br />

characteristics of this data, including the following:<br />

• Fields used in the accounting records<br />

• Number of files that the routing platform retains before discarding, and the number of<br />

bytes per file<br />

• Polling period that the system uses to record the data<br />

There are several types of accounting profiles: interface, firewall filter, destination class,<br />

and Routing Engine. To configure an accounting profile, include statements at the [edit<br />

accounting-options] hierarchy level. For more information, see the Junos OS Network<br />

Management <strong>Configuration</strong> <strong>Guide</strong>.<br />

To activate a firewall filter profile, include the accounting-profile statement at the [edit<br />

firewall family family-name filter filter-name] hierarchy level:<br />

[edit firewall family family-name filter filter-name]<br />

accounting-profile profile-name;<br />

If you apply the same profile name to both a firewall filter and an interface, it causes an<br />

error.<br />

The following example configures an accounting profile called fw_profile and applies it<br />

to the firewall filter called myfilter.<br />

[edit]<br />

accounting-options {<br />

filter-profile fw_profile {<br />

file fw_accounting;<br />

interval 60;<br />

counters {<br />

counter1;<br />

counter2;<br />

counter3;<br />

}<br />

}<br />

}<br />

firewall {<br />

family inet {<br />

filter myfilter {<br />

accounting-profile fw_profile;<br />

...<br />

term accept-all {<br />

then {<br />

count counter1;<br />

accept;<br />

}<br />

}<br />

}<br />

}<br />

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