|internet and phone call|
|internet call waiting|
Main script is used to start and stop accounting rules, to save traffic counters in a file and to calculate total traffic values based on saved accounting data.
To start traffic accounting run
Main script makes use of another script which does the job (creates chains, populates them with rules, writes data to files, etc.). There are two kinds of that ultimate script: Variant 1 to measure direct traffic through Linux gateway which is either performing NAT or do not; and Variant 2 to measure traffic flowing through a proxy process on the gateway. Variant 1 will not measure traffic flowing through a proxy process on the gateway, similarly Variant 2 will not measure direct traffic through the gateway. IP addresses for which traffic measurement is performed are assumed to be on the intranet side of the gateway. Variant 3 is a combined variant of Variant 1 and Variant 2 scripts.