# * * * GLOBAL CONSTANTS * * *
# WAN_IF (ppp0) Internet connection interface name
WAN_IF=ppp0
# LAN _IF (br0) This interface includes ethernet and wifi
LAN_IF=br0
# All rates below are in kilobits (kbit)
# WAN port real rate (dsl or ppp download/upload)
WAN_DN_RATE=1024
WAN_UP_RATE=512
# Zone order represents their priority, decreasing from the first to the last
# "inet" zone means everything not matched with other zones
WAN_ZONES="inet z0"
# zone IP files search path
ZONE_PATH="$(dirname $0)/ip_%ZONE%.lst"
# !!! All rates need to be measured first !!!
# Set rate to value 5-10% less than measured, if real rate is less than rate
# in list below, the shaper will not work properly!
# I've got double speed for inet and cn zones at night between 1:00-8:00
if test `date +%H` -ge 1 -a `date +%H` -lt 8; then
WAN_ZONES_DN_RATE="570 $WAN_DN_RATE"
WAN_ZONES_UP_RATE="490 490"
else
WAN_ZONES_DN_RATE="570 $WAN_DN_RATE "
WAN_ZONES_UP_RATE="490 490"
fi
# Shaper creates 5 bands for Internet traffic (see schemes below)
# Guarantee rate for each band is, in %-s:
RATES="20 20 40 10 10"