Re: per IP billing

2001-12-11 Thread Vineet Kumar
* Marcel Welschbillig ([EMAIL PROTECTED]) [011205 16:35]:
> I have ip tables running and i did a test with the -c flag but i get the 
> following response.
> 
> proxy:/home# iptables -A INPUT -s 10.10.1.31 -i eth0 -c ACCEPT
> iptables v1.2.4: -c requires packet and byte counter
> 
> What am i missing ? where do i get a packet and byte counter ??

-c is to *set* the packet and byte counts that are kept automatically by
the system. You can see these counts by typing iptables -L -v, and you
can zero them by using -z. You can set them to some number you like with
something like -c 10 1000. To create a rule that does nothing but count,
just create the rule without a target. Packets that match will increment
the counts but continue down the chains as if they hadn't matched
(didn't jump anywhere, so where else would they go?)

something like

iptables -A INPUT -s 10.10.1.31 -i eth0

and that's it! Then use iptables -L INPUT -v and pay attention to the
columns listed on the left.

good times,
Vineet

-- 
Satan laughs when  #  "I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it."
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906



pgpmgrrx5sIpC.pgp
Description: PGP signature


Re: per IP billing

2001-12-11 Thread Vineet Kumar

* Marcel Welschbillig ([EMAIL PROTECTED]) [011205 16:35]:
> I have ip tables running and i did a test with the -c flag but i get the 
> following response.
> 
> proxy:/home# iptables -A INPUT -s 10.10.1.31 -i eth0 -c ACCEPT
> iptables v1.2.4: -c requires packet and byte counter
> 
> What am i missing ? where do i get a packet and byte counter ??

-c is to *set* the packet and byte counts that are kept automatically by
the system. You can see these counts by typing iptables -L -v, and you
can zero them by using -z. You can set them to some number you like with
something like -c 10 1000. To create a rule that does nothing but count,
just create the rule without a target. Packets that match will increment
the counts but continue down the chains as if they hadn't matched
(didn't jump anywhere, so where else would they go?)

something like

iptables -A INPUT -s 10.10.1.31 -i eth0

and that's it! Then use iptables -L INPUT -v and pay attention to the
columns listed on the left.

good times,
Vineet

-- 
Satan laughs when  #  "I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it."
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906




msg04752/pgp0.pgp
Description: PGP signature


Re: per IP billing

2001-12-05 Thread Marcel Welschbillig
I have ip tables running and i did a test with the -c flag but i get the 
following response.


proxy:/home# iptables -A INPUT -s 10.10.1.31 -i eth0 -c ACCEPT
iptables v1.2.4: -c requires packet and byte counter

What am i missing ? where do i get a packet and byte counter ??

Marcel

Antropov Anton wrote:


The simplest way - is to LOG packets using IPTABLES.
My friends from Internet-provider are doing so.

Another way is to use proxy-servers (like SQUID).


Know this is a bit off subject but dose anybody know any good programs 
to use for monitoring Megabytes per IP address. What i want to do is 
have a LAN and be able to get data on how many MB each host downloaded 
for billing purposes.







Re: per IP billing

2001-12-05 Thread Marcel Welschbillig

I have ip tables running and i did a test with the -c flag but i get the 
following response.

proxy:/home# iptables -A INPUT -s 10.10.1.31 -i eth0 -c ACCEPT
iptables v1.2.4: -c requires packet and byte counter

What am i missing ? where do i get a packet and byte counter ??

Marcel

Antropov Anton wrote:

> The simplest way - is to LOG packets using IPTABLES.
> My friends from Internet-provider are doing so.
> 
> Another way is to use proxy-servers (like SQUID).
> 
> 
>> Know this is a bit off subject but dose anybody know any good programs 
>> to use for monitoring Megabytes per IP address. What i want to do is 
>> have a LAN and be able to get data on how many MB each host downloaded 
>> for billing purposes.
>> 



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




Re: per IP billing

2001-12-04 Thread Yotam Rubin
On Tue, Dec 04, 2001 at 04:35:04PM +0800, Marcel Welschbillig wrote:
> Hi all !
> 
> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.

argus is a fairly general tool which can accommodate this type of monitoring.
Fetch both the argus-server and the argus-client packages. racount in 
argus-client is probably what you need.

Regards, Yotam Rubin

> 
> Any help much appreciated
> 
> 
> Marcel
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 



Re: per IP billing

2001-12-04 Thread Rens Houben
On Tue, 2001-12-04 at 09:35, Marcel Welschbillig wrote:
> Hi all !

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.

If you know what you want to log beforehand, you might want to have a
look at ipac. Otherwise, ulogd or trafstats may have what you need.

> Any help much appreciated

> Marcel

-- 
Rens Houben   |opinions are mine
Resident linux guru and sysadmin  | if my employers have one
Systemec Internet Services.   |they'll tell you themselves
PGP public key at http://suzaku.systemec.nl/shadur.key.asc


pgp5nPN48kYMa.pgp
Description: PGP signature


Re: per IP billing

2001-12-04 Thread Jens-E. Hansen

There is a tool called rasa, look at http://rasa.gis.de.
English information is available from [EMAIL PROTECTED]

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.
> 
> Any help much appreciate

___

Jens-Erik Hansen

Global Information Services
Steindamm 132, D-24145 Kiel

Telefon  +49 (0)431 7164191
Telefax  +49 (0)431 7164192

E-mail [EMAIL PROTECTED]
___




RE: per IP billing

2001-12-04 Thread Antropov Anton
The simplest way - is to LOG packets using IPTABLES.
My friends from Internet-provider are doing so.

Another way is to use proxy-servers (like SQUID).

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.
> 



Re: per IP billing

2001-12-04 Thread Yotam Rubin

On Tue, Dec 04, 2001 at 04:35:04PM +0800, Marcel Welschbillig wrote:
> Hi all !
> 
> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.

argus is a fairly general tool which can accommodate this type of monitoring.
Fetch both the argus-server and the argus-client packages. racount in 
argus-client is probably what you need.

Regards, Yotam Rubin

> 
> Any help much appreciated
> 
> 
> Marcel
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact 
> [EMAIL PROTECTED]
> 


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




Re: per IP billing

2001-12-04 Thread Rens Houben

On Tue, 2001-12-04 at 09:35, Marcel Welschbillig wrote:
> Hi all !

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.

If you know what you want to log beforehand, you might want to have a
look at ipac. Otherwise, ulogd or trafstats may have what you need.

> Any help much appreciated

> Marcel

-- 
Rens Houben   |opinions are mine
Resident linux guru and sysadmin  | if my employers have one
Systemec Internet Services.   |they'll tell you themselves
PGP public key at http://suzaku.systemec.nl/shadur.key.asc



msg04587/pgp0.pgp
Description: PGP signature


Re: per IP billing

2001-12-04 Thread Jens-E. Hansen


There is a tool called rasa, look at http://rasa.gis.de.
English information is available from [EMAIL PROTECTED]

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.
> 
> Any help much appreciate

___

Jens-Erik Hansen

Global Information Services
Steindamm 132, D-24145 Kiel

Telefon  +49 (0)431 7164191
Telefax  +49 (0)431 7164192

E-mail [EMAIL PROTECTED]
___



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




RE: per IP billing

2001-12-04 Thread Antropov Anton

The simplest way - is to LOG packets using IPTABLES.
My friends from Internet-provider are doing so.

Another way is to use proxy-servers (like SQUID).

> Know this is a bit off subject but dose anybody know any good programs 
> to use for monitoring Megabytes per IP address. What i want to do is 
> have a LAN and be able to get data on how many MB each host downloaded 
> for billing purposes.
> 


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