From: "hard__ware" Subject: re:Connection accounting stats Date: Wed, 2 Oct 2002 20:07:08 +1000 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Cc: wmitchell@glug.org.au Hello Warwick, > Just wondering if there is anyway to log how many bytes are transfered in > a connection? Not of a rule, but of an actual connection. The PIX > firewalls do something similar to this. Additionly it would be good to > know the total time of the connection, but that's not necessary. it depennds on weather you using a Network (ethernet) or dialup connection . you could have something in /etc/ppp/ip-down.local to outout the stats to a file and maybee even firewall stats before they may reset (especially with dhcp connections) pppstats ifconfig iptables -L -n -v iptables -L -n -v -t nat (add mangle if you use it) you can also specify certain line No, in your firewall tables so only they are exported, ect Refer to the iptables man pages for help on line numbering ect .. Hope This Helps :D