From 865412cd046d22f53573d5cf640d5c14bc6571ea Mon Sep 17 00:00:00 2001 From: Linus Lüssing Date: Sun, 27 Nov 2022 10:55:37 +0100 Subject: bpfcountd: add initial package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- net/bpfcountd/files/etc/config/bpfcountd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 net/bpfcountd/files/etc/config/bpfcountd (limited to 'net/bpfcountd/files/etc/config') 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' -- cgit v1.2.3