osmo-hnbgw/debian
Neels Hofmeyr d7d4ca7b83 per-HNB GTP-U traffic counters via nft
Add optional feature: retrieve GTP-U traffic counters using nftables.

Add compile-time switch --enable-nftables, to build with/without
external dependency libnftables. Default is without, as before.

Add configure-time switch 'hnbgw' / 'nft-kpi' to enable use of nftables.
This requires osmo-hnbgw to be run with cap_net_admin.

The VTY config commands are always visible -- simplifies VTY testing.
Refuse to start osmo-hnbgw when requesting nft-kpi in the config but
when built without --enable-nftables.

When an hNodeB registers, set up nftables rules to count GTP-U packets
(UDP port 2152) to and from that hNodeB's address -- we are assuming
that it is the same address that Iuh is connecting from.

This is a "workaround" to get performance indicators per hNodeB, without
needing a UPF that supports URR.

This patch reads counters from the nftables response using "manual"
string parsing. See also Id4e7fa017c31945388a010d8581715d71482116b which
modifies this to full JSON parsing.

Tweaked-by: osmith
Related: SYS#6773
Depends: libosmocore I0df84b4bb8cb5d8434b735fa3a38e7f95be43e91
Change-Id: I35b7e97fd039e36633dfde1317170527c82f9f68
2024-04-30 02:46:20 +02:00
..
source Initial structure + import code from osmo-iuh.git 2022-01-04 19:48:52 +01:00
changelog Bump version: 1.4.0.109-89fe-dirty → 1.5.0 2023-09-12 17:18:44 +02:00
compat debian: set compat level to 10 2023-04-25 16:48:22 +02:00
control per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00
copyright update URLs (git -> https; gitea) 2022-06-18 14:02:41 +02:00
osmo-hnbgw-doc.install debian: fix having no manuals in osmo-hnbgw-doc 2024-01-19 14:40:49 +01:00
osmo-hnbgw.install doc/examples/osmo-hnbgw/osmo-hnbgw-cnpool.cfg 2023-06-16 04:07:24 +02:00
postinst .deb/.rpm: add osmocom user during package install 2024-04-24 11:52:19 +02:00
rules per-HNB GTP-U traffic counters via nft 2024-04-30 02:46:20 +02:00