Connection accounting stats
Hello Warwick,
Quoted 4 lines
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
Quoted 1 line · hard__ware
Hello Warwick,
Hi :)
Quoted 6 lines
Quoted 4 lines
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 .
Sorry, didn't make myself clear. I meant tcp connections. The connections that conntrack module keeps track of.
Warwick