Community discussions

MikroTik App
 
User avatar
evert
Member Candidate
Member Candidate
Topic Author
Posts: 130
Joined: Thu Jul 15, 2004 3:06 pm
Location: Sarpsborg, Norway
Contact:

Bandwidth limiting of traffic from WWW server -> Internet

Mon Oct 18, 2004 12:26 am

Hi everyone!

How do I limit the bandwidth usage of a WWW-server in my local net towards the Internet?
 
User avatar
evert
Member Candidate
Member Candidate
Topic Author
Posts: 130
Joined: Thu Jul 15, 2004 3:06 pm
Location: Sarpsborg, Norway
Contact:

Sat Oct 30, 2004 4:40 pm

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)
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Sun Oct 31, 2004 10:44 am

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...
 
User avatar
evert
Member Candidate
Member Candidate
Topic Author
Posts: 130
Joined: Thu Jul 15, 2004 3:06 pm
Location: Sarpsborg, Norway
Contact:

Mon Nov 01, 2004 10:03 am

Will traffic coming FROM my webserver be originating from port 80? Are you sure on that...? 8)
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Tue Nov 02, 2004 10:13 am

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).
 
User avatar
evert
Member Candidate
Member Candidate
Topic Author
Posts: 130
Joined: Thu Jul 15, 2004 3:06 pm
Location: Sarpsborg, Norway
Contact:

Tue Nov 02, 2004 10:49 am

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! :)
 
rafit
just joined
Posts: 9
Joined: Thu Jul 08, 2004 12:24 am

Tue Nov 02, 2004 11:03 pm

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.
 
User avatar
evert
Member Candidate
Member Candidate
Topic Author
Posts: 130
Joined: Thu Jul 15, 2004 3:06 pm
Location: Sarpsborg, Norway
Contact:

Wed Nov 03, 2004 9:33 am

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...)
 
rafit
just joined
Posts: 9
Joined: Thu Jul 08, 2004 12:24 am

Thu Nov 04, 2004 12:24 am

Hi Again,
apache on port 80, client on whatever.

solomon.

Who is online

Users browsing this forum: erlinden, mdarko, mrtrca, nekrikstas, parumuga, xrlls and 57 guests