ip_conntrack with QoS and bandwidth use reporting

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
gooderlooking
DD-WRT Novice


Joined: 31 Aug 2014
Posts: 3

PostPosted: Sun Aug 31, 2014 6:56    Post subject: Reply with quote
I was also getting the 'ASSURED' error with the original OP instructions (using the '13c' version of the script linked from the project page at csdprojects.co.uk).

I ended up using the '13e' version that alexatkinuk posted two posts up. In the zip there's an 'Install Instructions.txt' that adds a sleep and extra param to the startup script. Follow those instructions and you should be golden.

For the sake of laziness, here's everything I needed to run:
Code:

# Change this path to fit your setup (eg '/jiffs')
cd /mnt/sda4

# Download
wget http://csdprojects.co.uk/DD-WRT/qos_conntrack_0.13e.zip
unzip qos_conntrack_0.13e.zip
mv qos_conntrack_0.13e qos_conntrack

# Startup script
cp -r /mnt/sda4/qos_conntrack/MyPage /tmp/
ln -s /mnt/sda4/qos_conntrack/MyPage/www/qos_conntrack.js /tmp/www/
chmod +x /tmp/mnt/sda4/qos_conntrack/MyPage/*.sh
sleep 30
/mnt/sda4/qos_conntrack/MyPage/traffic_monitor.sh 10&

# Register as MyPage
nvram set mypage_scripts="/mnt/sda4/qos_conntrack/MyPage/qos_conntrack.sh"
nvram commit
Sponsor
gooderlooking
DD-WRT Novice


Joined: 31 Aug 2014
Posts: 3

PostPosted: Mon Sep 01, 2014 18:53    Post subject: ddwrt_conntrack Reply with quote
Not exactly sure how I got it working the first time, but after rebooting and trying half a dozen times, I was getting the 'ASSURED' JS errors. I dug in to see what the problem was, and one thing lead to another...

I just pushed a GitHub project (as in, 5 min ago, so you might want to give me a day to actually run through the full install). It's available here:

https://github.com/impressiver/ddwrt_conntrack

I fixed a few JS bugs, got rid of 'eval', and cleaned up a bunch of JSLint errors. I also added some mods from this thread, like @Falcon4's ip_conntrack parsing block. I plan to add more as I get familiar with the available data.

The only issue right now is with QoS ratings not getting parsed correctly, due to ip_conntrack reporting masked 'mark' values in the 3.x KONG build I'm running. If anyone knows how to parse those into something I can use to determine QoS priorities, please let me know!

I hope this is cool with @alexatkinuk. I made sure to give attribution in the README, and I'm happy to make adjustments, add license info (if there is one), and take any suggestions on improvements.
black_cat
DD-WRT Novice


Joined: 05 Dec 2011
Posts: 6

PostPosted: Tue Sep 02, 2014 11:58    Post subject: Reply with quote
Please help with this very good script!
I have installed it but does not see client list (it empty) after calculating.

script is started well.
Code:

root@ddwrt:/tmp# ps |grep traff
  553 root       896 S    grep traff
 1088 root      1712 S    ttraff
23765 root       908 S    {traffic_monitor} /bin/sh ./traffic_monitor.sh 10


file traffic.asp look like good (see attachment)

My config: dd-wrt r24118, TP-Ling 1043 V2.0[/code]
patbach
DD-WRT Novice


Joined: 03 Sep 2014
Posts: 9

PostPosted: Fri Sep 05, 2014 2:54    Post subject: Reply with quote
Hi, I have a similar problem as the guy above me. It took me hours and hours to reach this point. I had a lot of troubleshooting to reach where I am now, and I'm so close to have it working!

I have 2 wired devices, and 7 wireless devices connected on/off from my router, and when I go in "My Page" I only see one of them, my IP camera.

My router is a netgear WNDR3700v3

*edit*
Oh, also it says my camera is uploading around 200kb/s.. all the time, even when there is no computer currently looking at the video stream. Is it possible to know to which device this device is uploading to?

Oh and how is it possible to decipher LAN and WAN bandwidth with this script?

black_cat
DD-WRT Novice


Joined: 05 Dec 2011
Posts: 6

PostPosted: Fri Sep 05, 2014 10:44    Post subject: Reply with quote
patbach, can U show traffic.asp content?
it located in http://your_router_ip/user/traffic.asp
patbach
DD-WRT Novice


Joined: 03 Sep 2014
Posts: 9

PostPosted: Fri Sep 05, 2014 12:32    Post subject: Reply with quote
black_cat wrote:
patbach, can U show traffic.asp content?
it located in http://your_router_ip/user/traffic.asp


{arp::'192.168.1.10','48:02:2A:52:60:51','-'}
{ip_conntrack::'tcp','192.168.1.3','46220','192.168.1.10','8888',0,'tcp','192.168.1.3','46230','192.168.1.10','8888',0,'tcp'........

I typed some dots because this second line of code goes on foreeeever. But anyway I'm guessing the first line is the one interesting?

Why does it only have my camera IP, and nothing else?
patbach
DD-WRT Novice


Joined: 03 Sep 2014
Posts: 9

PostPosted: Fri Sep 05, 2014 23:21    Post subject: Reply with quote
Found the solution from user Falcon4 in this thread http://www.dd-wrt.com/phpBB2/viewtopic.php?t=84442&postdays=0&postorder=asc&start=75:

Basically open traffic_monitor.sh and replace line 4 with the other he provides.

Quote:
Resolution: In line 4 of traffic_monitor.sh:
Code:
LAN_TYPE=$(nvram get lan_ipaddr | awk ' { FS="."; print $1"."$2 }')
Reformat the awk with beginning and ending brackets:
Code:
LAN_TYPE=$(nvram get lan_ipaddr | awk 'BEGIN { FS = "."; } END { print $1"."$2 }'
black_cat
DD-WRT Novice


Joined: 05 Dec 2011
Posts: 6

PostPosted: Mon Sep 08, 2014 12:11    Post subject: Reply with quote
patbach, You're right. This solution worked and for me too.
But you forgot bracket and the end of line.
Must be:
Code:
LAN_TYPE=$(nvram get lan_ipaddr | awk 'BEGIN { FS = "."; } END { print $1"."$2 }')
softpex
DD-WRT Novice


Joined: 21 Oct 2014
Posts: 5

PostPosted: Thu Oct 23, 2014 9:34    Post subject: Reply with quote
Hello please where can i find the /temp/ directory?
Thanks
sparky3387
DD-WRT Novice


Joined: 25 Oct 2014
Posts: 1

PostPosted: Sat Oct 25, 2014 13:52    Post subject: Reply with quote
If you dont want to have to add every client to the static list then:

Add this line:
awk '{ printf " '\''%s'\'': { online: false, name: \"%s\" },\n",$3,$4; }' /tmp/dnsmasq.leases

Under:
awk '{ printf " '\''%s'\'': { online: false, name: \"%s\" },\n",$1,$2; }' /tmp/hosts

in the file:
/jffs/ddwrt_conntrack/MyPage/ddwrt_conntrack.sh
vortex05
DD-WRT User


Joined: 14 Mar 2014
Posts: 154

PostPosted: Fri Nov 28, 2014 19:36    Post subject: Reply with quote
I hate to say this but this contribution is sort of dead.

It looked nice but ultimately it was a bit buggy and it seems like the original dev here has abandoned it.

There's another script on these forums it seems to work but it's not as pretty.
Lusitano
DD-WRT User


Joined: 25 Jun 2014
Posts: 100
Location: São Paulo - Brazil

PostPosted: Thu Dec 18, 2014 23:35    Post subject: Reply with quote
Hi there, anyone tried this in new releases ? '12-15-2014-r25648'
suomaf
DD-WRT Novice


Joined: 07 Jun 2014
Posts: 2

PostPosted: Sat Dec 27, 2014 2:00    Post subject: Reply with quote
I had this working a few days back and now it is just constantly showing calculating? Is it a browser thing? Should I flush something? I am using DD-WRT v24-sp2 (06/06/14) kongac on an asus RT-AC86U
inflames900
DD-WRT Novice


Joined: 25 Aug 2014
Posts: 2

PostPosted: Sat Sep 05, 2015 23:51    Post subject: Reply with quote
i have the same problem. it worked once but when i now visit the page it keeps calculating. Anyone got this working?
wecucho
DD-WRT Novice


Joined: 11 Jan 2013
Posts: 24

PostPosted: Sat Feb 27, 2016 14:25    Post subject: still working? Reply with quote
Hi, I downloaded this from https://github.com/impressiver/ddwrt_conntrack and set it up but I'm getting "CALCULATING..." on each section at the monitor page no matter how long I wait, is like something is broken.

https://www.dropbox.com/s/gllb1ddlzmvl36l/Screenshot%202016-02-27%2009.21.30.png?dl=0

I'm running Firmware: DD-WRT v3.0-r29002 (02/01/16) std

Anyone is still using this or there ir another tool to monitor network bandwidth, I'm just trying to get a way to locate the device stealing the bandwidth.

Cheers,
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next Display posts from previous:    Page 7 of 8
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum