6 ms·
Sniffnet – monitor your Internet traffic
- Gshaheen 2y agoLooks really cool with a lot of information. Can someone who knows more than I detail out what the practical use cases of something like this would be?
- cf100clunk 2y agoCheck out this previous discussion of Sniffnet: https://news.ycombinator.com/item?id=35991811 https://news.ycombinator.com/item?id=35991811
- HelloUsername 2y agoAnd https://news.ycombinator.com/item?id=36728672 https://news.ycombinator.com/item?id=36728672 https://news.ycombinator.com/item?id=42909530 https://news.ycombinator.com/item?id=42909530 https://news.ycombinator.com/item?id=33693185 https://news.ycombinator.com/item?id=33693185 https://news.ycombinator.com/item?id=33132169 https://news.ycombinator.com/item?id=33132169
- tinix 2y agoanyone have thoughts about this vs ntopng? any other alternatives?
- deleted 2y ago[deleted]
- NelsonMinar 2y agoI'd love a tool like this built into my router. OpenWRT maybe. Ubiquiti's routers have some monitoring tools like this but the reported data is completely wrong.
- mrnotcrazy 2y agoCan you expand on what’s wrong about it? I have some ubiquiti gear and I haven’t noticed anything wrong but I haven’t taken a close look.
- NelsonMinar 2y agohere's an old post of mine about it. this was a year ago, maybe it's improved but given they were willing to ship this I am not optimistic. https://nelsonslog.wordpress.com/2023/11/19/ubiquiti-routers-garbage-bandwidth-stats/ https://nelsonslog.wordpress.com/2023/11/19/ubiquiti-routers...
- petee 2y agoUbiquity stuff has always been flaky with metric accuracy, its commonly mentioned on their forums, and I get the impression they never intended it to be super accurate, just a general overview. My personal experience with a USG is that under real load it will deprioritize stats, so traffic speeds etc start getting dropped, though I guess thats better than losing network speed just to make a pretty graph
- petersellers 2y agoThe USG is pretty old at this point, so that's not too surprising. I wonder if their newer hardware suffers from the same issues.
- petee 2y agoIts true its aging but still works well for a small network. From what I gather in the forums, it might be due to the controller software not so much the specific hardware; the complaints still seem fairly steady. For example the past year someone reported their printer used less than 30KB but was recorded as 1.6GB; another with a Cloud Gateway (not too old) reporting 17GB of traffic daily for a Kindle consuming less than 1MB
- 2y ago
- ycuser2 2y agoIs it possible to select a pcap stream (named pipe or so) as input? With that I could monitor my routers interfaces. Or are there other possibilities to monitor router interfaces with Stiffnet?
- Exuma 2y agoI used brew install... which of these do I choose? I chose en0 and i get permission error (Libcap error, cannot open BPF device) I have apple silicon edit: i just used sudo ;p
- collinvandyck76 2y agoThat's interesting. I used `cargo install` and I don't have to use `sudo` to capture any of the interfaces I tried.
- Exuma 2y agoAlso, which package did you use to build this UI in rust? this is absolutely incredible. I love the vibe of it...
- jasode 2y agohttps://iced.rs/ https://iced.rs/ Also look for "use iced::" at the top of the source code file: https://github.com/GyulyVGC/sniffnet/blob/main/src/gui/sniffer.rs https://github.com/GyulyVGC/sniffnet/blob/main/src/gui/sniff...
- xhkkffbf 2y agoI'm looking for something similar that will run on my router and track the entire house. Any suggestions?
- radicality 2y agoI haven’t looked into Sniffnet much yet, but that probably depends what you run on your router. I use OPNsense, and the Zenarmor module does provide a whole bunch of useful info together with blocking capabilities. If you pay for a home-use license (I haven’t done this), can also get few more features like MitM with your own ssl certificate.
- yonatan8070 2y agoI think that's highly router dependent, but here's what I know. Home Assistant can monitor some things via the UPnP/IGD integration [1]. If you're looking for something more advanced, you could look into SNMP Exporter [2] with a Prometheus + Grafana setup. Another option is to set up a PiHole DNS server, which would both block ads for the local network, and give you DNS statistics on a per-device basis. None of these can get to the level of granularity you can get with a pcap based tool like sniffnet, but they're a good start to network monitoring and should work with most home routers. If you really want to go deep with your network monitoring, you could set up a more sophisticated using OPNSense/PFSense, but at that point I don't know what is and isn't possible as I have no experience with them. [1] https://www.home-assistant.io/integrations/upnp/ https://www.home-assistant.io/integrations/upnp/ [2] https://github.com/prometheus/snmp_exporter https://github.com/prometheus/snmp_exporter
- nepthar 2y agoI'm also hoping for something like this! Bonus points if it had a "little snitch" type of operation where I could manually approve a matrix of (device x domain)
- VTimofeenko 2y agoDepending on the router, you could log traffic from nftables to ulogd2 to some logging monitoring/shipping solution.
- deleted 2y ago
- robertoandred 2y agoIs there a way to see what applications are causing traffic?
- Havoc 2y agoTcpmon is closest I can think of. Doubt interface level capture would be able to attribute to apps
- akimbostrawman 2y agoopensnitch https://github.com/evilsocket/opensnitch https://github.com/evilsocket/opensnitch
- ranger_danger 2y agoin my experience it is very buggy/crashy and kills all TCP sockets any time it is stopped/started
- akimbostrawman 2y agoComplete opposite experience for me on archlinux. Consider reporting your problems to fix them for others too.
- 29athrowaway 2y agoYou may also want to look at the venerable EtherApe, that has been around for a while and is packaged for most distros https://etherape.sourceforge.io/ https://etherape.sourceforge.io/
- hosteur 2y agoWhat makes this better than tcpdump/wireshark?
- wackget 2y agoI've always wondered: is there a tool which could selectively block internet traffic on a per-domain basis via a GUI interface like the uMatrix browser extension does for websites? https://i.imgur.com/Ae4npRh.png https://i.imgur.com/Ae4npRh.png Obviously you can block hostnames quite easily via a hosts file, but it would be great if there was an easy-to-use GUI which could block stuff at the router level. If possible it could even inspect URIs to selectively block requests for certain file extensions etc.
- spondylosaurus 2y agoIsn't that basically what a Firewalla does?
- radicality 2y agoPosted in another comment here, but if you use Opnsense, then the Zenarmor module can provide that. You can give it a list of domains, or also preselect from a bunch of existing filters / app filters (eg block Advertising / Social Media)
- dewey 2y agoIs it mostly about the "matrix" interface in this case? Otherwise seems like exactly what tools like https://www.obdev.at/products/littlesnitch/index.html https://www.obdev.at/products/littlesnitch/index.html etc. do.
- georgeck 2y agoTools like https://pi-hole.net https://pi-hole.net does this for the whole house. It comes with a default set of blocked domains and you can easily add to it. It acts as your local DNS for the network.
- pbhjpbhj 2y agoPihole is at domain level though, you'd have to MitM to get URIs.
- EvanAnderson 2y agoAn SSL intercepting proxy like Squid will do what you're looking for, insofar as the HTTP(S) protocol. Doing that at a gateway level, instead of on the client itself, loses visibility into process IDs or other client-local state. The old Microsoft Proxy (and later their ISA Server product) used a proprietary encapsulation between the client and the proxy server that exposed client-local state to the proxy server to let you do "magical" stuff like filtering by process name or username at a gateway level. I wish there was a free software solution that did that.
- abimbostrawman 2y ago[dead]
- bullfinch 2y agois there a way to visualise networks (who talks to who) in a good way? i want source to be logs from my firewall.
- pknerd 2y agoI'd like to collect something at the router level to learn how my kids are using the Internet. Like I'd like to know the sites being visited on different devices. Is there any such thing possible?
- majormjr 2y agoIf you have a switch with port mirroring you can send the traffic to another device and monitor using something like Suricata.
- whilenot-dev 2y agoCan you install netopng[0] on the router? [0]: https://www.ntop.org/products/traffic-analysis/ntop/ https://www.ntop.org/products/traffic-analysis/ntop/
- INTPenis 2y agoOpenWRT has prometheus node exporter packages. But in your case I think a PiHole would make sense, first of all you don't need to put it on the router, just point the router's default DNS to your pihole. But a pihole will give you a nice dashboard of all the DNS records resolved in your network. Which will give you a really good idea of what your kids are doing, since most of it is via DNS.
- uncharted9 2y agoI've used NextDNS. Pretty handy. Just change DNS settings on devices with your NextDNS profile specific resolver address and you can see the logs of all websites accessed from each device.
- pbhjpbhj 2y agoPihole will show you devices and the domains they access, it's not particularly designed towards that end, but it can. You can sit down with them and have a look at their history? I use Pihole to block nefarious sites (malware etc.) but also I use the OpenDNS (now Cisco) family friendly DNS addresses as nameservers. I can add domains if needed through the Pihole interface, or through the OpenDNS interface (former is easier). It's not watertight, but I figure if they can work out how to workaround it then they're at a level where I should give more generic guidance. They get exposed to porn and what not on social media (which I don't block) and through friends at school and through their friends devices, or connecting to other networks I don't have control over. Easiest workaround imo is to fire up a browser that uses TOR. Mind you we're a computer/consoles only in family rooms household and they don't get phones until they go to highschool (11yo).
- dang 2y agoRelated: Sniffnet – Comfortably monitor your internet traffic (like Wireshark) - https://news.ycombinator.com/item?id=36728672 https://news.ycombinator.com/item?id=36728672 - July 2023 (60 comments) Sniffnet: Open-source, cross platform application to monitor network traffic - https://news.ycombinator.com/item?id=35991811 https://news.ycombinator.com/item?id=35991811 - May 2023 (38 comments) Comfortably monitor your network traffic in real-time with Sniffnet - https://news.ycombinator.com/item?id=33693185 https://news.ycombinator.com/item?id=33693185 - Nov 2022 (4 comments) Sniffnet – A multithreaded, cross-platform network analyzer - https://news.ycombinator.com/item?id=33132169 https://news.ycombinator.com/item?id=33132169 - Oct 2022 (2 comments)
- cobertos 2y agoWhat's the point of monitoring your Internet traffic at the domain and IP level? If you want to stop sensitive data exfiltration, it doesn't matter the domain (malicioussomething.com vs google.com) but the data in the packets, which apps like this rarely track. How do people deal with this dichotomy?
- distracted_boy 2y agoWell if you are uploading GBs upon Gbs, maybe even TBs to malicioussomething.com or google.com, you know something's up. That's the first indicator. Next is to track what processes are responsible for the connection and go from there.
- echoangle 2y agoIf you don’t care about the specific domain, you can just look at the upload bandwidth usage statistic.
- cobertos 2y agoI tried an app like this on my phone to see what sort of data I was leaking. I open Facebook and 5 vaguely Facebook domains and a few IPs are getting small amounts of data. Other apps phone home in ways I expect. Sometimes it'll go to a third party. There's not a lot of low hanging fruit sending GB or TB. If they're sending juicy stuff, they're not blatent about it. But maybe I need to monitor at the network level and not device level. I just haven't found utility in these yet
- distracted_boy 2y agoI mean it depends on what you are looking for. If you are afraid that someone is exfiltrating large amounts of data to unknown destinations, then looking at amount of data being transferred is a good idea. But if someone hacks your phone or computer and the attacker is only looking for a PDF document, then the total size of the transfer will probably not help you. In this case, you want to monitor all destinations to make sure they are not malicious. But if you are really paranoid you need to be able to view all HTTPS traffic so you can verify that certain documents are not being exfiltrated. In addition to the above, there are lot's tricks for identifying certain traffic based on the attributes and metadata of the connection.
- digitallis42 2y agoThis feels like the same project as ntop. I'm curious what drove this one.