From: Craig Main <satuxman@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Help with prioritizing internet Cafe Terminals
Date: Fri, 19 Nov 2004 12:59:43 +0000 [thread overview]
Message-ID: <30d138620411190459500f85fd@mail.gmail.com> (raw)
In-Reply-To: <30d1386204111702416df3371c@mail.gmail.com>
I have out together the following script, can those in the know please
comment on what I have done and whether it will achieve what I am
looking for. Many thanks.
#!/bin/bash
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1: htb default 12
tc class add dev eth1 parent 1: classid 1:1 htb rate 64kbit ceil
64kbit burst 20k
tc class add dev eth1 parent 1: classid 1:2 htb rate 15kbit ceil
64kbit prio 0 burst 20k
tc class add dev eth1 parent 1: classid 1:3 htb rate 15kbit ceil
64kbit prio 0 burst 20k
tc class add dev eth1 parent 1: classid 1:4 htb rate 15kbit ceil
64kbit prio 0 burst 20k
tc class add dev eth1 parent 1: classid 1:5 htb rate 15kbit ceil
64kbit prio 0 burst 20k
tc class add dev eth1 parent 1: classid 1:12 htb rate 4kbit ceil 64kbit prio 1
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 1 fw classid 1:2
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 2 fw classid 1:3
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 3 fw classid 1:4
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 4 fw classid 1:5
iptables -F PREROUTING -t mangle
iptables -A PREROUTING -t mangle -i eth0 -p tcp -s 192.168.0.1 -j MARK
--set-mark 1
iptables -A PREROUTING -t mangle -i eth0 -p tcp -s 192.168.0.2 -j MARK
--set-mark 1
iptables -A PREROUTING -t mangle -i eth0 -p tcp -s 192.168.0.3 -j MARK
--set-mark 1
iptables -A PREROUTING -t mangle -i eth0 -p tcp -s 192.168.0.4 -j MARK
--set-mark 1
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-11-19 12:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 10:41 [LARTC] Help with prioritizing internet Cafe Terminals Craig Main
2004-11-17 14:29 ` Andreas Klauer
2004-11-19 12:59 ` Craig Main [this message]
2004-11-19 17:36 ` Jason Boxman
2004-11-20 7:10 ` Craig Main
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30d138620411190459500f85fd@mail.gmail.com \
--to=satuxman@gmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox