Page 1 of 1

Bandwidth limiting of traffic from WWW server -> Internet

Posted: Mon Oct 18, 2004 12:26 am
by evert
Hi everyone!

How do I limit the bandwidth usage of a WWW-server in my local net towards the Internet?

Posted: Sat Oct 30, 2004 4:40 pm
by evert
to clearify my own post here: I only want to throttle the amount of bandwidth used by outgoing traffic, so FROM my Apache server TO the clients on the Internet...

Anyone any suggestions? Which ports do I tag?
(the server is in a NAT-environment)

Posted: Sun Oct 31, 2004 10:44 am
by cmit
Hi Evert,

I think the example in the docs is showing your situation quite good - queuing for a server in a NATed (masqueraded) environment:
http://www.mikrotik.com/docs/ros/2.8/ro ... t#6.54.7.2
The one adjustment you would have to make is the packet marking for the server - in the example, all traffic from the server is mangled. You want to mark only TCP traffic FROM port 80 (and port 443, if using SSL/HTTPS).

Hope that helps...

Posted: Mon Nov 01, 2004 10:03 am
by evert
Will traffic coming FROM my webserver be originating from port 80? Are you sure on that...? 8)

Posted: Tue Nov 02, 2004 10:13 am
by cmit
Yes, I'm sure. At least if you didn't change your Apache config and configured a different port. The standard port for HTTP servers is TCP port 80 (or 443 for SSL/HTTPS).

Posted: Tue Nov 02, 2004 10:49 am
by evert
Oops... /me hits himself over the head... ;)

Of course you're right! :)
Somehow I'd gotten the notion in my head that clients contact apache on port 80, and that apache would send back on another, random port. Got no idea where I got that from... :?


Thanks for correcting me! :)

Posted: Tue Nov 02, 2004 11:03 pm
by rafit
Oops... /me hits himself over the head... ;)

Of course you're right! :)
Somehow I'd gotten the notion in my head that clients contact apache on port 80, and that apache would send back on another, random port. Got no idea where I got that from... :?


Thanks for correcting me! :)
I think you are right about this one.

solomon.

Posted: Wed Nov 03, 2004 9:33 am
by evert
Right about my notion, or right about hitting myself over the head? 8)


(I have used Torch to double-check, and it does come from port 80...)

Posted: Thu Nov 04, 2004 12:24 am
by rafit
Hi Again,
apache on port 80, client on whatever.

solomon.