Sunday, April 25, 2021

OpenWrt 21.02.0 rc1 integrated bandwidth monitoring per client Install luci-wrtbwmon and wrtbwmon :Updated 04/25/2021

TP-Link TL-WDR4300 v1 OpenWrt 22.03
Install luci-wrtbwmon and wrtbwmon on OpenWrt
Updated 12/10/2022

Update: 12/10/2022 Still working
Update: 4/25/2021 Changed download link's working on 21.02 rc1
Update: 3/12/2019 this seems to be broken in the 18.06.0 - .1 -.2 firmware
Update: This also works on 17.01.4  

I wrote this for myself mostly for future reference, I wanted to monitor in real time the traffic that was flowing thru my router.


 

 After connecting with PuTTY using SSH I used these commands. 

opkg update


 opkg install wrtbwmon_0.37_ipv6_all.ipk
 
opkg install luci-wrtbwmon_v0.8.3_all.ipk


 /etc/init.d/wrtbwmon enable

/etc/init.d/wrtbwmon start

 

 
Not sure if it's necessary but due to errors in luci I installed this (Configuration and User file were not displayed properly)
 
This is necessary 
opkg install luci-compat
 
I had to reboot:
reboot
 
 

 
 Then in a web browser open LEDE, Default IP is 192.168.1.1
Navigate to Network > Usage
 

 
 
 And select Configuration then  Persist database (Install luci-compat if this looks different)
 
Press Save & Apply
 
 
 
 
  Then Navigate to Network >Usage > User File -- if you want to label names for unknown Hosts, Usually DHCP and DNS takes care of this. (Install luci-compat if this looks different)
 

 Press Submit when done
 
 If it works delete the downloaded packages as they are no longer needed
make sure no other ipk's are there that you may want to keep with ls:

 rm -r *.ipk  
 Note: You can also use the hosts file to name hosts
If you do not use DHCP and your computers have static IP's instead of showing MAC address you could write the computer names to LEDE's hosts file and put the computer names there, The pic at the top of the page show's the computer names because of this (##1). The other pic (##2) shows without.

I use ssh and nano so here are the commands:

opkg update && opkg install nano
 nano /etc/hosts

add the computer names in this format, Do not delete anything just add the computer names.
192.168.200.99 Computer1
192.168.200.101 Computer2
192.168.200.103 Computer3



Links:

Some of the pictures probably got screwed up because i don't think blogger has a cancel button




















1 comment:

  1. That's great thanks man! I also upgraded my router's RAM & ROM. https://github.com/Dishendramishra/tp-link_mr3220_v2_openwrt
    check my github repo hope you will find it interesting.

    ReplyDelete