Re: [squid-users] How to use cbq

From: lupuscramus <lupuscramus_at_hyperthese.net>
Date: Wed, 22 Dec 2010 13:53:02 +0100

>
> That was 4 months ago.
> The netfilter MARK feature is now completed and working AFAIK in the 3.2
> betas.
>
> Amos

Hello,

Is there a way to verify that packet are really marked ?

In my squid.conf I've :

acl user1 src "/etc/squid/ip_user/user1"
tcp_outgoing_mark 0x1 user1
acl user85 src "/etc/squid/ip_user/user85"
tcp_outgoing_mark 0x55 user85

I've made a script htb.sh :

#!/bin/bash
INT="eth0"
BAND="12000kbit"
RATE="63kbit"

tc qdisc del dev $INT root
tc qdisc add dev $INT root handle 1: htb default 30

tc class add dev $INT parent 1: classid 1:1 htb rate 100mbit burst 15k
tc class add dev $INT parent 1:1 classid 1:10 htb rate $RATE ceil $RATE \
burst 15k
tc class add dev $INT parent 1:1 classid 1:30 htb rate 88mbit burst 15k
tc class add dev $INT parent 1:1 classid 1:20 htb rate $RATE ceil $BAND \
burst 15k

tc filter add dev $INT protocol ip handle 1 fw flowid 1:10
tc filter add dev $INT protocol ip handle 0x55 fw flowid 1:20

However, when I try to download something with an ip in
/etc/squid/ip_user/user85, I download at 88mbit/s...

So, it seems my packets are not marked.

tc filter show dev eth0 gives me :

filter parent 1: protocol ip pref 49151 fw
filter parent 1: protocol ip pref 49151 fw handle 0x55 classid 1:20
filter parent 1: protocol ip pref 49152 fw
filter parent 1: protocol ip pref 49152 fw handle 0x1 classid 1:10

Have I done a misconfiguration in squid ?

Thanks,

Grégoire leroy
Received on Wed Dec 22 2010 - 12:53:15 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 22 2010 - 12:00:03 MST