Hi!
My setup is looks like this:
/-vlan1---\
clients<-----input-------vlan2---|----bridge---|bridge_interface|--------out---------->inet :)
\-vlan3---/ X.X.X.X Y.Y.Y.Y
I got interface called input with some tagged vlans coming to it.
The gateway address (X.X.X.X) needs to be visible on the each vlan, so i created the bridge and assign gateway address on the “bridge interface”.
Also i got some bridge filter rules, to isolate vlans from each other.
Now i wanna make some shaping for the clients inbound traffic…
What i have done:
- created the queue in the “queue tree”:
name="queue1" parent=bridge_interface packet-mark=test_down limit-at=2M
queue=ethernet-default priority=8 max-limit=2M burst-limit=0
burst-threshold=0 burst-time=0s
- add new mangle rule:
chain=prerouting action=mark-packet new-packet-mark=test_down
passthrough=yes dst-address-list=unlim in-interface=out
Annd… Shaping of inbound traffic works great - donwload speed is about 2M, but outgoing traffic is shaped too…
If there are no downloads from client ip address - upload looks really cool and come close to the channel speed.
But it client downloading something - upload speed is going down to the Shaping_speed minus download_speed…
How it can be fixed?
Thanks!