Posted: Tue Jul 27, 2010 23:38 Post subject: Re: Thanks for that
I think I may just get a used 600n on Ebay for a few obvious hardware reasons.
Back to one of my original questions - Is there a step by step for enabling the script that monitors per user bandwidth?
Thanks again all!
Actaully I used my Linksys WRT54GL v1.1 with an SD/MMC card mod to modify, test and develop this script! This script consumes minimal amount of CPU evertime it is cycled and runs perfectly fine on WRT54GL.
Yes, you can use the guide in the link mojso gave to mod an SD/MMC card.
WRT54GL is extremely modable, right now I'm halfway through modding to add two USB ports support for it. Image that!
Also, warhed, I believe I've already given quite a clear step by step implimentation for this script in the first post. I assume you need to know more about Startup Scripts and making the script excutable?
There are two ways of running a script everytime the router starts, one is by entering the code directly through the router's Web Interface, another is to write a startup script and use the extention .startup and place it in one of the correct locations.
To make the script executable run this in the command line:
chmod 700 /path_to/wrtbwmon
Or if you're using WinSCP with an SD/MMC card mod, just right-click on the file, select properties, and check all the X checkboxes.
Posted: Wed Jul 28, 2010 0:15 Post subject: ScriptI
I thought the script required an SD card, but that appears only to save the script to the device if you wish for the script to start every time the router restarts, rather than manually entering the script in the Admin Console Gui.
I am really new to this stuff so sorry for my ignorance about it all.
You can run this script without using an SD card nor do you need to have jffs space. You can copy the script to your /tmp/ folder (router's RAM memory) and run it from there. You can save a startup script to copy that for you everytime it restarts. Look at grant's first post. That's what he's doing. He uses an external ftp server to host the script and backup the database file. Yet another alternative is to use a Samba Server or CIFS.
Just search and read up on them from dd-wrt's wiki.
Posted: Fri Jul 30, 2010 21:55 Post subject: Router Password Protect Usage Data
It would be good usage.html be closed with router password
Hmm.. who are you trying to hide this page from? hehe..
Yup, it is possble to password protect this page with your router's password by using DD-WRT's My Page tab feature:
Router Password Protect Usage Data
To implement this, we will need to make three changes to the existing setup:
Go back to the startup script that you've created for this. We need to change this line:
The usage.html is now no longer published in the /tmp/www/ folder which is accessable by everyone. Instead we store it in a /tmp/ .
We need a script file to generate this usage.html page from /tmp/ to be displayed under the My Page tab within the router's configuration page, which in turn, makes this page router password protected! Download this script attached below or here:http://www.dd-wrt.com/phpBB2/download.php?id=15634. You can place this script anywhere (eg. /mmc/usage.sh), and remember to make it executable.
Now all we need to do is to enable the My Page tab! Get into your router's comand line interface (eg. via telnet or Command Shell within router's GUI) and run the following two lines. Remember to set the correct path:
nvram set mypage_scripts="/path_to/usage.sh"