fe54409f84
`mezoura` uses `tc` subsystem eBPF hook (direct-action [0]). It's attached as a TC classifier for both ingress and egress. The eBPF program is used to measure traffic (bandwidth and packets per second) from/to the internet (non-private addresses). It utilizes `uci` to parse static entries for DHCP (/etc/config/dhcp) to map MAC addresses -> hostnames. For each new IP/MAC address pair seen on the network, it attempts to resolve the MAC address to a hostname. If there's no mapping, the entry is skipped. It works for both v4 and v6 without having to maintain some weird iptables rules to count packets/bytes as seen in other packages. Lastly, it exposes a prometheus exporter for a widely used method to consume the metrics held in the eBPF maps. There's an option to disable exposing the embedded prometheus exporter. The exporter component, flushes the metrics to `/tmp/prom_c`. From that point, `prometheus-node-exporter-lua-textfile` can be used to consume the metrics instead of exposing yet another service. [0]: https://man7.org/linux/man-pages/man8/tc-bpf.8.html Signed-off-by: Linos Giannopoulos <linosgian00@gmail.com> |
||
---|---|---|
.circleci | ||
.github | ||
.keys | ||
admin | ||
devel | ||
fonts/dejavu-fonts-ttf | ||
ipv6 | ||
kernel | ||
lang | ||
libs | ||
multimedia | ||
net | ||
sound | ||
utils | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
README.md
OpenWrt packages feed
Description
This is the OpenWrt "packages"-feed containing community-maintained build scripts, options and patches for applications, modules and libraries used within OpenWrt.
Installation of pre-built packages is handled directly by the opkg utility within your running OpenWrt system or by using the OpenWrt SDK on a build system.
Usage
This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot – Installation on the OpenWrt support site.
This feed is enabled by default. To install all its package definitions, run:
./scripts/feeds update packages
./scripts/feeds install -a -p packages
License
See LICENSE file.
Package Guidelines
See CONTRIBUTING.md file.