All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Gould <don@bowenvale.co.nz>
To: netfilter@lists.netfilter.org
Subject: Re: Traffic Accounting on Small System and User Limits.
Date: Fri, 29 Sep 2006 18:55:27 +1200	[thread overview]
Message-ID: <451CC35F.9000207@bowenvale.co.nz> (raw)
In-Reply-To: <359505980.29170@mail.nankai.edu.cn>



Bo Yang wrote:
>> 1. I want to keep a record of the amount of data each user uses
>> over a given amount of time.  I know the users IP number and their
>> MAC address.  I modified DNSMasq [1] to tell me this each time the
>> user issues a DHCP request.
> If you just want to get how many bytes a user used in a given range of
> time , iptalbes can do it very nicely !
> iptables -t filter -A forword  -s {your user ip}

Thanks very much.  I'll read up on that.

>> 2.  It is proposed that each MAC will be given 50mb of data to use.
>>  After this the user/MAC will have to be authorised to have more.
> You can use iptables quota module to accomplish this .

I'll read up on that as well.

>> The servers I'm using will run Debian Saige and are only small - p2
>>  or 3 with ~30 to 64mb ram and 2 - 3gb hard disk.  Each server only
>>  has to look after < 50 clients and in most cases wouldn't get more
>>  than 10 using it at a time.
> Oh , bad  hardware  ~

Yes.  Case of reusing something the customer already has.  My mission is
to get motels in my area giving away data to their customers for free in
the hope that I can then get interest from the city to do the same.

I want to show the advantages of giving tourists free access to
communications so they can show off our country to the world while
they're hear.

However we have to pay for data so I can't just do a 'free for all'.

Some motels charge their customers and are paying for better hardware.
I'm trying to find a balance.

Thank you very much again for your help.

Cheers Don
-- 
Don Gould
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz -
www.bowenvale.co.nz - www.hearingbooks.co.nz - SkypeMe:
ThinkDesignPrint - Good ideas:  www.solarking.co.nz




  reply	other threads:[~2006-09-29  6:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <359501767.17840@mail.nankai.edu.cn>
2006-09-29  4:55 ` Traffic Accounting on Small System and User Limits Bo Yang
2006-09-29  4:55   ` Bo Yang
2006-09-29  6:55     ` Don Gould [this message]
2006-09-29  6:58     ` Don Gould
2006-09-29  7:35     ` Don Gould
2006-09-29  3:42 Don Gould
2006-09-29  7:34 ` Don Gould

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=451CC35F.9000207@bowenvale.co.nz \
    --to=don@bowenvale.co.nz \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.