0
|
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3 <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>routeflapper.conf</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1" /><link rel="home" href="index.html" title="routeflapper" /><link rel="up" href="index.html" title="routeflapper" /><link rel="previous" href="rn01re01.html" title="routeflapper" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">routeflapper.conf</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="rn01re01.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> </td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="routeflapper.conf.5"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><a id="name.5"></a><h2>Name</h2><p>routeflapper.conf — configuration file for routeflapper</p></div><div class="refsynopsisdiv"><a id="synopsis.5"></a><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">routeflapper.conf</tt> </p></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description.5"></a><h2>Description</h2><p>The <span><b class="command">routeflapper.conf</b></span> configuration file is
|
|
4 specified by this partial bnf description. The entire config file
|
|
5 is case sensitive. All the keywords are lower case.
|
|
6 </p><pre class="literallayout">
|
|
7 CONFIG := {FILE}+
|
|
8 FILE := "file" FILENAME "{" PATTERN+ "};"
|
|
9 PATTERN := PATH | ANNOUNCE | WITHDRAW | IP
|
|
10 PATH := "path" REGEX "{" INDEXPATH '}' ";"
|
|
11 ANNOUNCE := "path" REGEX "{" INDEXVAL INDEXLEN '}' ";"
|
|
12 WITHDRAW := "path" REGEX "{" INDEXVAL INDEXLEN '}' ";"
|
|
13 IP := "path" REGEX "{" INDEXIP '}' ";"
|
|
14 INDEXPATH := "index_path" REGEX-INTEGER-VALUE ";"
|
|
15 INDEXVAL := "index_value" REGEX-INTEGER-VALUE ";"
|
|
16 INDEXLEN := "index_length" REGEX-INTEGER-VALUE ";"
|
|
17 INDEXIP := "index_ip" REGEX-INTEGER-VALUE ";"</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="sample.5"></a><h2>Sample</h2><pre class="literallayout">
|
|
18 file "/var/log/bgp" {
|
|
19 path " rcvd UPDATE w.* path (([0-9]| )*[0-9])" {
|
|
20 index_path 1;
|
|
21 };
|
|
22 announce " rcvd (([0-9]|\.)*)/([0-9]*)$" {
|
|
23 index_value 1;
|
|
24 index_length 3;
|
|
25 };
|
|
26 withdraw " rcvd UPDATE about (([0-9]|\.)*)/([0-9]*) -- withdrawn" {
|
|
27 index_value 1;
|
|
28 index_length 3;
|
|
29 };
|
|
30 };
|
|
31
|
|
32 file "/var/log/maillog" {
|
|
33 ip "NOQUEUE: connect from.* \[(.*)\]" {
|
|
34 index_ip 1;
|
|
35 };
|
|
36 };</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="version.5"></a><h2>Version</h2><p>
|
|
37 1.0.1
|
|
38 </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="rn01re01.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="index.html">Up</a></td><td width="40%" align="right"> </td></tr><tr><td width="40%" align="left" valign="top">routeflapper </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> </td></tr></table></div></body></html>
|