Re: Bandwith control

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux