Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <netfilter@newkirk.us>
To: Curca Claudiu <rapandulex@msn.com>, netfilter@lists.netfilter.org
Subject: Re: IpTables question...
Date: Thu, 6 Feb 2003 00:28:22 -0500	[thread overview]
Message-ID: <200302060028.22169.netfilter@newkirk.us> (raw)
In-Reply-To: <F9VYbb0fBGr4zL748kF00020127@hotmail.com>

On Monday 03 February 2003 01:47 am, Curca Claudiu wrote:
> I'm using RedHat Linux 8.0 on an PIII - Coppermine 750 MHz. I used
> Iptables for NAT  networking at my home (5 PC's + 1 Server).
> The server is used as a gateway and dns server. My question is:
>
> Is there any way I could limit the transfer rate of the inside
> computers to the internet?
> For example I want 192.168.3.5 to have a limit of 5 KB/s transfer
> rate.
>
> Please help me!!

You need to establish a Queueing Discipline.  Your best choice would 
probably be Hierarchical Token Bucket.  See 
http://lartc.org/howto/lartc.qdisc.classful.html#AEN1050 in the Linux 
Advanced Routing and Traffic Control how-to for details on HTB, (and the 
full how-to for all the info...) and the section following it entitled 
"Classifying packets with filters" which explains how to specify a 
filter that matches specific IPs, or use the 'fwmark' match to let you 
set a mark in an iptables mangle-table PREROUTING chain and queue 
traffic based on the marks.

j



  reply	other threads:[~2003-02-06  5:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-03  6:47 IpTables question Curca Claudiu
2003-02-06  5:28 ` Joel Newkirk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-08-13 20:49 iptables question Glenn Hancock
2003-08-14 10:17 ` Chris Wilson
2003-08-14  6:53   ` Glenn Hancock
2003-08-14 10:23 ` Ralf Spenneberg
2003-09-08 16:43 iptables Question Elitesyntax
2004-02-17 15:52 iptables question John Black
2004-02-17 16:40 ` Antony Stone
2005-02-10 15:04 shardul Adhikari
2008-03-11 14:20 bossk
2008-03-11 18:46 ` Jan Engelhardt
2008-03-11 19:13   ` Justin Piszcz

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=200302060028.22169.netfilter@newkirk.us \
    --to=netfilter@newkirk.us \
    --cc=netfilter@lists.netfilter.org \
    --cc=rapandulex@msn.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox