Port based bandwidth shaping

Posted by nixnotwin on Server Fault See other posts from Server Fault or by nixnotwin
Published on 2011-03-02T14:45:11Z Indexed on 2011/03/02 15:27 UTC
Read the original article Hit count: 319

I have an interent connection with the speed of 4000k bits up and down. I want to do port based traffic shaping on a ubuntu machine, which acts as router. eth0 is the WAN interface. This is how I would like to allocate bandwidth:

  • For ports 80 and 445 the bandwidth usage can go upto 90%
  • For ports above 1024 upto 65535 the bandwidth usage can go upto 10%
  • For remaining ports the bandwidth usage can go upto 40%

The easiest way for achieving the above is using a router with tomato firmware. I have used it and it is very efficient. I want to try if it can be done on a Ubuntu or any GNU/Linux machine. I have googled extensively about the topic and I feel there isn't much information.

© Server Fault or respective owner

Related posts about traffic-shaping

Related posts about qos