Giving VoIP Traffic the Green Light, Part 3 - page 2
Wondershaper Status: Clearing the Queue
Your last step is to make sure Wondershaper starts at boot, or when your network interface comes up. Starting it at boot is the easiest. First edit the
wshaper script to include your desired settings:
DOWNLINK=728 UPLINK=256 DEV=eth1
Then place the script in
/etc/init.d, and use your favorite runlevel utility, such as
chkconfig (Red Hat) or
update-rc.d (Debian) to add it to your desired runlevels, like this:
# chkconfig --level 2345 wshaper on # chkconfig --level 016 wshaper off # update-rc.d wondershaper start 30 2 3 4 5 . stop 0 1 6 .
Starting Wondershaper when your network interface comes up is done differently on every Linux distribution, so please refer to your documentation to learn how to do this. Starting it at boot is perfectly acceptable and simple to manage. However, some admins believe that anything related to network interfaces, like iptables, traffic shaping, routing, IPSec, and so forth, should start and stop with the interface. It's a question of taste, so do what suits you.