From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: it clown <suse@mailbox.co.za>
Cc: netfilter@lists.netfilter.org
Subject: Re: limiting bandwidth with iptables or squid?
Date: Sun, 31 Oct 2004 11:40:56 +0000 [thread overview]
Message-ID: <4184CF48.10605@dsl.pipex.com> (raw)
In-Reply-To: <web-493669244@mail01.infosat.net>
it clown wrote:
> Hi All,
>
> I am abit confused with tc.
>
> I need a string to limit band whidth for ips or mac
> addresses.
>
> iptables -A PREROUTING -i eth0 -s x.x.x.x -t mangle -j MARK
> --set-mark 1
If you want to shape traffic from the internet to certain IPs there are
several ways -
you could mark them on the WAN interface eg. -i ppp0. If you do it in
PREROUTING and are doing NAT it won't work for local addresses, though.
If you do not care about shaping traffic headed for your shaping box and
you only have one lan interface you can set up HTB/CBQ/HFSC egress on
eth0. You could then use POSTROUTING to mark IPs which will be denatted
at that point.
>
> will mark the packets for that ip.i think.
>
> what string for tc do i need to limit x.x.x.x to say 5kb/s
> download speed? eth0 is my internal network card of my
> linux box.
>
I would use HTB - there are examples and links on www.docum.org / LARTC
how to.
You will need to run at about 80% of your link speed.
Andy.
next prev parent reply other threads:[~2004-10-31 11:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-24 14:20 limiting bandwidth with iptables or squid? it clown
2004-10-24 15:16 ` Jason Opperisano
2004-10-24 15:35 ` it clown
2004-10-25 11:36 ` Andy Furniss
2004-10-29 5:54 ` it clown
2004-10-31 11:40 ` Andy Furniss [this message]
2004-10-25 0:15 ` Alexander Samad
2004-10-25 9:05 ` Matteo Santori
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=4184CF48.10605@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.com \
--cc=netfilter@lists.netfilter.org \
--cc=suse@mailbox.co.za \
/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.