# fwrtc.conf - FreeWRT Traffic Control Configuration # # This script makes use of HTB to realise shaping. # It basically defines three priority classes: # REAL - interactive connections given high priority # P2P - low priority connections not depending on bandwidth # BULK - everything else (maximum bandwidth, mid priority) # The default class is BULK. # # Use iptables to classify packets into the classes above. # fwrtc just creates filters for them matching on fwmarks: # REAL: 0x1 # BULK: 0x2 # P2P: 0x3 # As a rule of thumb, specify rules for marking into REAL # and P2P, everything else just goes into BULK automatically. # DISABLE # Unset this to enable fwrtc. (fntrtfm) DISABLE=yes # DEV # Enter the WAN device here DEV= # *_MAX # Give the total maximum bandwidth allowed. As a first # attempt, set these values to about 3/4 of the total # available bandwidth (htb needs some room), and tweak # later to get the best performance with minimum delay. DOWN_MAX= UP_MAX= # *_BURST # How many bytes to burst to the NIC each timer tick (at most). # As there are 100 ticks per second, one can calculate the burst # needed for a given bandwidth. So a 10mbit rate requires a # 12 kilobyte burst as 100*12kb*8 equals 10mbit. # Leave empty to let tc calculate them. DOWN_BURST= UP_BURST= # *_RATE # Enter the assured upload bandwidth given for each priority # class. Check that these values sum up to a value less than # or equal to the UP_MAX defined above REAL_RATE= P2P_RATE= BULK_RATE= # *_CEIL # Give the maximum upload bandwidth allowed if there is enough to # be borrowed from the other classes. These values don't need # to sum up to a given value, but none of them should be # greater than UP_MAX. To reach best performance, set REAL_CEIL # to the same value as REAL_RATE. REAL_CEIL= P2P_CEIL= BULK_CEIL=