[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq:1718] filter matching problem
Hi
I wanted some users to have slower internet bandwith but access to local server should be
at higher speed. So I've set up 3 cbq sub-classes: main TCP, per-user TCP and local-server
TCP like this:
class cbq rl0 tcp0 bulk0 pbandwidth 25
filter rl0 tcp0 0 0 0 0 6 # other tcp
class cbq rl1 tcp1 bulk1 pbandwidth 10
filter rl1 tcp1 0 0 0 0 6 # other tcp
class cbq rl1 users1 def_class1 pbandwidth 3
filter rl1 users1 217.153.83.210 0 0 0 6
filter rl1 users1 0 0 217.153.83.210 0 6
etc.
And for server access:
class cbq rl1 intra1 def_class1 pbandwidth 40
filter rl1 intra1 217.153.81.138 0 0 0 0 #local
filter rl1 intra1 0 0 217.153.81.138 0 0 #local
filter rl1 intra1 217.153.80.202 0 0 0 0 #local
filter rl1 intra1 0 0 217.153.80.202 0 0 #local
...and it doesn't work (user has 3% of bandwith all the time)
rl0 has assingned 2 main IPs: 217.153.83.138 and 217.153.80.202. rl1 has IP
217.153.83.193 but no services are running on it (I need fast access to services like squid,
samba and ftp)
But when I set ip-to-ip filter like:
filter rl1 users1 217.153.83.210 0 217.153.80.202 0 6
...it works fine. So where is it wrong?
Regards. Alex.