TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Monitor your local network with Raspberry Pi

73 pointsby rigaspapasover 9 years ago

17 comments

dogma1138over 9 years ago
Meh, this is crap.<p>1) You need a router that supports DHCP relay, which most home routers do not natively support.<p>2) It won&#x27;t show you clients that are connected to the Wifi which is probably the majority of clients in most home networks.<p>3) It doesn&#x27;t give you the ability to monitor anything beyond the DHCP lease table which all routers show.<p>So besides wasting 50$, losing a port on your router and having another thing that might break your network down you aren&#x27;t getting anything.
评论 #10221064 未加载
评论 #10220861 未加载
trm42over 9 years ago
Somehow I expected this talk about real network monitoring like using Ntop, Nagios, arpwatch etc. Just creating another dhcpd for the lan&#x2F;wifi feels cumbersome just to get dhcp leases.<p>So how about using RPI as a network bridge between the router and the client hosts and then using Ntop, arpwatch etc. Then you can actually monitor the traffic in detail.
评论 #10223969 未加载
评论 #10221239 未加载
评论 #10220056 未加载
评论 #10219973 未加载
rufugeeover 9 years ago
I guess it&#x27;s interesting as an exercise, but openwrt gives you this and so much more on $30 routers. After years of experimenting with different router firmwares, I can&#x27;t recommend openwrt enough. It&#x27;s simply phenomenal.
评论 #10220332 未加载
评论 #10221112 未加载
VLMover 9 years ago
&quot;netmask 255.255.255.0&quot;<p>&quot;We chose to use the range 192.168.1.0&#x2F;8 as our local network&quot;<p>Minor typo, although it doesn&#x27;t really matter in the big picture.<p>I like how it was written. In line commentary, like a tourist guide or a very informal runbook.<p>As a meta comment about the project goals it seems almost like a parody of taking something like logging into the CLI and running &quot;arp&quot; and turning it into the largest and most complicated system imaginable, I&#x27;m trying to figure out how to make it more complicated, maybe running it on https instead with a valid cert, or perhaps doing it all in Intercal or cobol instead of node.js.
hultnerover 9 years ago
You could set up an promiscuous WiFi card and monitor all active WiFi-sessions, the radio signals are still there, readable even if the actual connection&#x2F;data is encrypted.<p>We did this at my university to monitor who&#x27;s in our social activity facilities at any given time (opt-in).
评论 #10221103 未加载
评论 #10221191 未加载
nurettinover 9 years ago
&gt;&gt; Simply because WiFi is managed by the router and most of the routers out there don&#x27;t provide you with such information or statistics.<p>I love Pi, and I have my own raspberry pi router project with 3d printed box and everything. But why spend money and an extra ethernet port for information that you can scrape off of your router&#x27;s http page with something simple like a web testing tool?
评论 #10221171 未加载
linker3000over 9 years ago
It&#x27;s a bit of fun, but you could probably do better with a Mikrotik board (eg: <a href="http:&#x2F;&#x2F;routerboard.com&#x2F;RB922UAGS-5HPacD" rel="nofollow">http:&#x2F;&#x2F;routerboard.com&#x2F;RB922UAGS-5HPacD</a> list price $79), a low-end microATX board with a few network adaptors - or as others have suggested, a wireless router with something like OpenWrt etc.
alistairjcbrownover 9 years ago
This is nice way of getting the live device data out from the router - I&#x27;ve made a few scripts in the past for logging into the router web interface and scraping connected device data as a &quot;Who&#x27;s in the house&quot; display.<p>Pulling the DHCP functionality out into something more accessible is a great idea!
评论 #10220040 未加载
spacecowboy_lonover 9 years ago
Would not using openwrt be a better solution I think that reports by client. And I am sure that Cisco Airnet and Ruckus kit does this.<p>And there are hacker distros for the PI designed for use as an ICE device - ideally you need to have a ethernet tap other wise you need two ports to monitor ethernet.
评论 #10220092 未加载
necrodomeover 9 years ago
&quot;By using only your current WiFi router that&#x27;s surely impossible.&quot;<p>umm, what? I haven&#x27;t seen a router for a long time that doesn&#x27;t have that feature.
评论 #10221144 未加载
评论 #10219889 未加载
johnchristopherover 9 years ago
It&#x27;d be more interesting to dive into that nodejs snippet. The work to get the final result (a list of connected devices) has already been done and implemented in your home router.<p>And you swap a real router for a bandwidth constrained raspberry to get that list.
OJFordover 9 years ago
Curious - if you click &#x27;Home&#x27; you (I) get chucked onto port 2368; the page is also served on 80, but not others (at random) - why is that? Funky load-balancing?
评论 #10221219 未加载
drzaiusapelordover 9 years ago
You could probably install something like pfsense or untangle and get a whole heck of a lot more tools. Or even dd-wrt. I&#x27;m assuming the drivers exist for this.
JustSomeNobodyover 9 years ago
Stopped reading after calling OnHub a game-changer.
thebakeshowover 9 years ago
Just a nminor nitpick, it says you&#x27;re using 192.168.1.0&#x2F;8 but your netmask is 255.255.255.0 which would be &#x2F;24 in CIDR
jo-mover 9 years ago
this solution monitors the wifi by sniffing on it (RPi and cheap WiFi dongle):<p><a href="https:&#x2F;&#x2F;people.ee.ethz.ch&#x2F;~muejonat&#x2F;wifimon&#x2F;" rel="nofollow">https:&#x2F;&#x2F;people.ee.ethz.ch&#x2F;~muejonat&#x2F;wifimon&#x2F;</a>
ck2over 9 years ago
Or use the $15 orange pi clone.