> O'k. I have Debian stable Linux router to Internet.
kernel version?

> I want manage Internet traffic on it:
> Increase priority and speed of some protocols and decrease for others.
> I know that I can change this only for outgoing packets.
> First question:
> If I decrease priority and speed for local network interface
> does this mean that priority and speed for Internet interface
> for the same protocol also decreases?
> For example:
> eth0 local network
> eth1 Internet
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1 htb default 99
You don't have a 1:99 class.  It's best if you have a 1:99 class so all 
packets not matched by any filters are placed in a class.

> tc class add dev eth0 parent 1: classid 1:2 htb rate 256Mbit burst 15k
Do you have a 256Mbit link?  And 15k is way too low.  Remove all burst 
parameters so htb can calculate the minimum burst for you.

> tc class add dev eth0 parent 1:2 classid 1:10 htb rate 64Kbit ceil
> 128Kbit burst 15k prio 4
> tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10
> tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip
> sport 80 0xffff match ip dst 192.168.1.0/24 classid 1:10
>
> Does this means that incoming traffic on eth1 to port 80 will be in
> 64Kbit-128Kbit with prio 4?
Yes.

Stef

-- 

[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to