Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Help with traffic shapping

    Hi All

    I have 100 users over that get IPs assigned through dhcp on the network

    I have a mail server on and the linux gateway is on

    My total bandwidth is 1200kbit up and 1200kbit down. I want to split the bandwidth in a way so that any user can not use more than 96kbit at anytime. Apart from the mail server it should be allowed to get 256kbit.
    The linux gateway of course should not be shapped.

    If possible I want the following priorities as well.

    1- Web traffic low prio
    2- SSH high prio
    3- Remote desktop high prio
    4- Outgoing VPN connections high prio.

    I have researched an tried myself. But this is really out of my league.

    Any help is highly appreciated.


  2. #2
    Take a look at iptables TOS:

    ....for example, something like:
    # TOS
    iptables -A PREROUTING -t mangle -p tcp --sport 22 -j TOS --set-tos Minimize-Delay
    iptables -A PREROUTING -t mangle -p tcp --sport 80 -j TOS --set-tos Minimize-Cost
    iptables -A PREROUTING -t mangle -p tcp --sport 3389 -j TOS --set-tos Minimize-Delay
    iptables -A PREROUTING -t mangle -p tcp -d -j TOS --set-tos Maximize-Throughput
    ....then repeat above rule syntax swapping out PREROUTING for OUTPUT

  3. #3
    You can implement markings with the iptables mangle table as suggested, then use the 'tcng' package to create a traffic policy which specified traffic must conform to. Would have to read up on how to configure tcng.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts