Networking Forums

Networking Forums > Computer Networking > Linux Networking > Traffic counting

Reply
Thread Tools Display Modes

Traffic counting

 
 
Dmitry Davletbaev
Guest
Posts: n/a

 
      05-04-2005, 05:34 AM
Hi!

Is iptables/ipchains the only mechanism to count network traffic in Linux? If
not, what are other mechanisms?

Thank you.

--
Dmitry Davletbaev.
 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      05-04-2005, 07:25 AM
Dmitry Davletbaev wrote:

>Hi!
>
>Is iptables/ipchains the only mechanism to count network traffic in Linux? If
>not, what are other mechanisms?
>
>Thank you.
>
>
>


There is a number of traffic accounting programs based on libpcap. I
use pmacct, for example, but there are more.

Hope this helps,
Mihai
 
Reply With Quote
 
Alexander Clouter
Guest
Posts: n/a

 
      05-05-2005, 03:50 PM
Dmitry,

On 2005-05-04, Dmitry Davletbaev <no-(E-Mail Removed)> wrote:
> Hi!
>
> Is iptables/ipchains the only mechanism to count network traffic in Linux? If
> not, what are other mechanisms?
>

depends what you are counting, we for example have L2TP tunnels and use the
l2tpd daemon to do the counting for us. All you do is script a telnet in and
running a particular command and munching the output.

If you do use iptables and have more than 500 individual IP's to track I
recommend you 'hash' the IP's. Create a bunch of chains for each /24, /26,
/28, whatever suits you best and have first of all a bunch of iptables rules
to jump to the correct chain. Think always in terms of 'average rule parsing
length' and try to keep this value as low as possible.

Cheers

Alex
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plusnet 48hrs and counting Jamie@nospam.shoshone.co.uk Broadband 4 02-10-2006 06:45 AM
Bulldog down for 5 weeks and counting sprotty@hotmail.com Broadband 2 11-08-2005 03:59 PM
BT Business Broadband down for six days and counting Peter Hawkins Broadband 0 01-25-2005 02:55 PM
Counting Bandwidth Usage Thru Ip Tables garg_dinesh Linux Networking 2 04-22-2004 07:59 PM
counting traffic to individual hosts behind a NAT router using ONLY iptables C3 Linux Networking 9 09-10-2003 12:06 AM



1 2 3 4 5 6 7 8 9 10 11