Traffic shaping for network w/ 1 NIC
Hey,
Hopefully I can explain this clearly enough... We have a wired network consisting of several PCs and an ADSL router that all connect together at a switch and hence give the PCs access to the internet via the router. The PCs simply use the ADSL router as their gateway. What I'd love to do is introduce traffic shaping... but the ADSL router is hardware so I can't do it there (no supported firmware does traffic shaping, but does act as a very good firewall). I do however have a spare mini-itx PC which is great, and ideally I'd run IPCop on it, direct all the PCs to use it as their gateway, and hook it to the router - unfortunately it only has one NIC (and there's no space in it's case for more) so I can't do this either. Does anyone know if it's possible to use this additional PC to manage traffic shaping on this network if it's only got one NIC? |
shouldn't be a problem. blocks of rules in cbq can be defined by a number of ways including ip subnets. see the manpages of cbq and tc for details on defining cbq classes. as a small example:
Code:
DEVICE=eth0,10Mbit,1Mbit |
Thanks for the info!
So, if I setup the remaining PCs to use this one as their gateway, I could then use cbq to prioritise web access and throttle back P2P usage? |
All times are GMT -5. The time now is 11:40 PM. |