All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] Bandwidth by port
@ 2002-12-10 13:50 Paolo Poletti
  2002-12-11  8:19 ` David Coello
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Poletti @ 2002-12-10 13:50 UTC (permalink / raw)
  To: lartc

Active FTP uses 20/21 tcp on the server side

On Wednesday 11 December 2002 13:38, you wrote:
> On Wednesday 11 December 2002 09:19, David Coello wrote:
> > Hi
> >
> > I am trying to limit the bandwidth by port buy without success.
> >
> > The code is :
> >
> > # Disciplina de encolamiento
> > tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000 mpu
> > 64
> >
> > # Clase
> > tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 1kbps rate
> > 1kbps allot 1514 prio 1 maxburst 10 avpkt 100 bounded isolated
> >
> > # Filtro
> > # tc filter add dev eth1 parent 10:0 protocol ip handle 3 fw classid 10:1
> >
> > tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst
> > 0.0.0.0  match ip sport 20 0xffff flowid 10:1
> > tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst
> > 0.0.0.0  match ip sport 21 0xffff flowid 10:1
> >
> > What am i making bad? I have probed with mark&iptables but with identical
> > result. When i make ftp i download without band limit.
>
> Ftp is very difficult to shape because it can use dynamic ports.  Try using
> active or passive ftp.  I'm not sure wich one uses fixed ports.
>
> Stef
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2002-12-11 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 13:50 [LARTC] Bandwidth by port Paolo Poletti
2002-12-11  8:19 ` David Coello
2002-12-11 12:38 ` Stef Coene
2002-12-11 18:15 ` David Coello
2002-12-11 20:12 ` Serge Maandag

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.