| 1 |
.\" |
| 2 |
.\" Argus-5.0 Software |
| 3 |
.\" Copyright (c) 2000-2024 QoSient, LLC |
| 4 |
.\" All rights reserved. |
| 5 |
.\" |
| 6 |
.\" |
| 7 |
.TH RAPOLICY 1 "09 July 2023" "rapolicy 5.0.3" |
| 8 |
.SH NAME |
| 9 |
\fBrapolicy\fP \- compare a \fBargus(8)\fP data file/stream against a Cisco Access Control List. |
| 10 |
.SH SYNOPSIS |
| 11 |
.B rapolicy |
| 12 |
.B -r |
| 13 |
.I argus-file [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP] |
| 14 |
.SH DESCRIPTION |
| 15 |
.IX "rapolicy command" "" "\fLrapolicy\fP \(em argus data" |
| 16 |
.LP |
| 17 |
.B Rapolicy |
| 18 |
reads |
| 19 |
.BR argus |
| 20 |
data from an \fIargus-file\fP list, and tests the argus data |
| 21 |
stream against a Cisco access control list configuration file |
| 22 |
.B Rapolicy |
| 23 |
can do many things as defined by its configuration file. The configuration |
| 24 |
file in not optional and the example below is well commented. The ACL file is |
| 25 |
specified in the configuration file. |
| 26 |
.SH OPTIONS |
| 27 |
\fBRapolicy\fP, like all \fBra\fP based clients, supports a large |
| 28 |
number of options. Options that have specific meaning to \fBrapolicy\fP |
| 29 |
are: |
| 30 |
|
| 31 |
.nf |
| 32 |
-f <rapolicy configuration file> defines the actions of the client. |
| 33 |
-D 3 Print the output of the state event machine. |
| 34 |
|
| 35 |
See \fBra(1)\fP for a complete description of \fBra options\fP. |
| 36 |
.SH EXAMPLE INVOCATION |
| 37 |
.B rapolicy |
| 38 |
-f rapolicy.conf |
| 39 |
-r argus.file |
| 40 |
.nf |
| 41 |
.SH CISCO ACL SYNTAX |
| 42 |
\fBRapolicy\fP handles both standard and extended, numbered and named |
| 43 |
Cisco Access Control Lists |
| 44 |
.SH EXAMPLE CONFIGURATION |
| 45 |
This example is provided as an example only. |
| 46 |
|
| 47 |
.nf |
| 48 |
|
| 49 |
# |
| 50 |
# Argus Software |
| 51 |
# Copyright (c) 2000-2024 QoSient, LLC |
| 52 |
# All rights reserved. |
| 53 |
# |
| 54 |
# This program is free software; you can redistribute it and/or modify |
| 55 |
# it under the terms of the GNU General Public License as published by |
| 56 |
# the Free Software Foundation; either version 2, or (at your option) |
| 57 |
# any later version. |
| 58 |
# |
| 59 |
# This program is distributed in the hope that it will be useful, |
| 60 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 61 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 62 |
# GNU General Public License for more details. |
| 63 |
# |
| 64 |
# You should have received a copy of the GNU General Public License |
| 65 |
# along with this program; if not, write to the Free Software |
| 66 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 67 |
# |
| 68 |
# |
| 69 |
# Example rapolicy.conf |
| 70 |
# |
| 71 |
# Rapolicy, like most ra* programs, can read a program specific |
| 72 |
# configuration file. This is an example configuration for rapolicy() |
| 73 |
# that provides the opportunity to modify the default behavior of |
| 74 |
# parsing a Cisco ACL definition, and reporting on flows that match |
| 75 |
# aspects of the policy defined by the ACL. |
| 76 |
# |
| 77 |
# This file is read by rapolicy() from the command line using the |
| 78 |
# " -f rapolicy.conf " option. |
| 79 |
# |
| 80 |
# RA_POLICY_DUMP_POLICY is a debugging aid. If it is set to yes, then rapolicy() will read |
| 81 |
# and parse the ACL file and output an English language description of the actions associated |
| 82 |
# with each ACL entry. After outputting the explaination, rapolicy will exit. |
| 83 |
|
| 84 |
RA_POLICY_DUMP_POLICY="yes" |
| 85 |
|
| 86 |
# The rapolicy client parses a Cisco IOS ACL and constructs a filter which is used |
| 87 |
# to permit or deny flows. Under normal circumstances the packets meeting the |
| 88 |
# criteria for a permit rule are output by the client. There are circumstances where |
| 89 |
# it is useful to see the flows that are dropped. RA_POLICY_SHOW_WHICH can be set |
| 90 |
# to a value of "deny" in these cases. |
| 91 |
|
| 92 |
RA_POLICY_SHOW_WHICH="permit" |
| 93 |
|
| 94 |
# Under normal operating conditions, only the flow records that match a permit |
| 95 |
# or a deny rule (depending on the value of RA_POLICY_SHOW_WHICH) are output. In |
| 96 |
# some instance like baselining the actions of an ACL, the goal is to have a fully |
| 97 |
# labeled set of flows regardless of the ACL's permit or deny determination. In these |
| 98 |
# instances, a value of yes for RA_POLICY_JUST_LABEL will allow the full processing of |
| 99 |
# the flows and will label them according to the settings of the label flags but all of |
| 100 |
# the flows handled by the ACL will be output |
| 101 |
|
| 102 |
RA_POLICY_JUST_LABEL="no" |
| 103 |
|
| 104 |
# A Cisco IP ACL normally has no impact on non-IP traffic eg: ARP, DDCMP, Slotted-Aloha |
| 105 |
# RA_POLICY_PERMIT_OTHERS can be set to "yes" for the normal behavior or "no" to block |
| 106 |
# non-IP traffic |
| 107 |
|
| 108 |
RA_POLICY_PERMIT_OTHERS="yes" |
| 109 |
|
| 110 |
|
| 111 |
# The rapolicy client can add a label to a flow indicating the action (permit, deny, |
| 112 |
# or implictDeny), the ACL name or number) and the line within the ACL that caused the |
| 113 |
# action. |
| 114 |
# |
| 115 |
# if RA_POLICY_LABEL_LOG is set to "yes" labels will be added to flows matching ACL |
| 116 |
# entries that have a log qualifier. |
| 117 |
|
| 118 |
RA_POLICY_LABEL_LOG="no" |
| 119 |
|
| 120 |
# If RA_POLICY_LABEL_ALL is set to "yes" regardless of the value of RA_POLICY_LABEL_LOG, |
| 121 |
# any flow that matches an ACL entry will be labeled |
| 122 |
|
| 123 |
RA_POLICY_LABEL_ALL="no" |
| 124 |
|
| 125 |
# Every Cisos IOS ACL has an implicit deny as its last entry. Flows that do not match any |
| 126 |
# ACL entry are usually dropped silently. RA_POLICY_LABEL_IMPLICIT will label flows that |
| 127 |
# are dropped by the implicit deny rule. Under normal circumstances, these flows are not |
| 128 |
# labeled. The values of RA_POLICY_LABEL_ALL and RA_POLICY_LABEL_LOG do not govern the |
| 129 |
# labeling of these flows. |
| 130 |
|
| 131 |
RA_POLICY_LABEL_IMPLICIT="no" |
| 132 |
|
| 133 |
# The ACL is contained in a standard ASCII text file which is identified by the value of |
| 134 |
# RA_POLICY_ACL_FILE Since rapolicy is not designed to be a syntax checker, it is a |
| 135 |
# good idea to create the ACL on a Cisco device and take the output of show running |
| 136 |
# (or the appropriate equivalent command) as the input ACL for rapolicy() |
| 137 |
# The policy file should be defined as the last item in the rapolicy.conf file |
| 138 |
# or there may be unexpected side effects |
| 139 |
|
| 140 |
RA_POLICY_ACL_FILE="/tmp/ACL03.txt" |
| 141 |
|
| 142 |
.fi |
| 143 |
|
| 144 |
.SH COPYRIGHT |
| 145 |
Copyright (c) 2000-2024 QoSient. All rights reserved. |
| 146 |
.SH AUTHORS |
| 147 |
.nf |
| 148 |
Carter Bullard ([email protected]). |
| 149 |
David Edelman ([email protected]) |
| 150 |
.fi |
| 151 |
.SH SEE ALSO |
| 152 |
.BR ra (1), |
| 153 |
.BR rarc (5), |
| 154 |
.BR argus (8) |