diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2022-11-27 10:55:37 +0100 |
---|---|---|
committer | Tianling Shen <cnsztl@gmail.com> | 2022-12-03 04:08:51 +0800 |
commit | 865412cd046d22f53573d5cf640d5c14bc6571ea (patch) | |
tree | 9af2adde86fc7269c0259cb8f312c2f53ae6c4b4 /net/bpfcountd/files/etc/config | |
parent | 8d2d6c46d61dee6e5b909add58859cfc5a5875a1 (diff) |
bpfcountd: add initial package
bpfcountd was created to obtain packet statistics in larger networks
without stressing the cpu resources. bpfcountd will count the amount
of packages and bytes over time (for each defined rule). The rules
are defined using the tcpdump filter syntax (bpf). The collected
data is provided on a unix socket in plaintext.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Diffstat (limited to 'net/bpfcountd/files/etc/config')
-rw-r--r-- | net/bpfcountd/files/etc/config/bpfcountd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net/bpfcountd/files/etc/config/bpfcountd b/net/bpfcountd/files/etc/config/bpfcountd new file mode 100644 index 000000000..790de16ca --- /dev/null +++ b/net/bpfcountd/files/etc/config/bpfcountd @@ -0,0 +1,13 @@ +config bpfcountd 'eth0_in' + option ifname 'eth0' + option prefilter 'inbound' + option filterfile '/etc/bpfcountd.filters' + option buffersize '2097152' + option disabled '1' + +config bpfcountd 'eth0_out' + option ifname 'eth0' + option prefilter 'outbound' + option filterfile '/etc/bpfcountd.filters' + option buffersize '2097152' + option disabled '1' |