My Custom Gargoyle "Dashboard" Image!

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
vask
Posts: 45
Joined: Tue Jul 21, 2009 4:33 pm

My Custom Gargoyle "Dashboard" Image!

Post by vask »

Screenshot:
Image

Description:
My Custom Gargoyle "Dashboard" allows you to have bandwidth plots on the left hand side of the screen and a "Black List" rule for easily banning users, OR you can customize the dashboard to show whatever you like. The right hand side of the screen is the normal gargoyle router interface with nothing else really modified though the /www files were taken from gargoyle 1.1.3 and the svn downloaded was from 2010-01-10.

Download/Installation:
Upgrade a WRT54Gv4 or WRT54GL that already has a version of Gargoyle installed on it with the following trx:
http://john.vaskos.com/v/1/gargoyle/brc ... uashfs.trx

Disclaimer:
I produced this image to the best of my ability but I take no responsibility for errors or losses. However, I have been using this image on a WRT54GL for since the beginning of 2010. It is Now almost June.

Known Issues:
If you edit a rule the [Close and Apply Changes] doesn't really do anything. This is the same with the gargoyle 1.1.6 version. Changes are NOT saved ( I don't think applied either ) until you click the save button from the [Firewall] >> [Restrictions] page. See:
http://www.gargoyle-router.com/phpbb/vi ... 2527#p2527

Customization/Workaround:
I could just compile a new image or just SSH into your LIVE router and replace:

Code: Select all

<iframe frameborder="0" scrolling="no" src="dash_restriction_chrome.sh" width="306px" height="86px"></iframe>
In:
/www/dash_frame.sh

With customs links or WHATEVER you want but I recommend:

Code: Select all

<fieldset style="width: 250px; padding: 10px; margin: 10px; border: 1px solid #888ab8; margin-left: 18px;">
	<a href="#" onclick="top.window.frames['main_frame'].location.href = location.protocol + '//' + location.host + '/hosts.sh';">Hosts</a>
	-
	<a href="#" onclick="top.window.frames['main_frame'].location.href = location.protocol + '//' + location.host + '/restriction.sh';">Restrictions</a>
</fieldset>
See Also:
Bandwidth Control Page - http://www.gargoyle-router.com/phpbb/vi ... ?f=7&t=217
Frame Friendly Gargoyle - http://www.gargoyle-router.com/phpbb/vi ... ?f=7&t=470
Last edited by vask on Sun May 23, 2010 5:53 am, edited 1 time in total.

vask
Posts: 45
Joined: Tue Jul 21, 2009 4:33 pm

Re: My Custom Gargoyle "Dashboard" Image!

Post by vask »

Moving forward with this modification I have the following in mind:

Lets start with a picture:
Image

- TODO: Bandwidth Plots: [Display MAC]/[Hostname] with Selected IP - http://www.gargoyle-router.com/phpbb/vi ... 506&p=2534 - If we are looking at Total Bandwitdth we could have just print the router info.

- TODO: Add a dropdown option for (IP Active ONLY) along with IP and Total Bandwidth. When the IP drop down is activated it should refresh the IP list. ie) if there is a new active client it should be in the list. I am not sure what sorting would be the best.

- MAYBE LATER: Bandwidth Plots: change the time increments to something more reasonable and scaled for a non-static-ip-assigned 0-config dashboard. Below is an example of an hourly time scale scaled by a factor of 10.
.1 hours
1 hour
10 hours
100 hours
1000 hours

- MAYBE LATER: Optimize display for 1024px x 512px with the frame exposed.

- MAYBE LATER: All displayed IP addresses on Gargoyle will be links to examine the specified IP in details on the dash. (Detailed IP view).

- MAYBE LATER: The last octet on the Local IP addresses can also be emphasized more. (My IPs all start with 192.168.3. ) ie)
192.168.3.8
192.168.3.14
192.168.3.155
192.168.3.250

Instead of:
192.168.3.8
192.168.3.14
192.168.3.155
192.168.3.250

- MAYBE LATER: have links from Web Monitor open in new tabs/windows instead of the same window by default.

- MAYBE LATER: Change the part below the graph to have a dropdown with various links to status pages and the restriction pages. Add a note in the code for how users can add custom links here.

- MAYBE LATER: Bandwidth Plots - get a smaller timeframe appx 5 min.

- MAYBE LATER: combine upload and download into the same graph.

- MAYBE LATER: Bandwidth Plots - Display active and changing [Connection Count] with Selected IP.

- MAYBE LATER: Ability to stop the live display from hosts.sh - http://www.gargoyle-router.com/phpbb/vi ... ?f=6&t=480
Last edited by vask on Wed Mar 10, 2010 6:32 pm, edited 22 times in total.

vask
Posts: 45
Joined: Tue Jul 21, 2009 4:33 pm

Re: My Custom Gargoyle "Dashboard" Image!

Post by vask »

The following info is to help accomplish items on the TODO list:

Show the hostname/mac/etc of 192.168.3.237:

Code: Select all

fgrep 192.168.3.237 /tmp/dhcp.leases | cut -d " " -f 2-4
Get active clients:

Code: Select all

arp | fgrep br-lan | cut -d " " -f 1-1
Get active connections:

Code: Select all

cat /proc/net/ip_conntrack | fgrep 192.168.3.202

Post Reply