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.
Okay, I'm not a complete noob to linux, but I don't think logically and I can't do much I haven't done before. I have Apache 2.0 running nicely on Fedora Core 1, however I want to limit the bandwidth it uses. The machine has an external IP, if this helps/matters.
I have webmin installed, and believe setting up the iptables is the answer, but I'm not sure what I need to do. There are three tables set up, one for blocking packets, one for altering packets, and one for NAT. I think a chain needs to go in the outgoing packets part of the blocking packets section, such that packets with a source TCP port of 80 are blocked if their rate exceeds 20kbytes/sec (or 20 packets/sec, assuming the packet is going to be about 1k)?
Is there an easier way to go about it? Thanks in advance for any help you can provide.
well, i wrote a download cgi in c for limiting bandwith (thanks to everyone on these forums that helped me fix minor problems ), but it might not be exactly what your looking for.. however your best bet might be to write a cgi that handles that instead of messing with iptables and blocking packets, if you don't know alot about cgi, i might be able to help you out.
then all you'd have to do to enforce that people use the CGI, is chmod o-r file, and boom, no way to evade the cgi :-D
Ooops... there goes my logical thinking again. Wonder Shaper worked wonders (excuse me), and its limitting bandwidth as expected. Unfortunately its limitting bandwidth universally, which I guess is its aim. What I was trying to achieve was just limitting the upload on Apache, which is causing lag on the counter-strike server run whenever people check their stats.
Fancy pushing me in your direction smoke?
Oops... missed a bit in the readme about setting unimportant traffic ports... I'll give that a whirl first
Last edited by Comrade Chez; 02-07-2004 at 05:51 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.