Next, create the PCQ type queues:
/queue type add name=up kind=pcq pcq-classifier=src-address pcq-rate=256000
/queue type add name=down kind=pcq pcq-classifier=dst-address pcq-rate=512000
(watch for wordwrap on the above 2 rules)
Finally, add them to the queue:
/queue tree add parent=inet flow=all-customer queue=up
/queue tree add parent=customer flow=all-customer queue=down
In the above 2 rules, “inet” is the interface that will be the OUTBOUND interface for all customer traffic (i.e. it is connected to your upstream) and “customer” is the wireless card that your customers connect to.
But, despite what I do, user on 4.3 have the same speed as in “korisnik” and not bigger, as said in korisnik2…
If you have any idea, I would be greatfull…
thx..
Thanks Butch! Does it matter that I have all the interfaces in the same bridge?
In my experience, PCQ does not play nice with bridged interfaces. I have only tried it once, but could never get it to work with bridged. For this, you will most likely want to do simple queues per IP.
0 X src-address=192.168.4.3/32 in-interface=ether1 action=passthrough mark-flow=korisnici2
1 X src-address=192.168.4.3/32 in-interface=unska action=passthrough mark-flow=korisnici2
2 X src-address=192.168.0.0/16 in-interface=unska action=passthrough mark-flow=korisnici
3 X src-address=192.168.0.0/16 in-interface=ether1 action=passthrough mark-flow=korisnici
Not sure if this is a copy/paste of your config, but there are a couple of questions/comments.
First, you seem to be marking the same src-address on multiple interfaces. This will not work (and is, in fact, impossible). You cannot have the same network address running on multiple interfaces.
Also, you are using private IPs in your post. If you are NATting, there is more you have to do in order to capture the traffic (in particular, it is the download speed you have to do something different with). Take a look at the HOW TO for P2P for an example of how to do this if you are NATting your customers.
Is there a way to have certain ip’s not effected by the pcq? For example business customers have different upload/download rates. I would gather you would just mangle that specific traffic and put the queue in before the pcq rule? Is this right?
Is there a way to have certain ip’s not effected by the pcq? For example business customers have different upload/download rates. I would gather you would just mangle that specific traffic and put the queue in before the pcq rule? Is this right?
There are different ways to handle this, depending upon what you know about your customer. For example, if your business customers (or any other “exceptions” to the general rule) have a different pool of addresses, they will not be mangled with the rules for “regular” customers. IMHO, this is easiest to accomplish in the mangle rules rather than ordering the queues.
With mangle rules, you can use action “accept” to stop processing further mangle rules or “passthrough” to continue processing. Mainly, it depends on what information you have available to identify a customer (or group of customers).