Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zuverlässige Trafficanzeige?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
lostSoul
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 125
Location: /earth/germany/bielefeld

PostPosted: Sat Mar 20, 2004 6:02 pm    Post subject: Zuverlässige Trafficanzeige? Reply with quote

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
View user's profile Send private message
DarKRaveR
Guru
Guru


Joined: 11 Oct 2003
Posts: 500
Location: Old Europe/G-Many

PostPosted: Sat Mar 20, 2004 6:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
kurt
Guru
Guru


Joined: 25 Aug 2003
Posts: 403
Location: Arni (AG); CH

PostPosted: Sat Mar 20, 2004 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
stream
Guru
Guru


Joined: 04 Jan 2003
Posts: 401

PostPosted: Sat Mar 20, 2004 6:16 pm    Post subject: Reply with quote

vnstat ?
Back to top
View user's profile Send private message
lostSoul
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 125
Location: /earth/germany/bielefeld

PostPosted: Sat Mar 20, 2004 6:24 pm    Post subject: Reply with quote

stream wrote:
vnstat ?


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 :D 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
View user's profile Send private message
DarKRaveR
Guru
Guru


Joined: 11 Oct 2003
Posts: 500
Location: Old Europe/G-Many

PostPosted: Sat Mar 20, 2004 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum