- VoIP packets go out first, no matter what
- ssh, www, smtp, etc go after
- everything else (including bittorrent) go last
There are only two lines in the script to change. You should be aware of following assumptions in the script however:
- The machine serves as the gateway for your network
- Internet is established using autodialer on interface ppp0
- asterisk runs on the same machine as the shaper
You can download my script here.