<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Also, there's a mistake in your tc filter line, change classid by
flowid. Take a look at the man page.<br>
<br>
-Diego<br>
<br>
Diego Cabrero escribió:
<blockquote cite="mid43C3F088.5020001@e-attico.net" type="cite">Try
chosing a lower limit for the 80th port at least 900-10, then add a sfq
qdisc down the 1:10, 1:20 and 1:30 classes like this:
<br>
<br>
tc qdisc add dev eth0 parent 1:x0 handle 1: sfq perturb 10
<br>
<br>
It will work, i had that kind of problem before.
<br>
<br>
Regards.
<br>
<br>
-Diego
<br>
<br>
<br>
<br>
<br>
Jonas Jasas escribió:
<br>
<br>
<blockquote type="cite">I have linux box (does nat and firewall for
small network) connected
<br>
to dsl. I want to set priorities for protocols (that nothing could
<br>
disturb web browsing). This is my rules (eth0 connected to internet):
<br>
<br>
/sbin/tc qdisc del dev eth0 root
<br>
/sbin/tc qdisc add dev eth0 root handle 1 htb default 30 r2q 100
<br>
<br>
/sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 900Kbit
burst 15k
<br>
<br>
/sbin/tc class add dev eth0 parent 1:2 classid 1:10 htb rate 900Kbit
<br>
ceil 900Kbit
<br>
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
<br>
ip sport 80 0xffff classid 1:10
<br>
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
<br>
ip dport 80 0xffff classid 1:10
<br>
<br>
/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit
ceil 900Kbit
<br>
<br>
I start to download from ftp it uses all bandwidth (as it should be),
<br>
when I start to download on web, web and ftp rated become more or less
<br>
equal :/ . I want that ftp traffic would be limited to 10kbit and all
<br>
other bandwidth would be left for web trafic.
<br>
<br>
What is wrong with my rules?
<br>
Thank you for advice!
<br>
_______________________________________________
<br>
LARTC mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc">http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc</a>
<br>
<br>
<br>
</blockquote>
_______________________________________________
<br>
LARTC mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc">http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc</a>
<br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Firma</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
BODY
{
font-family: arial,helvetica,sans-serif;
}
TD,TH
{
font-size: 8pt;
text-align: left;
white-space: nowrap;
vertical-align: top;
}
CITE
{
font-family: "arial narrow",helvetica-narrow,sans-serif;
font-size: 7pt;
}
EM
{
font-weight: bold;
font-style: italic;
font-size: 10pt;
font-family: palatino,times,serif;
}
DIV.disclaimer
{
font-size: 7pt;
color: #666;
}
</style>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<p><em>Diego Cabrero</em><br>
Ingeniero en Automática y Electrónica Ind.<br>
<a href="mailto:nombre.apellido@e-attico.net">diego.cabrero@e-attico.net</a><br>
Tel. <b>983 36 13 23</b> - Fax <b>983 34 19 86</b></p>
<p><em>Fundación ATTICO</em><br>
<cite>Fundación de <b>A</b>poyo <b>T</b>ecnológico a la <b>T</b>ransformación
<b>I</b>ndustrial y para la <b>Co</b>mpetitividad Empresarial</cite></p>
</td>
</tr>
<tr>
<th>Sede Social:</th>
</tr>
<tr>
<td>C/ Camino del Cabildo 40,<br>
47009 Valladolid</td>
</tr>
</tbody>
</table>
<div class="disclaimer" lang="es">
====================== CLÁUSULA DE CONFIDENCIALIDAD
========================<br>
Este correo y sus anexos pueden contener información confidencial o
legalmente protegida. Si le hubiera llegado por error, notifíquelo
inmediatamente al remitente y por favor elimínelo sin revisarlo ni
reenviarlo; cualquier copia, divulgación, distribución o uso de los
contenidos está prohibida. Gracias por su colaboración.</div>
<div class="disclaimer" lang="en">===========================
CONFIDENTIALITY NOTE
============================<br>
This email, including any attached files, may contain confidential or
legally privileged information. If you received it by error, please
notify
the sender immediately and destroy it without reading or forwarding it;
any
copying, disclosure, distribution or use of its contents is strictly
prohibited. Thank you for your collaboration.</div>
</div>
</body>
</html>