Hello Oliver,
On Fri, 26 Dec 2003 03:07:27 +0100
Oliver Kant <[EMAIL PROTECTED]> wrote:
> Hallo Leute und frohes Fest!
>
>
> ich suche nach etwas womit ich die bandbreite wirklich kontrollieren
> kann. Ich habe hier DSL auf meinem Woody und will einem Port einfach
> eine gewisse Bandbreite garantieren, evtl. so das �ber diesen Port auch
> mehr laufen kann wenn sich sonst nichts tut.
> Hat jemand eine Idee/einen Link f�r mich?
Hierf�r ben�tigst Du iptables und iproute2 (am bequemsten ist es, wenn
Du iproute mit htb Unterst�tzung hast, ist bei Debian leider nicht der
Fall)
Hier mal ein Ausschnitt aus meinen Scripten.
$iptables -t mangle -A PREROUTING -i eth0 -j MARK --set-mark 32
$iptables -t mangle -A PREROUTING -i eth0 ... -j MARK --set-mark 1
$iptables -t mangle -A PREROUTING -i eth0 ... -j MARK --set-mark 2
$iptables -t mangle -A PREROUTING -i eth0 ... -j MARK --set-mark 3
$iptables -t mangle -A PREROUTING -i eth0 ... -j MARK --set-mark 5
$DAMON=/usr/local/bin/tc
$DAEMON qdisc add dev ppp0 root handle 1: htb default 16
$DAEMON class add dev ppp0 parent 1: classid 1:1 htb \
rate ${CEIL}kbps ceil ${CEIL}kbps
$DAEMON class add dev ppp0 parent 1:1 classid 1:11 htb \
rate ${RATE_SSH}kbit ceil ${CEIL}kbit
$DAEMON class add dev ppp0 parent 1:1 classid 1:12 htb \
rate ${RATE_MAIL}kbit ceil ${CEIL}kbit
$DAEMON class add dev ppp0 parent 1:1 classid 1:13 htb \
rate ${RATE_WWW}kbit ceil ${CEIL}kbit
$DAEMON class add dev ppp0 parent 1:1 classid 1:15 htb \
rate ${RATE_FTP}kbit ceil ${CEIL}kbit
$DAEMON class add dev ppp0 parent 1:1 classid 1:16 htb \
rate ${RATE_LEFT}kbit ceil ${CEIL}kbit
$DAEMON qdisc add dev ppp0 parent 1:11 handle 111: \
sfq perturb 10
$DAEMON qdisc add dev ppp0 parent 1:12 handle 112: \
sfq perturb 10
$DAEMON qdisc add dev ppp0 parent 1:13 handle 113: \
sfq perturb 10
$DAEMON qdisc add dev ppp0 parent 1:15 handle 115: \
sfq perturb 10
$DAEMON qdisc add dev ppp0 parent 1:16 handle 116: \
sfq perturb 10
$DAEMON filter add dev ppp0 parent 1:0 protocol ip prio 10 \
handle 1 fw classid 1:11
$DAEMON filter add dev ppp0 parent 1:0 protocol ip prio 20 \
handle 2 fw classid 1:12
$DAEMON filter add dev ppp0 parent 1:0 protocol ip prio 30 \
handle 3 fw classid 1:13
$DAEMON filter add dev ppp0 parent 1:0 protocol ip prio 50 \
handle 5 fw classid 1:15
$DAEMON filter add dev ppp0 parent 1:0 protocol ip prio 60 \
handle 32 fw classid 1:16
J�rg
--
J�rg Sch�tter http://www.lug-untermain.de/
[EMAIL PROTECTED] http://www.schuetter.org/joerg/
ICQ: 298982789 http://mypenguin.bei.t-online.de/
--
Haeufig gestellte Fragen und Antworten (FAQ):
http://www.de.debian.org/debian-user-german-FAQ/
Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)