Setting tag DistributedRateLimiting-0.1-1
[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 # Used to optionally specify which IP address DRL's communication
82 # socket should attempt to bind to.
83 bind_addr="AUTO"
84
85 [NETFLOW]
86 # PlanetLab NetFlow logging
87 # dump interval in minutes
88 interval=5
89
90 # CSV dump
91 csv="/var/www/html/flows.csv"
92
93 # database information
94 #mysqlpass changeme
95 #mysqluser="netflow"
96 #mysqldb="netflow"
97 #mysqlhost localhost
98
99 # slice map
100 slicemap="/etc/passwd"
101
102 [LOGEMU]
103 file="/var/log/ulogd/ulogd.syslogemu"
104 sync=1
105
106 [OPRINT]
107 file="/var/log/ulogd/ulogd.pktlog"
108
109 [MYSQL]
110 table="ulog"
111 pass="changeme"
112 user="laforge"
113 db="ulogd"
114 host="localhost"
115
116 [PGSQL]
117 table="ulog"
118 schema="public"
119 pass="changeme"
120 user="postgres"
121 db="ulogd"
122 host="localhost"
123
124 [SQLITE3]
125 table="ulog"
126 db="/path/to/sqlite/db"
127 buffer=200
128
129 [PCAP]
130 file="/var/log/ulogd/ulogd.pcap"
131 sync=1
132