some minor corrections for ulogd initscript
[distributedratelimiting.git] / ulogd.conf.in
1 # Example configuration for ulogd
2 # $Id: ulogd.conf.in 5267 2005-02-19 21:33:43Z laforge $
3 #
4
5 [global]
6 ######################################################################
7 # GLOBAL OPTIONS
8 ######################################################################
9
10 # netlink multicast group (the same as the iptables --ulog-nlgroup param)
11 nlgroup=1
12
13 # logfile for status messages
14 logfile="/var/log/ulogd.log"
15
16 # loglevel: debug(1), info(3), notice(5), error(7) or fatal(8)
17 loglevel=5
18
19 # socket receive buffer size (should be at least the size of the
20 # in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter)
21 rmem=131071
22
23 # libipulog/ulogd receive buffer size, should be > rmem
24 bufsize=150000
25
26 ######################################################################
27 # PLUGIN OPTIONS
28 ######################################################################
29
30 # We have to configure and load all the plugins we want to use
31
32 # general rules:
33 # 1. load the plugins _first_ from the global section
34 # 2. options for each plugin in seperate section below
35
36
37 #
38 # ulogd_BASE.so - interpreter plugin for basic IPv4 header fields
39 #                 you will always need this
40 plugin="@libdir@/ulogd_BASE.so"
41
42
43 # load the plugin (remove the '#'if you want to enable it
44 #plugin="@libdir@/ulogd_NETFLOW.so"
45
46 # output plugins. 
47 #plugin="@libdir@/ulogd_LOGEMU.so"
48 #plugin="@libdir@/ulogd_OPRINT.so"
49 #plugin="@libdir@/ulogd_MYSQL.so"
50 #plugin="@libdir@/ulogd_PGSQL.so"
51 #plugin="@libdir@/ulogd_SQLITE3.so"
52 #plugin="@libdir@/ulogd_PCAP.so"
53
54 plugin="@libdir@/ulogd_DRL.so"
55 [DRL]
56 # nodelimit is the administrative limit for the node
57 # It will never go above this rate, even if capacity is
58 # available.  A value of 0 means unlimited.
59 nodelimit=0
60 # DRL allocation policy: FPS for flow proportional share
61 # or GRD for global random drop.
62 policy=FPS
63 # estintms is the system tick time (estimate interval),
64 # in milliseconds.
65 estintms=500
66 # The location of the DRL logfile.
67 drl_logfile="/var/log/ulogd-drl.log"
68 # The verbosity of the DRL logfile. 1 = most verbose/debug,
69 # 2 = traffic information and errors, 3 = errors only.
70 drl_loglevel=2
71 # The location of the DRL configuration file, which
72 # specifies which identities should be installed.
73 drl_configfile="@etcdir@/drl.xml"
74 # Whether or not ulogd should create the htb hierarchy (for FPS).
75 # 0 = Use the hierarchy that's already there. (When, for instance,
76 # PlanetLab's node manager is responsible for it.)
77 # 1 = Re-build the hierarchy
78 # When this is set to 0, identities must specify an htb_node and 
79 # htb_parent property in the drl xml file.
80 create_htb=0
81
82 [NETFLOW]
83 # PlanetLab NetFlow logging
84 # dump interval in minutes
85 interval=5
86
87 # CSV dump
88 csv="/var/www/html/flows.csv"
89
90 # database information
91 #mysqlpass changeme
92 #mysqluser="netflow"
93 #mysqldb="netflow"
94 #mysqlhost localhost
95
96 # slice map
97 slicemap="/etc/passwd"
98
99 [LOGEMU]
100 file="/var/log/ulogd/ulogd.syslogemu"
101 sync=1
102
103 [OPRINT]
104 file="/var/log/ulogd/ulogd.pktlog"
105
106 [MYSQL]
107 table="ulog"
108 pass="changeme"
109 user="laforge"
110 db="ulogd"
111 host="localhost"
112
113 [PGSQL]
114 table="ulog"
115 schema="public"
116 pass="changeme"
117 user="postgres"
118 db="ulogd"
119 host="localhost"
120
121 [SQLITE3]
122 table="ulog"
123 db="/path/to/sqlite/db"
124 buffer=200
125
126 [PCAP]
127 file="/var/log/ulogd/ulogd.pcap"
128 sync=1
129