| 1 | # fwrtc.conf - FreeWRT Traffic Control Configuration
|
|---|
| 2 | #
|
|---|
| 3 | # This script makes use of HTB to realise shaping.
|
|---|
| 4 | # It basically defines three priority classes:
|
|---|
| 5 | # REAL - interactive connections given high priority
|
|---|
| 6 | # P2P - low priority connections not depending on bandwidth
|
|---|
| 7 | # BULK - everything else (maximum bandwidth, mid priority)
|
|---|
| 8 | # The default class is BULK.
|
|---|
| 9 | #
|
|---|
| 10 | # Use iptables to classify packets into the classes above.
|
|---|
| 11 | # fwrtc just creates filters for them matching on fwmarks:
|
|---|
| 12 | # REAL: 0x1
|
|---|
| 13 | # BULK: 0x2
|
|---|
| 14 | # P2P: 0x3
|
|---|
| 15 | # As a rule of thumb, specify rules for marking into REAL
|
|---|
| 16 | # and P2P, everything else just goes into BULK automatically.
|
|---|
| 17 |
|
|---|
| 18 | # DISABLE
|
|---|
| 19 | # Unset this to enable fwrtc. (fntrtfm)
|
|---|
| 20 | DISABLE=yes
|
|---|
| 21 |
|
|---|
| 22 | # DEV
|
|---|
| 23 | # Enter the WAN device here
|
|---|
| 24 | DEV=
|
|---|
| 25 |
|
|---|
| 26 | # *_MAX
|
|---|
| 27 | # Give the total maximum bandwidth allowed. As a first
|
|---|
| 28 | # attempt, set these values to about 3/4 of the total
|
|---|
| 29 | # available bandwidth (htb needs some room), and tweak
|
|---|
| 30 | # later to get the best performance with minimum delay.
|
|---|
| 31 | DOWN_MAX=
|
|---|
| 32 | UP_MAX=
|
|---|
| 33 |
|
|---|
| 34 | # *_BURST
|
|---|
| 35 | # How many bytes to burst to the NIC each timer tick (at most).
|
|---|
| 36 | # As there are 100 ticks per second, one can calculate the burst
|
|---|
| 37 | # needed for a given bandwidth. So a 10mbit rate requires a
|
|---|
| 38 | # 12 kilobyte burst as 100*12kb*8 equals 10mbit.
|
|---|
| 39 | # Leave empty to let tc calculate them.
|
|---|
| 40 | DOWN_BURST=
|
|---|
| 41 | UP_BURST=
|
|---|
| 42 |
|
|---|
| 43 | # *_RATE
|
|---|
| 44 | # Enter the assured upload bandwidth given for each priority
|
|---|
| 45 | # class. Check that these values sum up to a value less than
|
|---|
| 46 | # or equal to the UP_MAX defined above
|
|---|
| 47 | REAL_RATE=
|
|---|
| 48 | P2P_RATE=
|
|---|
| 49 | BULK_RATE=
|
|---|
| 50 |
|
|---|
| 51 | # *_CEIL
|
|---|
| 52 | # Give the maximum upload bandwidth allowed if there is enough to
|
|---|
| 53 | # be borrowed from the other classes. These values don't need
|
|---|
| 54 | # to sum up to a given value, but none of them should be
|
|---|
| 55 | # greater than UP_MAX. To reach best performance, set REAL_CEIL
|
|---|
| 56 | # to the same value as REAL_RATE.
|
|---|
| 57 | REAL_CEIL=
|
|---|
| 58 | P2P_CEIL=
|
|---|
| 59 | BULK_CEIL=
|
|---|
| 60 |
|
|---|