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

Selfhosted

45271 readers
1238 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 :)

top 12 comments
sorted by: hot top controversial new old
[–] gaiety@lemmy.blahaj.zone 5 points 2 days ago

glance is great, and this is an awesome custom addon

[–] irmadlad@lemmy.world 7 points 3 days ago (2 children)

That's one I haven't tried. I've probably tried most of the other dashboard offerings and decided to go with Homarr. I do like the monitoring aspect of Glance, tho I use NetData for that kind of monitoring. But yeah bro, looks great!

[–] Mouette@jlai.lu 2 points 3 days ago (1 children)

Glance is cool I love the style and it is well implemented so you can easily add custom HTML and CSS which is what I did to do this custom monitoring. Data are gathered from iptables counters that periodically reset, the hardest and most interesting part was to understand networking and to track packet through applications based on if they were port binded or reverse proxyed (I use Caddy for web facing app I want access to without a VPN). I'll definitively check more advanced solution, I just needed to do it manually first to actually understand what I'm doing (which took me like 2 weeks until I finally found this gem on ArchLinux wiki https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html)

[–] irmadlad@lemmy.world 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!

[–] Mouette@jlai.lu 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)
[–] NanoooK@sh.itjust.works 2 points 3 days ago (2 children)

What's your thought of homepage?

[–] irmadlad@lemmy.world 4 points 3 days ago

homepage

I liked Homepage. Very customizable, very well presented package and the UI is nice. I know, if you are running the *arr stack, it does a lot of interfacing with those apps. Not exclusively the *arr stack as it can interface with ProxMox to show how many VMs you're running and load/CPU etc.

[–] flightyhobler@lemmy.world 2 points 3 days ago* (last edited 2 days ago) (2 children)

Name is silly. How does one go about finding the homepage for Homepage?

[–] NanoooK@sh.itjust.works 4 points 3 days ago

I agree it's a bad name. Here is the link https://gethomepage.dev/

[–] IronKrill@lemmy.ca 1 points 2 days ago

It's pretty bad. That said, I search for "gethomepage" and find it every time.

[–] Sunny@slrpnk.net 4 points 2 days ago (1 children)

Just been at it myself setting up my config for glance with custom css theme. Would love to compare notes, how did you get those network graphs going?

[–] Mouette@jlai.lu 3 points 2 days ago

It is using Glance extension module (you can send custom HTML by setting up a local web api like Flask) The graph are HTML SVG tags which are basic drawing you just have to input the x,y coordinates of your graph (I copied Glance market chart) For networking data collection and monitoring I've setup my own rules and scripts but it is doable with others network monitoring tools if they let you access data easily