Alohá!
I personally favour HTB-queues
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm
http://www.tldp.org/HOWTO/Traffic-Control-HOWTO/
Here's a look at my router setup in the meantime. This one's directly
connected to the modem (ppp0) on eth0 and shapes and prioritizes my ADSL
upstream so that interactive traffic (0-500byte) has the highest prio,
next is bulk traffic from LAN (eth1), then bulk from the machine itself
(one machine in the LAN (192.168.0.1) is in that category as well).
Good luck!
Martin
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
iptables -t mangle -A OUTPUT -m length --length 0:500 -j MARK --set-mark 3
iptables -t mangle -A OUTPUT -m length --length 500:1500 -j MARK
--set-mark 5
iptables -t mangle -A PREROUTING -i eth1 -m length --length 0:500 -j
MARK --set-mark 3
iptables -t mangle -A PREROUTING -i eth1 -m length --length 500:1500 -j
MARK --set-mark 4
iptables -t mangle -A PREROUTING -i eth1 -s 192.168.0.1 -m length
--length 500:1500 -j MARK --set-mark 5
tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1: classid 1:1 htb rate 192Kbit burst 15kb
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 100Kbit ceil
192Kbit burst 15kb prio 0
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 100Kbit ceil
180Kbit burst 1kb prio 1
tc class add dev ppp0 parent 1:1 classid 1:30 htb rate 64Kbit ceil
100Kbit burst 1kb prio 2
tc qdisc add dev ppp0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev ppp0 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev ppp0 parent 1:30 handle 30: sfq perturb 10
tc filter add dev ppp0 parent 1:0 protocol ip handle 3 fw flowid 1:10
tc filter add dev ppp0 parent 1:0 protocol ip handle 4 fw flowid 1:20
tc filter add dev ppp0 parent 1:0 protocol ip handle 5 fw flowid 1:30
--
To UNSUBSCRIBE, email to debian-firewall-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
No comments:
Post a Comment