load-balancing don't work

Why your config only chooses one WAN is very telling.
Are you sure your distance rules for the mangled routes are all the same???

Yes just the per connection classifier is different:

8:0
8:1
8:2
8:3
8:4
8:5
8:6
8:7

No thats part of the mangle rules.
I mean the route rules
where you use the route-mark
all 8 rules should have the same distance=1 default setting.

Did you check what exacly doesn’t work? PCC rules that mark connections, do all of them get roughly equal number of hits? If you add another rule that forces specific traffic to selected WAN, does that work? Things like that.

From what I can see in the configuration in the OP, it should work, so there must be some issue with at least one of (per-connection-classifier, connection-mark, routing-mark). I’m also not sure whether the check-gateway=ping setting of /ip route doesn’t cause some trouble if it eventually started to behave differently in 6.44.1 than before.

Two popular misunderstandings can be found in that configuration (which are not the reason why it does not work, they just may surprise you in another context):

  • address-type=local does not match any other addresses than Mikrotik’s own ones. There is currently no firewall rule match condition available which would match all addresses from all connected subnets automatically, without need to provide the particular prefixes of these subnets.
  • there is no point in setting a different distance to routes with a different routing-mark. The distance parameter is only taken into account when choosing a route from a set whose dst-address and routing-mark exactly match and their gateway interfaces are up.

As for how to find out why it does not work:

  • first, check what /ip route print shows. If one (or both) the routes marked with a routing-mark is not marked as Active, the check-gateway=ping is most likely the culprit.
  • next, if the above doesn’t help, log the activity of the PCC rules by adding two rules action=log log-prefix=“connection-mark WANx_conn has been assigned” connection-state=new connection-mark=WANx_conn after the rules with action=mark-connection (where x is 1 in one rule and 2 in the other one), and log the activity of the connection-mark to routing-mark translation rules by two other rules saying action=log log-prefix=“routing-mark to_WANx has been assigned” connection-state=new routing-mark=to_WANx" after them in chain=prerouting.

As @Sebastia has said, a rule with action=fasttrack-connection must not exist in /ip firewall filter chain=forward as fasttracking is incompatible with

Thanks Sindy for your input. I have been at this thread for awhile and fresh eyes and smarter brains are required. Kisses hugs, whatever you prefer LOL.

Thanks Sindy Fasttrack has been removed because they bypass the mangle rules, connection tracking etc. I know that.
But I look at your advice and let you know how it went.
Thanks in advance for your response

Hello, here a’m back with news.

Can you explain that load balancing like this works with RouterOS 6.21.1 and not with the 44.1? On RB2011UiAS 2HnD-in
I have been searching for a solution for almost a month.
But no result. This must be a bug in RouterOS.
Can you help me solve this with a working configuration. Or RouterOS needs to be updated.
I think Mikrotik will have to work on that.
I’m not the only one with these complaints.

This is the export with 44.1

/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.12.50-192.168.12.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether5 name=dhcp1
/ip address
add address=192.168.12.1/24 interface=ether5 network=192.168.12.0
/ip dhcp-client
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=ether2
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=ether3
/ip dhcp-server network
add address=192.168.12.0/24 dns-server=192.168.12.1,8.8.8.8 gateway=192.168.12.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.12.1 name=ns1.testnet
/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.101.0/24
add action=accept chain=prerouting dst-address=192.168.102.0/24
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1 in-interface=ether5 new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2 in-interface=ether5 new-routing-mark=ether3-mark passthrough=yes
add action=mark-routing chain=output connection-mark=WAN1 new-routing-mark=ether2-mark passthrough=yes
add action=mark-routing chain=output connection-mark=WAN2 new-routing-mark=ether3-mark passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether2 new-connection-mark=WAN1 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether3 new-connection-mark=WAN2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2
add action=masquerade chain=srcnat out-interface=ether3
/ip route
add check-gateway=ping distance=1 gateway=192.168.101.1 routing-mark=ether2-mark
add check-gateway=ping distance=1 gateway=192.168.102.1 routing-mark=ether3-mark
add distance=1 gateway=192.168.101.1
add distance=2 gateway=192.168.102.1
/lcd interface pages
set 0 interfaces=wlan1

This is the export with 6.21.1

/interface ethernet
set [ find default-name=ether1 ] speed=1Gbps
set [ find default-name=ether2 ] speed=1Gbps
set [ find default-name=ether3 ] speed=1Gbps
set [ find default-name=ether4 ] speed=1Gbps
set [ find default-name=ether5 ] speed=1Gbps
set [ find default-name=ether6 ] advertise=10M-half,10M-full,100M-half,100M-full
set [ find default-name=ether7 ] advertise=10M-half,10M-full,100M-half,100M-full
set [ find default-name=ether8 ] advertise=10M-half,10M-full,100M-half,100M-full
set [ find default-name=ether9 ] advertise=10M-half,10M-full,100M-half,100M-full
set [ find default-name=ether10 ] advertise=10M-half,10M-full,100M-half,100M-full
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g l2mtu=2290 proprietary-extensions=pre-2.9.25
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=aes-128-cbc,aes-192-cbc,aes-256-cbc
/ip pool
add name=dhcp_pool0 ranges=192.168.12.50-192.168.12.254
/ip dhcp-server
add address-pool=dhcp_pool0 authoritative=yes disabled=no interface=ether5 name=dhcp1
/port
set 0 name=serial0
/snmp community
set [ find default=yes ] addresses=::/0
/system logging action
set 2 remember=yes
set 3 remote=0.0.0.0 src-address=0.0.0.0
/interface bridge port
add
/ip address
add address=192.168.12.1/24 interface=ether5 network=192.168.12.0
/ip dhcp-client
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=ether2
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=ether3
/ip dhcp-server network
add address=192.168.12.0/24 dns-server=192.168.12.1,8.8.8.8 gateway=192.168.12.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.12.1 name=ns1.testnet
/ip firewall mangle
add chain=prerouting dst-address=192.168.101.0/24
add chain=prerouting dst-address=192.168.102.0/24
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=ether5 new-connection-mark=WAN1 \
    per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local in-interface=ether5 new-connection-mark=WAN2 \
    per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1 in-interface=ether5 new-routing-mark=ether2-mark
add action=mark-routing chain=prerouting connection-mark=WAN2 in-interface=ether5 new-routing-mark=ether3-mark
add action=mark-routing chain=output connection-mark=WAN1 new-routing-mark=ether2-mark
add action=mark-routing chain=output connection-mark=WAN2 new-routing-mark=ether3-mark
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether2 new-connection-mark=WAN1
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=ether3 new-connection-mark=WAN2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2
add action=masquerade chain=srcnat out-interface=ether3
/ip hotspot user
add comment="counters and limits for trial users" name=default-trial
/ip route
add check-gateway=ping distance=1 gateway=192.168.101.1 routing-mark=ether2-mark
add check-gateway=ping distance=1 gateway=192.168.102.1 routing-mark=ether3-mark
add distance=1 gateway=192.168.101.1
add distance=2 gateway=192.168.102.1
/ip upnp
set allow-disable-external-interface=no
/lcd interface pages
set 0 interfaces=wlan1
/snmp
set trap-community=public trap-generators=*ABC0002
/system clock
set time-zone-name=Europe/Brussels
/system leds
add

This configuration is based on this tutorial.
https://lcx.wien/blog/load-balancing-using-pcc-routeros/

I created this movie during the configuration
Here you can follow the configuration, ignore my voice in Dutch :slight_smile:
I cannot explain it more clearly.

https://www.youtube.com/watch?v=iwPW7Fp0ThY&feature=youtu.be

I have written a few posts above what to do to identify the part which does not work properly. Your newest post has neither shown the answers to my questions nor provided the necessary information in any other form, you just declare again that it does not work and provide the 6.44.1 configuration you’ve already provided before.

I’m willing to help you identify the single root cause to be circumvented by a configuration change or to be claimed with Mikrotik as a bug, but to do so, I need the answers to my questions. I won’t watch a 30 minutes video showing the individual steps of configuration when it is clear in advance that the configuration is correct and someting is broken in 6.44.1 or at least works different than it did before. And I also won’t copy your configuration into one of my devices and debug it on my own because I’d have to imitate also the surrounding environment with two uplinks.

in this case i can tell you a little bug in it:
With ROS 6.44.1
when all working, it takes all data from WAN2.
when i disconnect WAN2
it will contineu the internet feeds
PROBLEM: the connection at the clients side must be restarted! so the client need to reboot the SXT receiver before internet is back!
When i put back the WAN2 no problems


With ROS 6.21
when all working, it takes all data from WAN2.
when i disconnect WAN2
The internet will go off
it will contineu the internet feeds after a 4 till6 seconds
And clients need only to refresh the webpage! no reboot internet SXT receiver!
SO thats OK
ONLY 1 PROBLEM:
when i put back the WAN2
the it will contineu the internet feeds after a 4 till6 seconds AGAIN!
So at any interruption of the ISP the clinet will disconnected 2 times instead of 1

So conclusion ROS6.44.1 is totaly not stable!
Also we having more problems with it