From: Daniel Egger <egger@spotnic.de>
To: lartc@vger.kernel.org
Subject: [LARTC] Capping bandwidth based on src/dst ip
Date: Thu, 27 Nov 2003 22:59:22 +0000 [thread overview]
Message-ID: <marc-lartc-106997602629616@msgid-missing> (raw)
Hija,
sorry for sounding a little lost here but that's probably because I am.
Let me explain what I'm trying to do:
I've a gateways with one uplink and several disjoint networks beneath it
like:
| T1
---------
| GW |
---------
/ \
------------- -------------
|10.0.0.0/24| ... |10.0.5.0/24|
------------- -------------
Now what I need is to simply classify users in the network segments into
speed classes (gold/silver/bronze) and cap their traffic at fixed levels
inbound and outbound. My idea was to simply add one class and one filter
per used ip which should be no problem, however I have no idea how to
get rid of this class and filter once the user vanished or replace it by
another value when a different users shows up taking the same address.
The problems are: How do I figure out the tree id from the ip? Or how
can I reconfigure the limit without knowing the id?
A different idea would be to add (say) 500 classes for each speed level
and remember the used/unused ones in the application and serve the next
free class to a user by creating a filter on logon and removing that
later on.
If you now say: Hey, that pretty easy; please hold on. :) Additionally I
don't know the addresses in advance because they're either served using
DHCP or set up in a fixed manner and routed thanks to arpspoofing so
this doesn't seem to make a good case for hashing. Also I somehow need
to also take care of the traffic which goes through transparent DNS and
http proxies.
Any help and ideas would be greatly appreciated.
--
Servus,
Daniel
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-11-27 22:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-27 22:59 Daniel Egger [this message]
2003-11-28 4:06 ` [LARTC] Capping bandwidth based on src/dst ip rio
2003-11-28 7:54 ` Eric Leblond
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=marc-lartc-106997602629616@msgid-missing \
--to=egger@spotnic.de \
--cc=lartc@vger.kernel.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.