Hello all, I´ve read http://lartc.org/howto/ and now i am just confused, i think my skills with linux are not very good, so asking for help. 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. Can someone point some directions? Tks Angelo
cron@odi.com.br wrote:> Hello all, > > I´ve read http://lartc.org/howto/ and now i am just confused, i think my > skills with linux are not very good, so asking for help. > > 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. > > Can someone point some directions? > > Tks > > AngeloHTB is the qdisc you want. http://luxik.cdi.cz/~devik/qos/htb/ -Corey _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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/
After read the docs at http://luxik.cdi.cz/~devik/qos/htb/ i found htb.init-v0.8.5.txt script, it do what i need, however it says i have to pach my kernel, does anyone know if fedora core 1 already have htb by default? Angelo ----- Original Message ----- From: "Corey Hickey" <bugfood-ml@fatooh.org> To: <cron@odi.com.br> Sent: Tuesday, April 13, 2004 2:31 PM Subject: Re: [LARTC] Bandwith control> cron@odi.com.br wrote: > > Hello all, > > > > I´ve read http://lartc.org/howto/ and now i am just confused, i think my > > skills with linux are not very good, so asking for help. > > > > 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. > > > > Can someone point some directions? > > > > Tks > > > > Angelo > > HTB is the qdisc you want. > http://luxik.cdi.cz/~devik/qos/htb/ > > -Corey >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I use Fedora 1 and its haves HTB 3 built in kernel regards -> -----Mensaje original----- -> De: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]En -> nombre de cron@odi.com.br -> Enviado el: Miércoles, 14 de Abril de 2004 12:50 p.m. -> Para: lartc@mailman.ds9a.nl -> Asunto: Re: [LARTC] Bandwith control -> -> -> After read the docs at http://luxik.cdi.cz/~devik/qos/htb/ i found -> htb.init-v0.8.5.txt script, it do what i need, -> however it says i have to pach my kernel, does anyone know if -> fedora core 1 -> already have htb by default? -> -> -> Angelo -> -> ----- Original Message ----- -> From: "Corey Hickey" <bugfood-ml@fatooh.org> -> To: <cron@odi.com.br> -> Sent: Tuesday, April 13, 2004 2:31 PM -> Subject: Re: [LARTC] Bandwith control -> -> -> > cron@odi.com.br wrote: -> > > Hello all, -> > > -> > > I´ve read http://lartc.org/howto/ and now i am just -> confused, i think my -> > > skills with linux are not very good, so asking for help. -> > > -> > > 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. -> > > -> > > Can someone point some directions? -> > > -> > > Tks -> > > -> > > Angelo -> > -> > HTB is the qdisc you want. -> > http://luxik.cdi.cz/~devik/qos/htb/ -> > -> > -Corey -> > -> -> _______________________________________________ -> LARTC mailing list / LARTC@mailman.ds9a.nl -> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -> --- -> Incoming mail is certified Virus Free. -> Checked by AVG anti-virus system (http://www.grisoft.com). -> Version: 6.0.657 / Virus Database: 422 - Release Date: 13/04/2004 -> --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.657 / Virus Database: 422 - Release Date: 13/04/2004 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/