[ale] Shaping Problem
Phil Turmel
philip at turmel.org
Thu Oct 31 18:43:36 EDT 2013
On 10/31/2013 06:37 PM, Chris Fowler wrote:
> Looks to me I can take this:
>
> tc qdisc delete dev wan0 root &>/dev/null
>
> tc qdisc replace dev wan0 root handle 1: htb default 99
> tc class add dev wan0 parent 1: classid 1:1 htb rate 4000kbit burst
> 1000kbit
> tc class add dev wan0 parent 1:1 classid 1:11 htb rate 500kbit ceil
> 4000kbit burst 1000kbit prio 1
> tc class add dev wan0 parent 1:1 classid 1:99 htb rate 500kbit ceil
> 3500kbit burst 10kbit prio 2
> tc qdisc add dev wan0 parent 1:99 handle 99: fq_codel noecn
> tc filter add dev wan0 protocol ip parent 1: prio 1 u32 match ip tos
> 0xb8 0xfc flowid 1:11
> tc filter add dev ifb0 protocol ip parent 1: prio 1 u32 match ip dst
> my.voip.provider flowid 1:11
>
>
> Change wan0 to eth0. Remove ceil and burst since I want to test a hard
> limit.
> Remove the voip entry for ifb0
Actually, that was a bug in my script. Should have been wan0 there as
well. Good thing asterisk puts the right class on its packets.
And replace "my.voip.provider" with your target IP.
> Would that work?
Only for traffic going *out* eth0.
Phil
More information about the Ale
mailing list