All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] IMQ + HTB + little script problem
@ 2005-06-17  5:01 s.az
  2005-06-17 11:03 ` Andy Furniss
  0 siblings, 1 reply; 2+ messages in thread
From: s.az @ 2005-06-17  5:01 UTC (permalink / raw)
  To: lartc

I want to shape the incoming traffic ( download ) "but using only 
fwmark", i know there are other methods, but i want to use this one 
particularly...

So, first i create DOWNLOAD and mark  with 20 all the traffic with 
destination 10.0.0.3 ( eth1 ) incoming from my internet device ( eth0 ).

#$IPTABLES -t mangle -N DOWNLOAD
#$IPTABLES -t mangle -I PREROUTING -i eth0 -j DOWNLOAD
#$IPTABLES -t mangle -A DOWNLOAD -d 10.0.0.3 -p tcp -m tcp -j MARK 
--set-mark 20
#$IPTABLES -t mangle -A DOWNLOAD -j IMQ --todev 0

Then, i create the QOS rules

$TC qdisc add dev imq0 root handle 1: htb default 10
$TC class add dev imq0 parent 1: classid 1:1 htb rate 128kbit burst 6k
$TC class add dev imq0 parent 1:1 classid 1:10 htb rate 80kbit burst 6k 
prio 1
$TC class add dev imq0 parent 1:1 classid 1:20 htb rate 50kbit burst 6k 
prio 1
$TC qdisc add dev imq0 parent 1:10 handle 10: pfifo
$TC filter add dev imq0 parent 1: protocol ip prio 5 handle 10 fw flowid 
1:10
$TC filter add dev imq0 parent 1: protocol ip prio 6 handle 20 fw flowid 
1:20

This thing does not work. I can't mark the  packets with 20,  but if i 
remove -d 10.0.0.3, the script marks and works but for all the eth1 
device not only one ip. Any Idea?

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-17 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-17  5:01 [LARTC] IMQ + HTB + little script problem s.az
2005-06-17 11:03 ` Andy Furniss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.