Hello.
I am new to this forum, so please forgive any mistakes.
From two days i try to do asymetric QoS for my nated networks. So ihave a few questions, but first I will try to explain my situation exactly.
Suppose we have the following configuration:
eth1 -\
|- bridghe1 -\
eth2 -/ \
|- srcnat (masq) - eth5
eth3 -\ /
|- bridghe2 -/
eth4 -/
eth6 - router admin
adresses:
bridge1 - 192.168.1.1/24 (LAN1)
bridge2 - 192.168.2.1/24 (LAN2)
eth5 - 10.0.0.1/30 (as samble public IP)
eth6 - 172.16.0.1/24 (onlu for access router administration)
/ip address
add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0
add address=192.168.2.1/24 interface=bridge2 network=192.168.2.0
add address=10.0.0.1/30 interface=eth5 network=10.0.0.0
add address=172.16.0.1/24 interface=eth6 network=172.16.0.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=eth5
add action=masquerade chain=srcnat src-address=192.168.2.0/24 to-addresses=0.0.0.0
/ip route
add distance=1 gateway=10.0.0.2
(secure filter ruless ommited)
Now what we want:
1 - limit all trafic from LAN1 and LAN2 going to eth5 to some value
2 - divide all trafic going outsie (from 1) equal to all user (idepend on witch terwork they are)
3 - divavie user outgaoing trafic equal to every his connection
4 - Important! no limit trafic from oune user to oter user!
5 - limit all incoming trafic (goint from eth5)
7 - divide all incoming trafic equal to every user (independ on LAN)
8 - divide user incomind trafic equal to every his connecion
9 - No limit trafic fron ther users.
(Example)
Ew have 5 users: u1, u2, u3 on LAN1 and u4, u5 on LAN2
and lets say u1, u2, u4 have 2 active connextion adn u3, u5 have 4 active connection
1 - limit all trafic from u1..u5 to 5Mbit
2 - then u1, u2, u3, u4 and u5 can send 1Mbit
3 - u1, u2, u4 have 2 connection, exh 512kbit, u3, u5 heav 4 connetcion each 256kbit
4 - Its important thet in this sample we hav no connection ex from u1 to u4. It cannot be limited!
5 - limit all trafic to u1..u5 (from eth5) to 10Mvit
7 - hten all users can download with the same speed: 2Mbit
8 - u1, u2 u 4 1Mbit per connextion and u3, u5 513kbit per connection
9 - All trafic betwien users (eg u1 → u2, u2 → u5) are not limited, and administrative trafiic on eth6 are not limited too.
I know then in QoS the sum of trafic must bee som lower then all posibilit, but for simplify exeample i divide it all..
IMPORTANT: I can use: /interface bridge settings use-ip-firewall=yes
because its incrediable decresse local trafic speed.
So ferst question about HTB:
Where place HTB for incoming trafic? (for outcoming i thing it must be: paretn: eth5)
if use global how to exlude from it local trafic?
Next ho to mangle trafic?
If i marc connection, then packt (for speed reson) marked i mark packet in all direction. It will bo ok weh i Use HTB on other interfaces? or i must mark separet ougoing an incoming pacekt?
Packet from LANx to eth5 (srcnat) are routed or briges? (in my opinion it must be routed, but never found answer)
how to easy chcec if i mark correct packet - is the a siple tool for chcek it?
Thanks in advance for any hint