#!/bin/sh
#
# SuperShaper-SOHO 1.2
#
# Bandwidth shaper for SOHO DSL connection.
#
# Copyright (C) Robin Smidsrød<robin@smidsrod.no> September 24 2004
# License details can be found on www.smidsrod.no
#
# Please consider donating if you find this script helpful.
# Contact information available on www.smidsrod.no.
#
# If you need help setting up this script, or have other
# problems related to Linux networking, I'm available
# for contracting. Contact me at robin@smidsrod.no or see
# contact information on www.smidsrod.no.
#
# This script is designed to shape your upstream bandwidth to
# minimize latency for interactive applications like SSH and making
# sure P2P applications doesn't saturate your upstream. Standard surfing/mail
# software is also given priority over P2P to make them snappy.
# VoIP is given maximum priority (SIP/RTP) (only surpassed by TCP ACKs) to make
# sure IP telephony doesn't suffer even on a very congested link.
#
# Ingress filtering is not applied at all, since it would have little
# effect on the final result. Let's stick to egress which works.
#
# This script needs iproute2 (tc) and HTB/SFQ netfilter schedulers (linux kernel >=2.4.20)
# This script has been verified to work out of the box on IPCop-1.3.0_fixes9,
# which is the preferred deployment platform.
#
# Change these values to reflect your own setup

# Your outbound interface
DEV=eth1

# Set full path to TC command, unless it's in PATH
TC=tc

# Remove existing qdisc
$TC qdisc del dev $DEV root 2>&1 >/dev/null
