r/selfhosted • • 20d ago

Monitoring Tools Sniffnet: open-source network traffic monitor (now with support for routers, firewalls, servers)

Post image

Sniffnet is an open-source network monitoring tool I've been developing during the past 4 years, designed to be reliable and intuitive to use.

Today I decided to share it in this sub since I just released a new version of the app that can collect IPFIX data exported by headless devices such as switches, routers and firewalls, and therefore I think it can be of interest for many self-hosters out here.

You can configure your devices to export IPFIX flows to a Sniffnet instance on your network. Sniffnet then aggregates and visualizes their activity in one place, entirely on infrastructure you control, with no account, cloud service, or subscription required.

Relevant links:

509 Upvotes

35 comments sorted by

•

u/asimovs-auditor 20d ago

Expand the replies to this comment to learn how AI was used in this post/project.

→ More replies (1)

83

u/FuzzyNutz96 19d ago

I have nothing interesting to comment other than this is how I came across this tool.

16

u/GyulyVGC 19d ago

The color palette matches, ngl

53

u/Yann39 20d ago

I installed it years ago, it has always worked well.
I don’t use it very often, but it has always come in handy when I have needed it.

Great tool :)

22

u/GyulyVGC 20d ago

OG user right here <3

9

u/techma2019 20d ago

Would this complement an opnsense setup with Adguard running at the router level? How about crowdsec logs coming from caddy reverse proxy again running on the opnsense? Curious how to ingest the data to get the graphs.

5

u/GyulyVGC 20d ago

I’m not sure about crowdsec logs, but you can feed Sniffnet with any IPFIX exporter. Many devices export this network format natively, while for the one that do not you can use sniffnet-agent as suggested or the more popular softflowd tool.

5

u/techma2019 20d ago

Ah looks like there’s a plugin for opnsense to export IPFIX. That should get all the traffic theoretically. Cheers!

3

u/Conscious-Mirror7004 19d ago

Yeah, this looks like a really interesting tool, but I don't see how I could use it. I really don't care about seeing the traffic on my Linux PC; I want to see the traffic on my whole network, so I can see what my home server is doing, if there's suspicious traffic going to/from any of my internet-connected devices (smart TVs are always suspect for instance), etc. So it seems I need a way to get traffic data from my router, but AFAICT most routers just don't have this capability, and I'm not about to buy a Cisco router to replace my consumer-grade WiFi router. Oh well.

3

u/EncryptedIdiot 19d ago

Support for routers, you mean I can install this on an OpenWRT router?

2

u/GyulyVGC 19d ago

It means that it can support traffic in IPFIX format exported from an OpenWRT router. You can use tools like softflowd to act as an IPFIX exporter on the OpenWRT.

3

u/TheBlargus 20d ago edited 18d ago

I like baking cookies.

21

u/GyulyVGC 20d ago

Thanks for sharing your feedback.

This release also adds an expanded view mode that collapses footer and makes header slimmer.

Furthermore, the color scheme is completely customisable as described in the custom themes Wiki page.

47

u/alpinethegreat 20d ago

It’s honestly a bit refreshing to see shitty handmade UIs instead of the non-functional slop UIs constantly posted on this sub.

At least here I know each button actually does something.

4

u/Conscious-Mirror7004 19d ago

UIs were generally better in 2003 than they are now.

That said, this project's UI does not look like a 2003-era UI to me.

9

u/Fat-Singer-9569 19d ago

It's a decent product held back by an awful UI from 2003

God forbid you modify the open source project CSS files to fit your preference instead of asking someone doing 99% of the work to do more to fit your particular needs.

1

u/Live_Surround5198 18d ago

The audacity!

2

u/WirtsLegs 20d ago

Seems potentially interesting

Can you elaborate a bit on the analysis side of things?

Pretty graphs are all well and good, but does it have ability to drill down on hosts or groups of hosts? Also how performant is it? Can it handle a larger network?

Regarding AI use, I appreciate your answer/contributing policy, im assuming you did use AI for some of the images and the documentation though? Reads/looks very AI. Just curious.

7

u/GyulyVGC 20d ago

It can drill down up to the 5-tuple level, showing individual IP addresses, ports, host, protocols. It shows even message kinds for some protocols like ICMP and ARP, but doesn't do deep packet inspection. It should comfortably handle a large network (more info in our benchmarks issue).

I actually also did most of the images (with Inkscape) and wrote the Wiki docs by hand. I use AI for the blog post cover images and code review / scanning.

3

u/WirtsLegs 20d ago

That issue relates to processing pcaps

And traffic ingestion side is important

But I'm more curious about how well it handles exploring and searching the data? I have a pretty busy network, and would throw a lot of data at this thing if I adopted it. I want to make sure I can reliably explore decent length time windows of data.

4

u/GyulyVGC 20d ago

At the moment collected data is stored in memory so lookups are very fast, also thanks to Rust performance.
I usually run it for multiple days and can still search and filter connections quickly even when they are in the order of hundred of thousands.
Storing traffic as timeseries in a database would be one of the next planned features.

5

u/WirtsLegs 20d ago

Ahh ok so no long term persistence then, not really usable as a SIEM type service yet

Well I'll likely hold off then

When you get to the point of having persistence and such please do post an update in this sub, as I may give it a look then, I recently went down the road of doing elastisearch/yazuh/grafana etc to try and rig up a SIEM setup but it was overkill and just needed wya more compute resources (ram especially) than I was willing to give it.

So if your thing turns into a usable but somewhat more lightweight option then I'd be interested

1

u/iloahz 18d ago

any plans to support web ui?

homelab user here, i just prefer everything ui in web(core in native of course), so i can run core on my server and remotely check ui on most of my devices

4

u/GyulyVGC 18d ago

At the moment I have other priorities, but the web UI is one of the items planned for the future

3

u/PointlessPancake 11d ago

I remember accessibility testing Sniffnet almost two years ago. Happy to see that development is going well!

4

u/semiraue 20d ago

this looks good. I might give a try

2

u/Atagor 19d ago

Thanks for sharing! Never heard about it

0

u/BazimQQ 20d ago

Can I find with this if somebody is attacking me?

6

u/GyulyVGC 20d ago

It depends on the class of attack.
Example: someone trying to SSH you? You’ll see the unexpected SSH connection in the list of opened ports and connections.
Another example: DoS? You’ll see unexpected traffic spikes.
Or even: a malicious program? You’ll see it in the list of currently active programs.
However there are also attack classes that cannot be detected.

-3

u/Roxelchen 20d ago

MCP / API support?

-3

u/AnimusAstralis 19d ago

I’ve tried it once but was disappointed by the UI. If I remember correctly it’s a solid app that uses Rust + Iced, but OMG the UI is just horrible

6

u/drycounty 19d ago

To each their own. I like the UI

4

u/starkruzr 19d ago

going to stand this up when I get home. and if I don't like the UI, I can always build something else. that's the beauty of OSS.