Re: measure throughput?

From: linuxnooby (linuxnooby_at_yahoo.com.au)
Date: 03/31/05


Date: 30 Mar 2005 18:15:32 -0800

Thanks Jose

what does this look like (assuming eth0 is outside interface)??
also how do i view the counters??

iptables -N DOWNLOADS
iptables -A INPUT -i eth0 -j DOWNLOADS
iptables -A FORWARD -i eth0 -j DOWNLOADS
iptables -A DOWNLOADS -j RETURN

iptables -N UPLOADS
iptables -A OUTPUT -o eth0 -j UPLOADS
iptables -A FORWARD -0 eth0 -j UPLOADS
iptables -A UPLOADS -j RETURN

thanks
Dave

Jose Maria Lopez Hernandez <jkerouac@bgsec.com> wrote in message news:<424a7d2c_4@x-privat.org>...
> linuxnooby wrote:
> > Hi
> >
> > I have a linux firewall. I would like to measure how much data (all
> > data icmp tcp udp) is passing through this machine.
>
> If you want to meter the TCP packets, for example, you can create
> a new chain called TCPMETER and send all the data to that chain,
> then in the chain you just add a single rule with an unconditional
> RETURN. You just read the counters for that rule and you are done.
>
> > what i want to know is my internet uploads and downloads. Can any one
> > reccomend software that can do this on the linux box??
> >
> > cheers David
>
> Regards.
>
> --
>
> Jose Maria Lopez Hernandez
> Director Tecnico de bgSEC
> jkerouac@bgsec.com
> bgSEC Seguridad y Consultoria de Sistemas Informaticos
> http://www.bgsec.com
> ESPAŅA
>
> The only people for me are the mad ones -- the ones who are mad to live,
> mad to talk, mad to be saved, desirous of everything at the same time,
> the ones who never yawn or say a commonplace thing, but burn, burn, burn
> like fabulous yellow Roman candles.
> -- Jack Kerouac, "On the Road"



Relevant Pages

  • trying to set-up and configure iptables
    ... -i made sure ipchains was off. ... because 'ipchains' is not compitible with my kernel so it won't work ... Now to make iptables run i tried: ... downloads' partition. ...
    (comp.os.linux.security)
  • Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
    ... that the networking people are beign silly, and should not synchronize ... Userspace submits a table, checkentry is ... The fact that `iptables -A` is called a hundred times means you are ... The counters are 64-bit entities, ...
    (Linux-Kernel)
  • Re: measure throughput?
    ... > iptables -N DOWNLOADS ... Then you can use iptables -L UPLOADS -xvn ... to get the counters and you can use bash or perl to extract the ... The only people for me are the mad ones -- the ones who are mad to live, ...
    (comp.os.linux.networking)
  • Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
    ... that the networking people are beign silly, and should not synchronize ... Userspace submits a table, checkentry is ... The fact that `iptables -A` is called a hundred times means you are ... The counters are 64-bit entities, ...
    (Linux-Kernel)
  • Re: iptables blocks access to some websites?
    ... When I turned off iptables completely to check, the websites ... The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. ...
    (comp.os.linux.networking)