Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have some questions about linux networking and I wish for some answers. It's just that I have the need to limit the amount of packets that go through my linux router. I have searched these forums for answers but I can't seem to come up with a solution that would fit my system as I am just too uncertain.
Here's how my network is like:
I am using an old P2 300 MHz PC with two network cards and Red Hat 9 as my router. One network card is connected to an ADSL modem which has a static IP while the other one is connected to a switch and has an internal IP of 192.168.10.1 which is the gateway for all other computers connected to that switch. I am using an iptables firewall + masquerade server to allow internal computers to access the internet via the router. It was just a bunch of rules I needed to add to enable IP forwarding and it works fine so far.
Now suddenly I have the need to limit bandwidth to all internal PC's as sometimes one PC (usually my sisters) consumes almost all upload leaving others laggy and stuck. I need to limit the internet bandwidth to all internal PC's while still being able to use the connection between any internal PC and the router itself or the router and the internet itself with full speed. I only wish to limit the speed for connections from any internal PC to the internet. I wish to limit the upload only to a certain amount for all internal PC's (any port, any IP, protocols).
Do you have any suggestions that would fit my configuration?
Can I limit the upload with my currently installed iptables?
Should I install and use a third-party bandwidth limiting utility? Which one and why?
Warning: I'm not very good at installing new programs on linux - new to it.
I am having the same problem however its my brothers computer running kazaa that sucks up all the bandwidth.
My thoughts on how to limit the bandwidth are to install a different packer scheduler on the router to give my computer priority on sending packets instead of FIFO which is IIRC the default scheduler. I haven't finished compiling all the packages on my router as yet though so beyond the thoughts, not much has happened so I cannot tell you if it'll actually would work.
Once I get it done, I will help if you need it. If you find out some other way to limit the bandwidth please do tell.
"m0n0wall is probably the first UNIX system that has..."
Ugh... I don't like the sound of that.
Here's one particulary interesting document I found. http://www.ibiblio.org/pub/Linux/doc...ent-HOWTO.html
I still can't seem to understand how to limit all kinds of traffic (any protocol, any port) for any PC on the subnet from this article. I'll have to study it a bit more.
Thanks for that link, that is exactly the type of thing that I was planning to do. This will definitely save me a lot of time poring through the kernel network configuration and documention.
I recently (last week) enabled QoS on my linux router.
Quote:
I still can't seem to understand how to limit all kinds of traffic (any protocol, any port) for any PC on the subnet from this article. I'll have to study it a bit more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.