Equal bandwidth to all users behind NAT
Posted: Sun Mar 25, 2012 10:45 pm
I have already read multiple topics on this forum and tried many things.
My configuration:
--------------------------------
WAN (ether1): 1.1.1.1
LAN (ether2): 192.168.8.128/25
NAT
Internet speed 6M DL/UL
I want to spread bandwidth equally between all users.
It looks like I need the following:
Correct?
If yes I can't understand the relation of mangle rule + trees to the simple queue.
There is no reference between those things except queue type but it is just a type.
Ideally it is enough:
Or those trees and mangle rule with max limit creates some abstraction to limit all bandwidth using pcq to 6M?
Thank you!
My configuration is very simple but would like to know exact opinions how it should work.
My configuration:
--------------------------------
WAN (ether1): 1.1.1.1
LAN (ether2): 192.168.8.128/25
NAT
Internet speed 6M DL/UL
I want to spread bandwidth equally between all users.
It looks like I need the following:
Code: Select all
/ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all-packers passthrough=no
/queue type add name="pcq-download" kind=pcq pcq-rate=0 pcq-classifier=dst-address
/queue type add name="pcq-upload" kind=pcq pcq-rate=0 pcq-classifier=src-address
/queue tree add name="Download" parent=global-in queue=pcq-download packet-mark=all max-limit=6000
/queue tree add name="Upload" parent=global-out queue=pcq-upload packet-mark=all max-limit=6000
/queue simple add queue=pcq-upload/pcq-download target-addresses=192.168.8.128/25
If yes I can't understand the relation of mangle rule + trees to the simple queue.
There is no reference between those things except queue type but it is just a type.
Ideally it is enough:
Code: Select all
/queue type add name="pcq-download" kind=pcq pcq-rate=0 pcq-classifier=dst-address
/queue type add name="pcq-upload" kind=pcq pcq-rate=0 pcq-classifier=src-address
/queue simple add queue=pcq-upload/pcq-download target-addresses=192.168.8.128/25
Thank you!
My configuration is very simple but would like to know exact opinions how it should work.