Bandwith on a network card
Hello world!
Is there any good program running i bash or commando in linux where I can se how much one of my NICs send bytes and recived bytes over a timespan? The machine im trying to this with is my home webserver, yet I can't find a suitable program to check this.. (webalizer only analyzis web trafic, I wanna do this on EVERY port (of coz, it would be nice to se how much bandwith it takes on diffrent port also)). Does anyone know? Regardz, -- Rincewind "If you run away, you live to run away another day!" |
I know this is going to sound geeky, but you can always use iptables. You can create dummy chains for a certain match of a packet (unless, of course, you already have such chains and don't need dummy ones). Netfilter keeps packet and byte counters for every chain (viewable with `iptables -nL CHAIN' and zeroed with `iptables -Z CHAIN').
So for example, if you want to see the amount of ingress traffic destined for port 80 on your webserver, you could either
|
Not on an arbitrary port for an arbitrary time without special
tools/instructions. ifconfig will tell you TX/RX since an interface was enabled. You could use iptables LOG-target to record all packet sizes, though, or use any of the traffic monitoring tools out there. Have a search on http://freshmeat.net ... there's ipac-ng, for instance. Cheers, Tink |
All times are GMT -5. The time now is 04:22 PM. |