Hi There,

Thanks to Shorewall Geek (see posting "shorewall 4.0.14.2 Accounting") I got 
the shorewall accounting working OK
Just a quick question, Is there anyway I can reset the accounting without 
restarting the shorewall itself?

example

Shorewall 4.0.14.2 Chain accounting at debian - Sat Dec 6 16:11:10 EST 2008

Counters reset Fri Dec 5 12:28:19 EST 2008

Chain accounting (3 references)
pkts bytes target prot opt in out source destination
1490K 1559M total-i 0 -- ppp0 * 0.0.0.0/0 0.0.0.0/0
1083K 145M total-o 0 -- * ppp0 0.0.0.0/0 0.0.0.0/0
48689 32M hedges-i 0 -- ppp0 * 0.0.0.0/0 10.1.1.5
41512 7062K hedges-o 0 -- * ppp0 10.1.1.5 0.0.0.0/0

Can I reset chain "hedges" without resetting chain "total", or the only way is 
to reset the whole chains? how?
ordinary IPTABLES will OK since I will use it on cron job anyway

The idea is to extract the values to be store to database
Calculating the difference between the present bandwidth and the previous one 
will work, 
but why not just to reset the chain, say every15 mins and store the new value

Thanks for any reply



      Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now 
http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to