From: Damion de Soto <damion@snapgear.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Bandwith control
Date: Wed, 14 Apr 2004 00:27:25 +0000 [thread overview]
Message-ID: <407C856D.7070704@snapgear.com> (raw)
In-Reply-To: <008d01c4215f$a0b78d10$a8db13ac@gesej.ciasc.gov.br>
Ola Angelo,
> I have a linux box with two ethernets cards eth0(gateway 1mb) with is
> the host for some sites and emails and eth1(nat interface) with provide internet
> acess to other 5 pcs.
>
> I would like to limit the bandwith 512 k for the eth0 and 512 k for eth1
> however whem there is free bandwith in eth0 would be nice to eth1 use that bandwith so
> users can download fast as there is bandwith and sites and emails don´t get slow.
You can only shape outbound traffic (going OUT eth1 to LAN clients, or OUT eth0 to
the internet).
You can police incoming traffic to certain speeds, but it doesn't work as well as
shaping, and you can't use as many specific rules.
So, you can easily restrict the speed at which LAN users can access the internet.
You can also easily restrict the speed at which Internet users access your websites.
Use the HTB qdisc for this on eth0 and eth1.
To share bandwidth across from eth0 to eth1 starts getting difficult. If you need to
restrict bandwidth from the internet to the linux box, and share specified bandwidth
from eth1 to eth0, then you might need to use the IMQ device or something.
regards,
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer email: damion@snapgear.com
SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809
| Custom Embedded Solutions fax: +61 7 3891 3630
| and Security Appliances web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- Free Embedded Linux Distro at http://www.snapgear.org ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-04-14 0:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 14:00 [LARTC] Bandwith control cron
2004-04-13 21:32 ` Corey Hickey
2004-04-14 0:27 ` Damion de Soto [this message]
2004-04-14 15:50 ` cron
2004-04-14 16:34 ` ThE LinuX_KiD
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=407C856D.7070704@snapgear.com \
--to=damion@snapgear.com \
--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.