Hello,
I would like your help if my rules are OK. I have 150M/150M bandwidth which I provide internet
in two networks (Offices & Hotspot). I want to equal share bandwidth for all users but to limit
all users in hotspot network up to 100M/100M so Offices network will have minimum 50M/50M
bandwidth all the time.
I'm using mangle rules and queue tree with pcq.
/ip firewall mangle add action=mark-connection chain=forward comment="Offices Network" in-interface=bridge.offices.lan new-connection-mark=offices.upload passthrough=yes
/ip firewall mangle add action=mark-connection chain=forward new-connection-mark=offices.download out-interface=bridge.offices.lan passthrough=yes
/ip firewall mangle add action=mark-packet chain=forward connection-mark=offices.upload new-packet-mark=offices.upload passthrough=yes
/ip firewall mangle add action=mark-packet chain=forward connection-mark=offices.download new-packet-mark=offices.download passthrough=yes
/ip firewall mangle add action=mark-connection chain=forward comment="Guests Network" in-interface=bridge.guests.lan new-connection-mark=hotspot.upload passthrough=yes
/ip firewall mangle add action=mark-connection chain=forward new-connection-mark=hotspot.download out-interface=bridge.guests.lan passthrough=yes
/ip firewall mangle add action=mark-packet chain=forward connection-mark=hotspot.upload new-packet-mark=hotspot.upload passthrough=yes
/ip firewall mangle add action=mark-packet chain=forward connection-mark=hotspot.download new-packet-mark=hotspot.download passthrough=yes
/queue tree add max-limit=150M name="Total Download" parent=global queue=pcq-down
/queue tree add max-limit=100M name="hotspot down" packet-mark=hotspot.download parent="Total Download" queue=pcq-down
/queue tree add name="offices down" packet-mark=offices.download parent="Total Download" queue=pcq-down
/queue tree add max-limit=150M name="Total Upload" parent=global queue=pcq-up
/queue tree add max-limit=100M name="hotspot up" packet-mark=hotspot.upload parent="Total Upload" queue=pcq-up
/queue tree add name="offices up" packet-mark=offices.upload parent="Total Upload" queue=pcq-up
I would like your suggestions for my config.
Thanks