Linux Netfilter discussions
 help / color / mirror / Atom feed
* Measuring traffic
@ 2002-09-12 16:45 Rowan Reid
  2002-09-12 18:53 ` Antony Stone
  2002-09-13  8:06 ` dizma
  0 siblings, 2 replies; 5+ messages in thread
From: Rowan Reid @ 2002-09-12 16:45 UTC (permalink / raw)
  To: netfilter



Is there a way using IPTables to measure network traffic across the
firewall ? Perhaps even begin categorizing it by client.
 
Rowan Reid
Job Captain, 
Systems Administrator
STUDIO 3 ARCHITECTS
909  982  1717



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Measuring traffic
  2002-09-12 16:45 Measuring traffic Rowan Reid
@ 2002-09-12 18:53 ` Antony Stone
  2002-09-13  8:06 ` dizma
  1 sibling, 0 replies; 5+ messages in thread
From: Antony Stone @ 2002-09-12 18:53 UTC (permalink / raw)
  To: netfilter

On Thursday 12 September 2002 5:45 pm, Rowan Reid wrote:

> Is there a way using IPTables to measure network traffic across the
> firewall ? Perhaps even begin categorizing it by client.

iptables -A FORWARD -s a.b.c.d
or
iptables -A FORWARD -p tcp --dport 80
or both:
iptables -A FORWARD -s a.b.c.d -p tcp --dport 80

(Yes, there is no -j TARGET at the end of those commands).

Then
iptables -L FORWARD -n -v -x
will show you the packet & byte counts for each rule which matched packets - 
in this case, all packets from a specific source address, all packets 
containing http requests, or all http request packets from a specific source 
address.....

Antony.

-- 

It is also possible that putting the birds in a laboratory setting
inadvertently renders them relatively incompetent.

 - Daniel C Dennett


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Measuring traffic
  2002-09-12 16:45 Measuring traffic Rowan Reid
  2002-09-12 18:53 ` Antony Stone
@ 2002-09-13  8:06 ` dizma
  2002-09-13 17:05   ` Rowan Reid
  1 sibling, 1 reply; 5+ messages in thread
From: dizma @ 2002-09-13  8:06 UTC (permalink / raw)
  To: netfilter

try ipac-ng packet

http://sourceforge.net/projects/ipac-ng/

NN
----- Original Message ----- 
From: "Rowan Reid" <rreid@studio3arc.com>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, September 12, 2002 7:45 PM
Subject: Measuring traffic


> 
> 
> Is there a way using IPTables to measure network traffic across the
> firewall ? Perhaps even begin categorizing it by client.
>  
> Rowan Reid
> Job Captain, 
> Systems Administrator
> STUDIO 3 ARCHITECTS
> 909  982  1717
> 
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Measuring traffic
  2002-09-13  8:06 ` dizma
@ 2002-09-13 17:05   ` Rowan Reid
  2002-09-13 17:27     ` Rowan Reid
  0 siblings, 1 reply; 5+ messages in thread
From: Rowan Reid @ 2002-09-13 17:05 UTC (permalink / raw)
  To: 'dizma', netfilter



Hi,

Thanks for the recommendation, Since you suggested I figured I would
ask. D you have a sampl ipac.conf file. The source file and compile
didn’t' create one and I'm having a hard time understanding the  exaple
. See insert.

INSTALLATION / CONFIG FILE.

The ipac.conf file is '/etc/ipac-ng/ipac.conf'. ipac.conf controls what
data
is collected. Each line which begins with a '#' is ignored. All the
other lines have the format

  Name of rule|direction|interface|protocol|source|destination

  where
  Name of rule          Any string to identify this rule
  direction             'in' or 'out'
  interface             ip number or interface name or empty
  protocol              'tcp' or 'udp' or 'icmp' or 'all'
  source                \
  destination           both as described in ipfwadm(8), or empty
 
In the summaries, the 'Name of rule' string identifies the counter.
Both the source and destination must be in ipfwadm/ipchains syntax -
consult the man page.

The interface can be named (for example, eth0) or its IP number can be
given.
Linux IP accounting always counts at one interface or at any interface.
The
direction means in or out of this interface.

* You must run the fetchipac -S after changing the 
* ipac.conf file every time for the changes to take effect!

An example ipac.conf file comes with the distribution.

Cant' find it anywhere in the source

> try ipac-ng packet
> 
> http://sourceforge.net/projects/ipac-ng/
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Measuring traffic
  2002-09-13 17:05   ` Rowan Reid
@ 2002-09-13 17:27     ` Rowan Reid
  0 siblings, 0 replies; 5+ messages in thread
From: Rowan Reid @ 2002-09-13 17:27 UTC (permalink / raw)
  To: 'dizma', netfilter


Disregard ...
 
Rowan Reid
Job Captain, 
Systems Administrator
STUDIO 3 ARCHITECTS
909  982  1717


> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org 
> [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of Rowan Reid
> Sent: Friday, September 13, 2002 10:05 AM
> To: 'dizma'; netfilter@lists.netfilter.org
> Subject: RE: Measuring traffic
> 
> 
> 
> 
> Hi,
> 
> Thanks for the recommendation, Since you suggested I figured 
> I would ask. D you have a sampl ipac.conf file. The source 
> file and compile didn’t' create one and I'm having a hard 
> time understanding the  exaple . See insert.
> 
> INSTALLATION / CONFIG FILE.
> 
> The ipac.conf file is '/etc/ipac-ng/ipac.conf'. ipac.conf 
> controls what data is collected. Each line which begins with 
> a '#' is ignored. All the other lines have the format
> 
>   Name of rule|direction|interface|protocol|source|destination
> 
>   where
>   Name of rule          Any string to identify this rule
>   direction             'in' or 'out'
>   interface             ip number or interface name or empty
>   protocol              'tcp' or 'udp' or 'icmp' or 'all'
>   source                \
>   destination           both as described in ipfwadm(8), or empty
>  
> In the summaries, the 'Name of rule' string identifies the 
> counter. Both the source and destination must be in 
> ipfwadm/ipchains syntax - consult the man page.
> 
> The interface can be named (for example, eth0) or its IP 
> number can be given. Linux IP accounting always counts at one 
> interface or at any interface. The direction means in or out 
> of this interface.
> 
> * You must run the fetchipac -S after changing the 
> * ipac.conf file every time for the changes to take effect!
> 
> An example ipac.conf file comes with the distribution.
> 
> Cant' find it anywhere in the source
> 
> > try ipac-ng packet
> > 
> > http://sourceforge.net/projects/ipac-ng/
> > 
> 
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-13 17:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12 16:45 Measuring traffic Rowan Reid
2002-09-12 18:53 ` Antony Stone
2002-09-13  8:06 ` dizma
2002-09-13 17:05   ` Rowan Reid
2002-09-13 17:27     ` Rowan Reid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox