EFW Support

Development => Contribute Your Customisations & Modifications => Topic started by: oakleeman on Friday 23 December 2011, 05:21:19 pm



Title: Traffic Statistics Mod
Post by: oakleeman on Friday 23 December 2011, 05:21:19 pm
I'm happy to release my first mod for EFW.

Traffic Statistics provides a summary page of the bandwidth usage of each interface for several time periods:

You can download it from here: skynet-solutions.net/mods/efw/trafficstats.tgz

If you aren't logged in to the forums, you can see a screenshot here: skynet-solutions.net/mods/efw/trafficstats.png

You'll have to SCP it over to your EFW, uncompress it, change to the trafficstats directory, and then run install.sh.

It has been tested on EFW Versions 2.3, 2.4, & 2.4.1


Title: Re: Traffic Statistics Mod
Post by: sindrom on Friday 23 December 2011, 05:56:10 pm
Super thanks !) That will be very usefull ;)


Title: Re: Traffic Statistics Mod
Post by: davvidde on Sunday 25 December 2011, 01:24:47 pm
May you explain shortly where these informations are collected?
May the statistics be updated by pressing the submit button?

Thanks.
Davide.


Title: Re: Traffic Statistics Mod
Post by: oakleeman on Thursday 29 December 2011, 11:26:30 am
The statistics are updated hourly using ipacsum and stored in a log file in the /var/log directory. All submit does is update either the interface shown or the time period.


Title: Re: Traffic Statistics Mod
Post by: kieronrob on Tuesday 14 February 2012, 01:09:47 am
Hi all,

Thanks for this, just what I needed! I have to keep track of usage caps and this does it perfectly!

Works on Endian 2.5.1 no problem.


Title: Re: Traffic Statistics Mod
Post by: joejoethedogfaceboy on Thursday 02 May 2013, 02:16:58 am
Thanks for this great mod!  Also confirmed that it works out of the box on 2.5.1.

I made a small change to trafficstats.cgi so that it also reports Terabytes.  Change line 33 to:

  my @args = qw/B KB MB GB TB/;


(I suppose you could add " PB" at the end, too, to show PetaBytes, but I'm definitely a long ways away from that kind of traffic!)

Thanks

-Joe


Title: Re: Traffic Statistics Mod
Post by: sree on Sunday 12 May 2013, 03:45:52 pm
Excellent ...Thanks for sharing with us.



Cheers~
sree


Title: Re: Traffic Statistics Mod
Post by: kieronrob on Tuesday 01 October 2013, 11:56:01 pm
This doesn't appear to be working with EFW 2.5.2!

I really liked this, any way to get it working again?


Title: Re: Traffic Statistics Mod
Post by: oakleeman on Thursday 31 October 2013, 03:02:51 am
Sorry, but we quit using EFW shortly after this and started replacing our firewalls with pfSense. If someone wants to take the code & update it, they are free to do so.


Title: Re: Traffic Statistics Mod
Post by: joejoethedogfaceboy on Tuesday 07 October 2014, 02:55:41 pm
Added this to /etc/crontab right above the ipacsum lines:

Code:
# get data for ipacsum
*/5 * * * * /usr/sbin/fetchipac

and restarted cron

Code:
/etc/init.d/fcron restart

Looks like the crontab for root lost that line during the 2.5.2 upgrade?  Does anything else use ipac-ng?


Title: Re: Traffic Statistics Mod
Post by: sergio.h on Tuesday 31 March 2015, 12:34:03 am
the best !


Title: -
Post by: MariMow on Monday 27 June 2022, 03:09:27 am
Anyone know where I can get the parts to change the wiper control on my 1995 bighorn.  I want to change it from the dash to a stalk on the steering column.  Currently the column has a single stalk for the indicators.