From: Jerome PETAZZONI <skaya@enix.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Two-way Shared Traffic shaping and NAT
Date: Wed, 19 Dec 2001 18:02:54 +0000 [thread overview]
Message-ID: <marc-lartc-100878514020417@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100874928107102@msgid-missing>
>> Now instead of this 12Kbytes for individual upload and download; I want
>> let user have total 12Kbytes; and sum of upload and download should not be
>> more then this 12Kbytes. Is there any way to implementing traffic shaping
>> over "from and to" an IP say 192.168.1.1?
to shape traffic, you can also use an unofficial patch for netfilter
(iptables), which does the same thing as the "limit" match, but allowing
to specify rates in bytes/second instead of packets/second. you can
get this patch from http://etudiant.univ-mlv.fr/~jpetazzo/bytelimit.tgz
and you can then do something like :
iptables -N lim1
iptables -A FORWARD -s 192.168.1.1 -j lim1
iptables -A FORWARD -d 192.168.1.1 -j lim1
iptables -A lim1 -m bytelimit --rate 12000 -j DROP
(traffic "under" the 12000 bytes/second limit will go on thru the
chain "lim1")
Jerome Petazzoni <skaya at enix dot org>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
prev parent reply other threads:[~2001-12-19 18:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 8:17 [LARTC] Two-way Shared Traffic shaping and NAT Sumit Pandya
2001-12-19 10:17 ` Stef Coene
2001-12-19 13:38 ` Martin Devera
2001-12-19 14:21 ` Michael T. Babcock
2001-12-19 18:02 ` Jerome PETAZZONI [this message]
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-100878514020417@msgid-missing \
--to=skaya@enix.org \
--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.