Re: accounting on network

Glynn Clements (glynn@sensei.co.uk)
Thu, 28 May 1998 09:04:03 +0100 (BST)


P r a b o w o wrote:

> I ve LAN and connected to internet via Linux Box.
>
> Is there any application on linux, to know who, where, usage to access
> internet for each client ?

If you want information on the traffic being routed through the Linux
box, you can use IP accounting.

Ensure that the kernel has been compiled with CONFIG_IP_ACCT (if it
has, the file /proc/net/ip_acct will exist).

You can then use ipfwadm to configure accounting rules, which will
count the number of packets and bytes which match each rule.

If the kernel has been compiled with CONFIG_IP_FIREWALL_VERBOSE
enabled, you can use ipfwadm's `-o' flag to log packets which match a
given rule. If used in conjunction with the `-y' flag, this will log
TCP SYN packets, giving you a log of every TCP connection which is
made.

-- 
Glynn Clements <glynn@sensei.co.uk>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu