mirror of
https://github.com/f00b4r0/uspot.git
synced 2026-04-26 06:35:54 +03:00
[PR #28] [MERGED] Implement traffic accounting and limiting via an eBPF module #37
Labels
No labels
bug
enhancement
invalid
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uspot#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/f00b4r0/uspot/pull/28
Author: @f00b4r0
Created: 6/19/2025
Status: ✅ Merged
Merged: 7/17/2025
Merged by: @f00b4r0
Base:
next← Head:ebpf📝 Commits (10+)
0974fc8Implement uspot-bpf, an eBPF traffic countere99809fintroduce uspotbpf.uc7f6f438uspotbpf: work around ucode-mod-bpf bug319e0c2uspot: hook traffic accountingccf3fa9uspot: client_interim(): remove dead code0e92cc9uspotbpf: fix priority conflict with ratelimit55d40a8uspot: implement traffic limitingb05257euspot: implement swapioe83f950uspot: radius_acct(): don't needlessly call uspotfilter442cff7uspotfilter: cleanup unused API📊 Changes
10 files changed (+387 additions, -63 deletions)
View changed files
📝
Makefile(+12 -2)📝
README.md(+3 -2)📝
files/etc/config/uspot(+2 -0)📝
files/etc/radcli/dictionary.chillispot(+3 -0)📝
files/usr/share/uspot/handler-api.uc(+25 -2)📝
files/usr/share/uspot/portal.uc(+1 -0)📝
files/usr/share/uspot/uspot.uc(+140 -40)➕
files/usr/share/uspot/uspotbpf.uc(+105 -0)📝
files/usr/share/uspotfilter/uspotfilter.uc(+1 -17)➕
src/uspot-bpf.c(+95 -0)📄 Description
Opening this PR for easy reference until the relevant changes are fully tested and merged
This PR addresses #9 and #25 implementing support for
Acct-{Input,Output}-{Octets,Gigawords,Packets}attributes in RADIUS reporting andChilliSpot-Max-{Input,Output,Total}-{Octets,Gigawords}for RADIUS-based traffic caps.@PWJW @badnbusy @nemesifier feel free to chime in with your test results, thanks
Fixes: #9
Fixes: #25
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.