LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2010, 02:04 PM   #1
comcastuser
Member
 
Registered: May 2004
Posts: 178

Rep: Reputation: 22
Monitoring home network usage


I was wondering how do you slap a packet analyzer like Wireshark somewhere between all the computers in a house and the router, so you can tell what websites are being accessed? I mean websites, specifically. I'm not trying to monitor bittorrent, IRC or other things yet - I'll get to that later. I just want to break this insanely complex task into smaller bites for now.

Also, since my ISP has bandwidth caps but does not have a means for consumers to monitor total network usage, I'd like to figure out how to use Wireshark to do that as well. This, I am assuming, is easier when wireshark is running on the pipeline going into the router.

Thanks!
 
Old 07-13-2010, 02:11 PM   #2
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
You could flash the Router Rom with ddwrt and run wireshark on the router. Or, if you have a spare box you could double NIC it and put it between the Modem and the Router and then run Wireshark on that box.
 
Old 07-13-2010, 03:49 PM   #3
comcastuser
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by john test View Post
You could flash the Router Rom with ddwrt and run wireshark on the router. Or, if you have a spare box you could double NIC it and put it between the Modem and the Router and then run Wireshark on that box.
Ah, my router won't work with ddwrt... will the double NIC solution work with multiple PCs, including wireless laptops?
 
Old 07-13-2010, 11:45 PM   #4
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
I have not done it, but it seems reasonable that if you connect your devices to a router and then connect the router to a linux box and then connect the linux box to the cable modem, running wireshark on the linux box will track all traffic to the internet. (Not traffic across the Router switch)
 
Old 07-14-2010, 12:38 AM   #5
comcastuser
Member
 
Registered: May 2004
Posts: 178

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by john test View Post
I have not done it, but it seems reasonable that if you connect your devices to a router and then connect the router to a linux box and then connect the linux box to the cable modem, running wireshark on the linux box will track all traffic to the internet. (Not traffic across the Router switch)
Hmmmm, will that tell me which PC was doing what? Or do I need to put the linux box before the router to know that?
 
Old 07-14-2010, 08:14 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Quote:
Also, since my ISP has bandwidth caps but does not have a means for consumers to monitor total network usage
I'm guessing from your name that you are stuck with Comcast. They do have a network usage meter that you can access. Go to Comcast.net and log into your primary account. On the truly horrible Comcast page, right under the Email notification icon on the upper right is a small link that says Account Links. If you use that to navigate to the My Accounts page and then go to Users and Settings, you'll find a meter indicating your usage.

As an alternative though, I bought a router that could support Tomato firmware and that has a bandwidth log built in. The Tomato meter seems to correlate pretty well with the Comcast one (+/- 10GB). The only catch to using Tomato is that if you want long-term usage stats, you need to have a Samba server available for Tomato to mount as a drive for saving files. Most routers don't have a lot of on-board storage.
 
Old 07-14-2010, 02:18 PM   #7
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Running Tomato on a router to accomodate wireshark is a much better solution.
So
I googled Wireless router linux and found that the Router Mfrs all have a product running Linux The one I noticed was Netgear wnr3700L Which appears to run ubuntu.
Also googled wireless router linux compatible
and best wireless router dd-wrt
Seems the wireless router Manufacturers are very well aware of linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy/Dansguardian/Ntop/Zenoss Network Monitoring and Internet Usage metallica1973 Linux - Enterprise 3 02-11-2009 12:23 AM
Monitoring network buffer usage in a process tlemons Linux - Software 2 03-09-2007 04:24 PM
Home Network Usage mindspin Linux - Distributions 4 09-09-2004 02:40 PM
Network Monitoring/Usage tools? rohang Linux - Networking 2 03-12-2004 07:12 AM
network usage monitoring via console & generic apps bkeating Linux - Newbie 1 11-12-2003 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration