Re: Count traffic

2003-08-14 Thread Guillaume Plessis
Le Wed, Aug 13, 2003 at 10:22:51 +0200, Daniel Kradolfer - smile solutions gmbh a 
écrit:
 Hi,
 
 I'm searching a solution to count in- and outgoing traffic for each
 virtual user (domain). Our boxes are running Apache, Proftpd and qmail.
 Does anybody know some good working GPLed software/tool to do one of
 these tasks.

Hi!

Take a look at the ipac-ng package. It works with iptables and works
fine, even with an important traffic.

It's easy to configure and to integrate with your existant firewalling
rules.

Best regads

-- 
Guillaume Plessis [EMAIL PROTECTED]
GnuPG Key-ID: BA729AD0


pgp0.pgp
Description: PGP signature


RE: Count traffic

2003-08-14 Thread Matias G. Lambert ( OSInet )
Try isoqlog...

http://packages.debian.org/unstable/mail/isoqlog.html

Matias Lambert
OSInet Telecomunicaciones
Capital Federal - Buenos Aires
Argentina - CA1185ACA
[EMAIL PROTECTED]
http://www.osinet.com.ar


-Mensaje original-
De: Tinus Nijmeijers [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 13 de Agosto de 2003 08:45 a.m.
Para: [EMAIL PROTECTED]
Asunto: Re: Count traffic


On Wed, 2003-08-13 at 10:22, Daniel Kradolfer - smile solutions gmbh
wrote:
 Hi,

 I'm searching a solution to count in- and outgoing traffic for each
 virtual user (domain). Our boxes are running Apache, Proftpd and qmail.
 Does anybody know some good working GPLed software/tool to do one of
 these tasks.
 thanks
 kradi

what I'm planning on doing:

have webalizer save extra info in text files (the Dump... directives)
and read those into a db. I think webalizer does proftpd as well. don't
know about qmail.

z.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]

BEGIN:VCARD
VERSION:2.1
N:Lambert;Matias;German
FN:Matias Lambert ( OSInet )
ORG:OSInet TeleComunicaciones
TEL;WORK;VOICE:+54 11 4861 5616
TEL;HOME;VOICE:+54 11 4861 5616
TEL;CELL;VOICE:+54 11 (15) 4429 9469
TEL;WORK;FAX:+54 11 4861 5616
TEL;HOME;FAX:+54 11 4861 5616
ADR;WORK:;;Panamá 933 12 E;Capital Federal;Buenos Aires;C1185ACA;Argentina
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Panam=E1 933 12 E=0D=0ACapital Federal, Buenos Aires C1185ACA=0D=0AArgentina
URL;WORK:http://www.osinet.com.ar
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20030313T150013Z
END:VCARD


Re: Count traffic

2003-08-14 Thread Tinus Nijmeijers
On Wed, 2003-08-13 at 10:22, Daniel Kradolfer - smile solutions gmbh
wrote:
 Hi,
 
 I'm searching a solution to count in- and outgoing traffic for each
 virtual user (domain). Our boxes are running Apache, Proftpd and qmail.
 Does anybody know some good working GPLed software/tool to do one of
 these tasks.
 thanks
 kradi

what I'm planning on doing:

have webalizer save extra info in text files (the Dump... directives)
and read those into a db. I think webalizer does proftpd as well. don't
know about qmail.

z.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Volker Tanger
Greetings!

On Wed, 13 Aug 2003 10:59:22 +0200 Teun Vink [EMAIL PROTECTED] wrote:

   I'm searching a solution to count in- and outgoing traffic for
   each virtual user (domain). Our boxes are running Apache, Proftpd
   and qmail. Does anybody know some good working GPLed software/tool
   to do one of these tasks.

 And how would that work with _virtual_ servers?

Evaluate the Apache logs? It's quite easy with a little bit of scripting
- the number of (outgoing) bytes usually is the last field. Depending on
your virtual domain setup you either have to simply add the according
field(usually #9, the last one) - else set up logging to include the
virtual host's name and add dependend on that.

I'm not sure on how easy just accounting that is with prepackaged log
analyzers. As for incoming you won't have proper metrics in the logs
(correction please, if I'ver overseen something) - to get an approximate
weighted accounting you probably should go with something like

in-bytes per VHost = i-bytes total / requests total * requests VHost


Bye

Volker Tanger


 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Domainbox, Tim Abenath
 I'm searching a solution to count in- and outgoing traffic for each
 virtual user (domain).

I searched for a solution some Month ago. All accounting i could find is
based on ipchains/iptables who are not working on
the needed Layer to seperate virtual Hosts. They just work up to the tcp
Layer, so you can only seperate between ip's.
There are Solutions to Account virtual Hosts, but the are not free. I now
patched iptables to get an promisc chains on which i
account the traffic ip-based. http://idea.hosting.lv/a/iptables-promisc/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Peter Holm
On Wed, 13 Aug 2003 11:20:07 +0200, Domainbox, Tim Abenath
[EMAIL PROTECTED] wrote:

There are Solutions to Account virtual Hosts, but the are not free. 

could you name these, please? would be interested in taking a closer
look at this...



Have a nice thread,
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Domainbox, Tim Abenath
 There are Solutions to Account virtual Hosts, but the are not free.

 could you name these, please? would be interested in taking a closer
 look at this...

This was done by ip24 i think, but the company was bought by ipvalue
(www.ipvalue.de)
I dont't know what happened to that produnkt, i cannot rember the name under
which it had run by ipvalue.
But this was so expensive i dropped all research on that.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Domainbox, Tim Abenath
 what exactly does this patch and how is it to be used? not much
 documentation on that site...

It creates an PROMISC chain that catches all pakets on the wire,
this is then connected to an hub just before the border router
ans sniffes the paktes, it goes like

 iptables -t meter -P PROMISCUOUS ACCEPT
 iptables -t meter -N incoming
 iptables -t meter -N outgoing
iptables -t meter -A incoming -d 62.208.70.1 -j ACCEPT
 iptables -t meter -A outgoing -s 62.208.70.1 -j ACCEPT

This data is read by a cronjob that runs a perlskript with a statement like

my(@OUTLINES) = `/usr/local/sbin/iptables -t meter -nL outgoing -vx -Z`;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Teun Vink
On Wed, 2003-08-13 at 10:56, Guillaume Plessis wrote:
 Le Wed, Aug 13, 2003 at 10:22:51 +0200, Daniel Kradolfer - smile solutions gmbh a 
 écrit:
  Hi,
  
  I'm searching a solution to count in- and outgoing traffic for each
  virtual user (domain). Our boxes are running Apache, Proftpd and qmail.
  Does anybody know some good working GPLed software/tool to do one of
  these tasks.
 
 Hi!
 
 Take a look at the ipac-ng package. It works with iptables and works
 fine, even with an important traffic.
 
 It's easy to configure and to integrate with your existant firewalling
 rules.
 
 Best regads


And how would that work with _virtual_ servers?


Teun


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Peter Holm
On Wed, 13 Aug 2003 11:20:07 +0200, Domainbox, Tim Abenath
[EMAIL PROTECTED] wrote:

patched iptables to get an promisc chains on which i
account the traffic ip-based. http://idea.hosting.lv/a/iptables-promisc/

what exactly does this patch and how is it to be used? not much
documentation on that site...



Have a nice thread,
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Count traffic

2003-08-14 Thread Stefan Neufeind
Just add one common logfile for all virtual hosts in which you 
account all file-requests. Writing a small script you can get domain 
= customer-relations for billing. That's your only chance for 
virtual hosts.

  Stefan

On 13 Aug 2003 at 11:08, Domainbox, Tim Abenath wrote:

  I'm searching a solution to count in- and outgoing traffic for each
  virtual user (domain).
 
 I searched for a solution some Month ago. All accounting i could find
 is based on ipchains/iptables who are not working on the needed Layer
 to seperate virtual Hosts. They just work up to the tcp Layer, so you
 can only seperate between ip's. There are Solutions to Account virtual
 Hosts, but the are not free. I now patched iptables to get an promisc
 chains on which i account the traffic ip-based.
 http://idea.hosting.lv/a/iptables-promisc/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]