Coder Social home page Coder Social logo

bandi13 / ddwrt-bandwidth-by-ip Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 30 KB

Based on https://csdprojects.co.uk/ddwrt/, I've added some changes which I want to keep track of.

License: GNU General Public License v2.0

Shell 51.76% JavaScript 48.24%

ddwrt-bandwidth-by-ip's Introduction

Heavily based on https://csdprojects.co.uk/ddwrt/, I've added some changes which I want to keep track of.

Extract the content of this zip file into /tmp/ on your router which should create a directory called MyPage.

The /tmp/MyPage/config.sh file contains some configuration options for the utility. You'll need to reboot the router for the changes to take effect.

Run the following via a telnet/ssh connection to your router:

ln -s /tmp/MyPage/www/qos_conntrack.js /tmp/www/
chmod +x /tmp/MyPage/*.sh
nvram set mypage_scripts="/tmp/MyPage/qos_conntrack.sh"
nvram commit
/tmp/MyPage/traffic_monitor.sh &

The terminal will appear to hang, this is normal, we are just doing this to test everything works before making it permanent. Browse to your router control panel then click on My Page which should have appeared in the Status section. If everything works, continue, if not then check you did everything above.

You will need to find a way to permanently store the files on your router, the easiest is to enable jffs2 if your router supports it. Assuming you use jffs2 do the following after the above:

cp -r /tmp/MyPage /jffs/

Alternatively, you could use a USB drive and change /jffs to /tmp/mnt/sda1 or wherever it was mounted.

Go into Administration, Commands. If you already have a startup script click Edit and put the command below at the end of it then click Save Startup. If you do not, put the following into the commands box (make sure its empty first) then click Save Startup.

cp -r /jffs/MyPage /tmp/
ln -s /tmp/MyPage/www/qos_conntrack.js /tmp/www/
/tmp/MyPage/traffic_monitor.sh&

My Page should now automatically be available every time you reboot the router.

ddwrt-bandwidth-by-ip's People

Contributors

bandi13 avatar ellismichaelc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ellismichaelc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.