open_source:ccgx:ccgx_traffic_counting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
open_source:ccgx:ccgx_traffic_counting [2015-03-30 15:56] – [Viewing the data] thiemovanengelen | open_source:ccgx:ccgx_traffic_counting [2021-03-20 02:48] (current) – guystewart | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Traffic counting on the CCGX ====== | ====== Traffic counting on the CCGX ====== | ||
- | There are situation in which it is interesting to know the traffic usage of the color control. This can be done on the CCGX using [[http:// | + | There are situation in which it is interesting to know the traffic usage of the color control. This can be done on the GX device |
==== The rules ==== | ==== The rules ==== | ||
Line 175: | Line 175: | ||
log-reset) | log-reset) | ||
mkdir -p / | mkdir -p / | ||
- | iptables -L -v -x -n > / | + | iptables -L -v -x -n -Z > / |
;; | ;; | ||
*) | *) | ||
Line 190: | Line 190: | ||
< | < | ||
- | This allows shutting down the traffic counting using < | + | This allows shutting down the traffic counting using < |
When the traffic counting is stopped in this way, the current count values are stored together with the rules, allowing it to continue in the state it was stopped. | When the traffic counting is stopped in this way, the current count values are stored together with the rules, allowing it to continue in the state it was stopped. | ||
- | When the traffic counting should be started and stopped on startup and reboot of the CCGX, the following commands should also be executed: | + | When the traffic counting should be started and stopped on startup and reboot of the GX device, the following commands should also be executed: |
< | < | ||
- | ln -s / | + | ln -s / |
ln -s / | ln -s / | ||
</ | </ | ||
Line 329: | Line 329: | ||
show the incoming and outgoing traffic (in bytes) that is not for the local LAN. This is roughly the traffic that would normally be counted by the provider. | show the incoming and outgoing traffic (in bytes) that is not for the local LAN. This is roughly the traffic that would normally be counted by the provider. | ||
- | The lines under < | + | The lines under < |
The following line also resets the counters (besides showing the current values): | The following line also resets the counters (besides showing the current values): |
open_source/ccgx/ccgx_traffic_counting.1427723779.txt.gz · Last modified: 2015-03-30 15:56 by thiemovanengelen