<br>
<div>Alejandro,</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>So, i did try the script that you give to me, and the problems its continues.-</div>
<div>Maybe the problem was in the IPTABLES rules, i attach the complete script below:</div>
<div>&nbsp;</div>
<div>#####################</div>
<div>ifconfig imq0 up</div>
<p>tc qdisc add dev imq0 handle 1: root htb default 30<br>tc class add dev imq0 parent 1: classid 1:1 htb rate 500kbit ceil 2000kbit</p>
<p>tc class add dev imq0 parent 1:1 classid 1:10 htb rate 100kbit ceil 2000kbit<br>tc class add dev imq0 parent 1:1 classid 1:20 htb rate 100kbit ceil 2000kbit<br>tc class add dev imq0 parent 1:1 classid 1:30 htb rate 100kbit ceil 2000kbit
</p>
<p><br>tc qdisc add dev imq0 parent 1:10 handle 2 sfq<br>tc qdisc add dev imq0 parent 1:20 handle 3 sfq</p>
<p>iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0</p>
<p>tc filter add dev imq0 parent 1: prio 0 protocol ip handle 2 fw flowid 1:10<br>tc filter add dev imq0 parent 1: prio 1 protocol ip handle 3 fw flowid 1:20</p>
<div>iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 80 -j MARK --set-mark 2<br>iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 20 -j MARK --set-mark 3<br>iptables -t mangle -A PREROUTING -i eth1 -p tcp --dport 21 -j MARK --set-mark 3
</div>
<div>#####################</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The traffic it continues goes&nbsp;out by the &quot;default&quot; qdisc (1:30), and it was not clasified by the correct qdisc.</div>
<div>I did try a ftp transfererence using the 20 and 21 TCP ports, this should to use the 1:20 qdisc asociated with the &quot;handle 3&quot;...BUT DID NOT WORK...!!!</div>
<div>PLease, help me...!!!</div>
<div>&nbsp;</div>
<div><br>-- <br>terraja-based </div>