All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Simple shaping question
@ 2006-01-10 17:22 Jonas Jasas
  2006-01-10 17:36 ` Diego Cabrero
  2006-01-10 17:43 ` Diego Cabrero
  0 siblings, 2 replies; 3+ messages in thread
From: Jonas Jasas @ 2006-01-10 17:22 UTC (permalink / raw)
  To: lartc

I have linux box (does nat and firewall for small network) connected
to dsl. I want to set priorities for protocols (that nothing could
disturb web browsing). This is my rules (eth0 connected to internet):

/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 htb default 30 r2q 100

/sbin/tc class add dev eth0 parent 1: classid 1:2 htb rate 900Kbit burst 15k

/sbin/tc class add dev eth0 parent 1:2 classid 1:10 htb rate 900Kbit
ceil 900Kbit
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip sport 80 0xffff classid 1:10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match
ip dport 80 0xffff classid 1:10

/sbin/tc class add dev eth0 parent 1:2 classid 1:20 htb rate 10Kbit ceil 900Kbit

I start to download from ftp it uses all bandwidth (as it should be),
when I start to download on web, web and ftp rated become more or less
equal :/ . I want that ftp traffic would be limited to 10kbit and all
other bandwidth would be left for web trafic.

What is wrong with my rules?
Thank you for advice!
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-01-10 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-10 17:22 [LARTC] Simple shaping question Jonas Jasas
2006-01-10 17:36 ` Diego Cabrero
2006-01-10 17:43 ` Diego Cabrero

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.