Go Back   Wireless and Wifi Forums > News > Newsgroups > alt.internet.wireless
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2007, 03:33 PM
George
Guest
 
Posts: n/a
Default logging traffic from router running DD-WRT

I have a WHR-G54S running v24 beta. We will have a few visitors (family)
that will be bringing notebooks. I want to avoid p2p issues so I have
experimented with the p2p filtering which seems to work but I also would
like to log the traffic because I want to see if it really works.

I have rflow collector running and it has the info I need but the info
isn't stored. I installed MySQL and set up the tables exactly like they
are noted in Rflow collector only very little is getting written to the
database. Googling tells me that this is a common thing and it needs
more polishing.

Anyone use other logging applications that have good reporting that work
with DD-WRT?

Reply With Quote
  #2 (permalink)  
Old 10-21-2007, 04:38 PM
Jeff Liebermann
Guest
 
Posts: n/a
Default Re: logging traffic from router running DD-WRT

George <george@nospam.invalid> hath wroth:

>I have a WHR-G54S running v24 beta. We will have a few visitors (family)
>that will be bringing notebooks. I want to avoid p2p issues so I have
>experimented with the p2p filtering which seems to work but I also would
>like to log the traffic because I want to see if it really works.
>
>I have rflow collector running and it has the info I need but the info
>isn't stored. I installed MySQL and set up the tables exactly like they
>are noted in Rflow collector only very little is getting written to the
>database. Googling tells me that this is a common thing and it needs
>more polishing.


Make sure you have the rstats daemon enabled:
Administration -> Services -> Rstats -> Enable

>Anyone use other logging applications that have good reporting that work
>with DD-WRT?


What data are you interested in logging?

For RFLOW, did you use these instructions?
<http://www.dd-wrt.com/wiki/index.php/Using_RFlow_Collector_and_MySQL_To_Gather_Traffic_ Information>
I had it working on v23 SP2 with MySQL 4.1(?) on SUSE 9.3(old), but
haven't tried it on the latest versions. In theory, any NETFLOW
analyzer will work. Use Google, there are plenty to choose from.
<http://en.wikipedia.org/wiki/Netflow>

I didn't use NETFLOW and instead decided to use SNMP to log traffic.
If all you want is aggregate traffic by IP, I suggest MRTG, PRTG (4
users max), or RRDTool (Linux or Cygwin). These look useful:
<http://www.dd-wrt.com/wiki/index.php/Multi_Router_Traffic_Grapher>
<http://www.engadget.com/2006/08/01/how-to-measure-your-bandwidth-with-snmp/>

However, before you dive into SNMP, you should have some kind of
debugging tools available. I use snmputil.exe and GetIF 2.3.1. I
covered these in a previous posting at:
<http://groups.google.com/group/alt.internet.wireless/msg/8c28d081e3c32f21>

--
Jeff Liebermann jeffl@cruzio.com
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558

Reply With Quote
  #3 (permalink)  
Old 10-23-2007, 02:06 AM
George
Guest
 
Posts: n/a
Default Re: logging traffic from router running DD-WRT

Jeff Liebermann wrote:
> George <george@nospam.invalid> hath wroth:
>
>> I have a WHR-G54S running v24 beta. We will have a few visitors (family)
>> that will be bringing notebooks. I want to avoid p2p issues so I have
>> experimented with the p2p filtering which seems to work but I also would
>> like to log the traffic because I want to see if it really works.
>>
>> I have rflow collector running and it has the info I need but the info
>> isn't stored. I installed MySQL and set up the tables exactly like they
>> are noted in Rflow collector only very little is getting written to the
>> database. Googling tells me that this is a common thing and it needs
>> more polishing.

>
> Make sure you have the rstats daemon enabled:
> Administration -> Services -> Rstats -> Enable


Rflow & MACupd are enabled. That doesn't seem to be the issue since
Rflow collector is showing lots of data.

>
>> Anyone use other logging applications that have good reporting that work
>> with DD-WRT?

>
> What data are you interested in logging?


I want to log traffic from/to LAN IPs (what they connected to, how
much data was moved and a timestamp). Rflow collector is showing all of
that but just doesn't save it.

>
> For RFLOW, did you use these instructions?
> <http://www.dd-wrt.com/wiki/index.php/Using_RFlow_Collector_and_MySQL_To_Gather_Traffic_ Information>
> I had it working on v23 SP2 with MySQL 4.1(?) on SUSE 9.3(old), but
> haven't tried it on the latest versions. In theory, any NETFLOW
> analyzer will work. Use Google, there are plenty to choose from.
> <http://en.wikipedia.org/wiki/Netflow>



Thats what I used. Only I am running MySQL 5 and have authentication
compatibility turned on so Rflow Collector can authenticate.

It authenticates but writes almost nothing into the DB. I don't know how
to determine what is broken. It could be because I am running DD-WRT v24.

>
> I didn't use NETFLOW and instead decided to use SNMP to log traffic.
> If all you want is aggregate traffic by IP, I suggest MRTG, PRTG (4
> users max), or RRDTool (Linux or Cygwin). These look useful:
> <http://www.dd-wrt.com/wiki/index.php/Multi_Router_Traffic_Grapher>
> <http://www.engadget.com/2006/08/01/how-to-measure-your-bandwidth-with-snmp/>


Thanks but I was shooting for more detail.

>
> However, before you dive into SNMP, you should have some kind of
> debugging tools available. I use snmputil.exe and GetIF 2.3.1. I
> covered these in a previous posting at:
> <http://groups.google.com/group/alt.internet.wireless/msg/8c28d081e3c32f21>
>


Reply With Quote
  #4 (permalink)  
Old 10-23-2007, 06:30 AM
Jeff Liebermann
Guest
 
Posts: n/a
Default Re: logging traffic from router running DD-WRT

George <george@nospam.invalid> hath wroth:

>> Make sure you have the rstats daemon enabled:
>> Administration -> Services -> Rstats -> Enable

>
>Rflow & MACupd are enabled. That doesn't seem to be the issue since
>Rflow collector is showing lots of data.


Is rstats enabled?

>It authenticates but writes almost nothing into the DB. I don't know how
>to determine what is broken. It could be because I am running DD-WRT v24.


I don't think there's much difference in Rflow in v23 sp2, sp3, and
v24. If Rflow is really collecting data, then methinks there might be
something wrong with it passing the data to MySQL. Since only some of
the data is making it into the database, methinks there might be
something wrong with the SQL schema. No way to tell from here.

I suggest you take both Rflow and MySQL out of the picture and try a
demo version of any of several dozen Netflow analyzers and loggers. If
they capture data correctly, then at least you know that DD-WRT is
doing it right. That leaves Rflow and MySQL.

--
Jeff Liebermann jeffl@cruzio.com
150 Felker St #D http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann AE6KS 831-336-2558

Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a firewall in most wireless cafes? marcy alt.internet.wireless 28 08-05-2007 02:02 AM
Re: First time home wireless - how to match PC to router - setup question Roger Harrison alt.computer.security 3 06-18-2007 07:03 AM
Vista conection problem? TSMC alt.internet.wireless 6 06-05-2007 06:29 PM
Router Configuration - port forwarding larrylebron@gmail.com alt.comp.hardware 2 10-18-2006 03:00 AM
checking my router Amanda alt.internet.wireless 28 08-08-2006 04:31 PM


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45