---

Linux Network IP Accounting

[ 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 123.1.2.3 and 123.1.2.4? 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.”


Complete Story