Linux Network IP Accounting
Nov 10, 2010, 14:33 (0 Talkback[s])
[ Thanks to An Anonymous Reader for
this link. ]
"I need to know how much data are transmitted on my
ppp0 network or eth0 Internet links? How do I set IP accounting by
address such as 22.214.171.124 and 126.96.36.199? How do I set IP accounting
per Apache virtual domain? How do I set accounting by service port
(http, smtp) and protocol (tcp, udp, icmp)? How do I record how
much traffic each of the clients computer is using?
"You don't have to install anything special. The Linux kernel
comes with IP accounting which is part of iptables. It is the part
of Linux firewall software. At firewall level you can filter
traffic and configure IP accounting. Linux kernel collects lots of
information about the network traffic and same can be used for IP
accounting. You can also use 3rd party software too."