Hi Cam
>My ISP will soon be imposing transfer limits of 5GB/month.
>Can Dachstein give me a report of how much I have used?
I've done a lot of work on a similar problem - as
traffic costs in NZ appear to be at least an
order of magnitude more than in the US.
>I have not seen it in the weblet.
The "network setup" option shows total packets and bytes on each interface.
(this may get reset if you have a PPP connection that is restarted
frequently??? I don't use PPP so I have no idea.)
Eventually, I have done the following:
1 Added some accounting rules to ipchains
e.g. use something like
ipchains -I input -i ppp0
ipchains -I output -i ppp0
where ppp0 is your external interface (ours is eth1)
I added those rules just before the final "}"
in /etc/ipfilter.conf
Those ipchains rules without targets (-j) are accounting rules,
they will record all traffic in and out of the firewall,
the "-I" inserts them at the start of the chain.
The traffic for these entries will show up when you
view "firewall rules" in the weblet.
You can view the figures by:
ipchains -L -v
(-v = verbose gives the packets and bytes columns)
I made some custom scripts for weblet that run
ipchains -L -Z -v
to return the traffic figures. I run a cron job on
a Linux server that collects these figures every 15 minutes and
stores them in a database - it's a bit complicated...
Greg Ford
ReddFish intergalactic
Wellington, NZ
Cam
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html