hi clemment,
On Wed, 2004-05-05 at 13:54, Clement MOREAU wrote:
Thank you for your help.
It generates this script :
tc qdisc add dev eth0 handle 1:0 root htb default 2
----^^^
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 75000bps ceil \
Hello all,
I am trying to set up a simple htb based system, where packets with
source ip 10.0.0.1 should have their own class.
I plan to use tcng to set it up easier.
Is there something wrong in my tcng file ?
~/tcng$ cat htb
/*
*/
#include fields.tc
#include ports.tc
dev eth0 {
salut clemment
try adapting the following to your needs ... it's been working for me.
roughly similar to wondershaper excepting that it is in tcng:
i have a ppp interface on an analog modem so in my firewall i mark
packets coming in from this device as following:
iptables --append PREROUTING
Thank you for your help.
this setup is creating an additionnal qdisc (dsmark). For performance
reasons, I would prefer using filters directly attached to htb qdisc. I
think it is possible, at least it seems to be possible with tc (not
tcng).
It seems to me that tcc is doing something wrong with
salut clemment,
well, i see better now -- you could try something like:
#include fields.tc
#include ports.tc
dev eth0 {
htb () {
class ( rate 600kbps, ceil 600kbps ) if ip_src == 10.0.0.1;
}
}
cheers
charles
On Wed, 2004-05-05 at 10:15, Clement MOREAU wrote:
Thank you for
Thank you for your help.
It generates this script :
tc qdisc add dev eth0 handle 1:0 root htb default 2
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 75000bps ceil \
75000bps
tc class add dev eth0 parent 1:0 classid 1:2 htb rate 125000bps
tc filter add dev eth0 parent 1:0 protocol all