From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damion de Soto Date: Wed, 14 Apr 2004 00:27:25 +0000 Subject: Re: [LARTC] Bandwith control Message-Id: <407C856D.7070704@snapgear.com> List-Id: References: <008d01c4215f$a0b78d10$a8db13ac@gesej.ciasc.gov.br> In-Reply-To: <008d01c4215f$a0b78d10$a8db13ac@gesej.ciasc.gov.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Ola Angelo, > I have a linux box with two ethernets cards eth0(gateway 1mb) with is=20 > the host for some sites and emails and eth1(nat interface) with provide i= nternet=20 > acess to other 5 pcs. > =20 > 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 tha= t bandwith so=20 > users can download fast as there is bandwith and sites and emails don=B4t= get slow. You can only shape outbound traffic (going OUT eth1 to LAN clients, or OUT = eth0 to=20 the internet). You can police incoming traffic to certain speeds, but it doesn't work as w= ell as=20 shaping, and you can't use as many specific rules. So, you can easily restrict the speed at which LAN users can access the int= ernet. 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 y= ou need to restrict bandwidth from the internet to the linux box, and share specified = bandwidth=20 from eth1 to eth0, then you might need to use the IMQ device or something. regards, --=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/