TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Monitor your local network with Raspberry Pi

73 点作者 rigaspapas超过 9 年前

17 条评论

dogma1138超过 9 年前
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 未加载
trm42超过 9 年前
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 未加载
rufugee超过 9 年前
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 未加载
VLM超过 9 年前
&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.
hultner超过 9 年前
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 未加载
nurettin超过 9 年前
&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 未加载
linker3000超过 9 年前
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.
alistairjcbrown超过 9 年前
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_lon超过 9 年前
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 未加载
necrodome超过 9 年前
&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 未加载
johnchristopher超过 9 年前
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.
OJFord超过 9 年前
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 未加载
drzaiusapelord超过 9 年前
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.
JustSomeNobody超过 9 年前
Stopped reading after calling OnHub a game-changer.
thebakeshow超过 9 年前
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-m超过 9 年前
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>
ck2超过 9 年前
Or use the $15 orange pi clone.