blob: 63e1682256560f39d6edc6d8705f596080d373bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Config file for /etc/init.d/daemonlogger
#### Service related options ####
# This tell daemonlogger which interface to listen on
IFACE="eth0"
#
# User and Group to run as
DL_USER="daemonlogger"
DL_GROUP="daemonlogger"
#
# Define the location of your BPF file.
BPF="/etc/daemonlogger/daemonlogger.bpf"
#
# Set the number of bytes to capture per packet.
# Specify 0 (zero) to capture the full packet.
# 'man tcpdump' for more info about snaplen.
SNAP="0"
#
# This option determins if daemonlogger will log captured packets
# to disk (log mode) or redirect them out a second interface (tap mode).
# Valid options are "log" or "tap"
DL_MODE="log"
###########################
##### Log Mode Options #####
# If you specified "log" above, then these options will be used
# when you start the daemonlogger init script.
#
# Directory to log pcap files to.
LOG_DIR="/var/log/daemonlogger"
#
# The pcap files can be rolled over based on size, time or both.
# If you want to use only size or time, then comment out the one you do not
# wish to use. If you use both, then the first boundry the file reaches
# will cause the pcap file to roll over.
#
# Rollover the log file if it reaches this size in bytes.
#LOG_SIZE="1073741824"
#
# Rollover the log file on time intervals. Append an 'm' to rollover on minute
# boundaries, 'h' to rollover on hour boundaries and 'd' to rollover on day boundaries.
# See the README in the doc directory for more information.
LOG_TIME="1h"
#
# This option will write log files to the disk until it reaches this % utilization and
# then roll over and delete the oldest log file.
LOG_PCT="80"
############################
##### Tap Mode Options #####
# If you specified "tap" above, then these options will be used
# when you start the daemonlogger init script.
#
# In tap mode, which interface to output packets to. This can not
# be the same as IFACE above.
TAP_OFACE="eth1"
############################
DL_OPTS="-d -i $IFACE -S $SNAP -f $BPF -u $DL_USER -g $DL_GROUP"
|