View previous topic :: View next topic |
Author |
Message |
lostSoul Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2101772642418d42df53b0f.gif)
Joined: 26 Oct 2002 Posts: 125 Location: /earth/germany/bielefeld
|
Posted: Sat Mar 20, 2004 6:02 pm Post subject: Zuverlässige Trafficanzeige? |
|
|
Hi,
ich bin auf der Suche nach einer alternativen Quelle für den gesamten Trafficvebrauch, da ifconfig die unschöne Angewohnheit hat, sich nach einer bestimmten GB Zahl wieder auf 0 zu resetten :confused: Nach einer Suche per googlen und etlichen Linuxseiten bin ich nur in /proc auf /proc/net/dev gestossen, diese Datei ist aber glaube ich auch nur die Quelle von ifconfig (?). Jedenfalls ist nach einer bestimmten GB Zahl auch Schluss... Ich hoffe ihr könnt mir helfen
mfg |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DarKRaveR Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Oct 2003 Posts: 500 Location: Old Europe/G-Many
|
Posted: Sat Mar 20, 2004 6:14 pm Post subject: |
|
|
iptables
jede Rule hat einen packet und bytecounter.
kann sein, daß ifconfig nen 32 bit warparound macht, bei iptables solltest bis 2^64-1 Bytes auf der sicheren Seite sein, wenn ich recht entsinne, müßte aber nochmal kurz in den Source schauen. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kurt Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Bugs.gif)
Joined: 25 Aug 2003 Posts: 403 Location: Arni (AG); CH
|
Posted: Sat Mar 20, 2004 6:15 pm Post subject: |
|
|
hi
ist halt ne angewohnheit von den datentypen das wenn alle bit auf eins sind und ein bit dazu adiert wird automatisch alle bit auf null sind. es währe ja unlogisch wenn dem nicht so währe.
gruss
kurt |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stream Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1332339014407abbe05e496.gif)
Joined: 04 Jan 2003 Posts: 401
|
Posted: Sat Mar 20, 2004 6:16 pm Post subject: |
|
|
vnstat ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lostSoul Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/2101772642418d42df53b0f.gif)
Joined: 26 Oct 2002 Posts: 125 Location: /earth/germany/bielefeld
|
Posted: Sat Mar 20, 2004 6:24 pm Post subject: |
|
|
Ich habe leider mit dem Tool nur schlechte Erfahrungen gemacht. Bei der täglichen Trafficanzeige liegt der Wert den ppp0 verursacht haben soll immer so um die 5-10gb... und das mit t-dsl Vernünftig wird bei mir erst der Wert, wenn ich täglich einen Reboot durchführe
Ich werd mir wohl dann mal iptables genauer angucken :> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DarKRaveR Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Oct 2003 Posts: 500 Location: Old Europe/G-Many
|
Posted: Sat Mar 20, 2004 6:34 pm Post subject: |
|
|
okay, packet udn bytecounter sidn unsigned 64 Bit integers.
wenn es um einen rechner geht (routet er auch ?)
iptables -A INPUT -j ACCEPT
mach einfach mal ein iptables -v und siehe da, dort stehen die counter.
Ist bei jeder rule, ob masq, nat oder sonstiges. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|