Discussion Locked

how to restrict bandwidth using redhat l

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,
" i have 512 kbps net connection and i want to share it with my friends . how to restrict bandwidth per ip or host . becoz my friends will download big movies and mp3s . i want to allocate only 5k per ip or host . in any time they can only download / upload 5k . how can i do that using redhat linux 8.0

5 replies

by bwaynef

if you're not familiar with IPTABLES yet I'd highly recommend your familiarizing yourself with it. That said theres a --limit argument that could crudely do what you're asking it to do. basically it will allow so many matches per timeframe. All the literature I've read regarding this states that its useful in "rate-limited logging," but I see no reason why this can't be applied to packets that you allow to pass. This is all in theory, and there may be a more eloquent approach, but I like what I understand and I think I could make this work if need be.

by j_t_c

Ok, iptables will restrict BW, but there is a much simpler and method... CBQ. Do a search on google for cbq. The rpm for that includes the cbq and an example file is shapecfg. I needed something to limit my wireless connections that that was just the ticket. It is easy to configure and flexible too. for redhat the package is shapecfg-2.2.12-10. Hope this helps!

This discussion is closed to new replies.