accounting
Hi,
I want use the iptables for accounting.
1. How looks the iptable rules.
2. In which file under the proc filesystem I could read the counter values.
Thanks for any hints.
Klaus
Signature · 5 lines
ewt gmbh data management group tel: ++49 821 3106 319 fax: ++49 821 3106 399 url: www.ewt.de
Hi,
Am Don, 2003-10-09 um 15.44 schrieb Klaus Boehm:
Quoted 3 lines
I want use the iptables for accounting.
1. How looks the iptable rules.
2. In which file under the proc filesystem I could read the counter values.
There are probably better applications to do accounting, but if you want to do that:
1. This rule will cover all HTTP-traffic
iptables -A FORWARD -p tcp --port 80
2. You can read the counters using
iptables -vnL
3. You can reset the counters using
iptables -Z
Cheers,
Ralf
Signature · 6 lines
Ralf Spenneberg RHCE, RHCX Book: Intrusion Detection für Linux Server http://www.spenneberg.com IPsec-Howto http://www.ipsec-howto.org Honeynet Project Mirror: http://honeynet.spenneberg.org