this post was submitted on 28 Mar 2025
124 points (100.0% liked)

Selfhosted

45299 readers
1212 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I spent some time learning and configuring my firewall, then displayed it in form of SVG graph on Glance. I'm pretty happy about the result so I wanted to share it :)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 3 days ago* (last edited 3 days ago) (1 children)

~~Do you have persistent IPtables then?~~

counters that periodically reset,

Yes, reading comprehension on my part. Doh!

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago)

Yes the full recipe is:

  • 1 Flask API for sending custom HTML to Glance
  • 1 systemd unit + python script for the right graph (last 60 minutes, resetting counter and collecting data via nftables python module)
  • 1 systemd unit + python script for the left graph (last 24h, aggregate data from the last hour collevted by the first script And that's it, the systemd units are used to schedule python scripts and all the data are stored in flat csv file (forgot one bash script +systemd unit to to flush docker rules at boot and apply custom ones)