From: diegows <diegows@linux.org.ar>
To: netfilter-devel@lists.netfilter.org
Cc: samj@samj.net, Brad Fisher <brad@info-link.net>
Subject: [PATCH] quota match with quota per ip
Date: Mon, 26 May 2003 10:40:06 -0300 [thread overview]
Message-ID: <3ED21936.9060603@linux.org.ar> (raw)
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Here is a modified patch of quota match. I add the destination ip quota
match. I maintain a table with the quota used by each destination IP
address, and match (or not match "!") according to the used quota.
We use this in www.linux.org.ar for bandwith control. With this we mark
the packets that have exceeded the quota and then we do shaping with
QoS. For example:
iptables -I OUTPUT -m quota --ipdstquota ! 50000000 -j MARK --set-mark XX
Then all the packets that exceeded the 50 mb quota are mark for shaping.
This is for avoiding bandwith abuses, for people that like download
mirrors without sense.
Suggestions and comments are welcome, I 'm newbie...
Diego Woitasen
Lanux - Lanus Linux Users Group
Lanus, Buenos Aires, Argentina
[-- Attachment #2: patch.tgz --]
[-- Type: application/x-gzip, Size: 5504 bytes --]
next reply other threads:[~2003-05-26 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-26 13:40 diegows [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-21 16:33 [PATCH] quota match with quota per ip diegows
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=3ED21936.9060603@linux.org.ar \
--to=diegows@linux.org.ar \
--cc=brad@info-link.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=samj@samj.net \
/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.