+ Responder ao Tópico



  1. #1

    Padrão shortlinux

    Nao entendi muito bem o controle de banda para shortlinux.
    Alguem poderia me dar um exemplo

  2. #2

    Padrão Re: shortlinux

    # General configuration for traffic control (shaping, qos, etc)
    # The traffic control CANNOT be used in bridging mode as of now.
    # Someone wants to bundle ebtables to this project?

    # This traffic controller is using HTB.
    # ALL numbers in KILOBITS, please.

    # Total bandwidth that you are expected to get
    total_upload=512
    total_download=512

    # Internal network
    # ignore shaping when traffic goes between this net
    internal_network=192.168.1.0/24

    # What type of shaping are you going to use:
    # off: Explains itself.
    # hard: Just limit everything to the total bandwidth.
    # user: See below.
    qos_type=off

    ##############
    # INSTRUCTIONS - READ BELOW, ITS NOT JUST SOME BLAH BLAH BLAH
    ##############

    # To set the user traffic control:
    # You can group users so they share bandwidth between them.
    # It is as simple as writing files to /etc/shaper/{users,groups} directory.
    #
    # priority goes from 0 (more priority) to 7 (less priority).
    # upload/download are numbers in kbits.
    # bounded: means "limited to it even if there is bandwidth to use"

    # echo "priority upload download [bounded]" > groups/groupname
    # echo "groupname ip" > users/username

    # Simple example:
    # I want to share my 512kbit up/down line with a friend. Equally.
    #
    # echo "1 512 512" > groups/mygroup
    # echo "mygroup 192.168.1.11" > users/me
    # echo "mygroup 192.168.1.12" > users/my_friend