Loadbalancing over Lines with same Gateway IP strange Masquerading Issue

Hi,

I’ve been testing a Loadbalancing setup inspired by this Wiki entry:

https://wiki.mikrotik.com/wiki/Manual:Load_balancing_multiple_same_subnet_links

In my setup the only difference is that the uplinks are pppoe links with the same gateway IP and I’m using
a per connection classifier as inspried elsewhere.

Trouble is on one of the links seems to work all right. On the other there seems
to be an issue with NAT. In torch I see, listening on the pppoe interface internal addresses.

/ip address
add address=192.168.100.254/24 interface=bridge_vlan100 network=192.168.100.0

/interface pppoe-client
add disabled=no interface=ether5.40 name=pppoe-out2 password=bla user=blup
add disabled=no interface=ether6.40 name=pppoe-out3 password=bla2 user=blup2

/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new  new-connection-mark=lb_second passthrough=yes per-connection-classifier=src-address:2/1 src-address=192.168.100.0/24
add action=mark-connection chain=prerouting connection-state=new  new-connection-mark=lb_first passthrough=yes per-connection-classifier=src-address:2/0 src-address=192.168.100.0/24
add action=mark-routing chain=prerouting connection-mark=lb_first new-routing-mark=lb_first passthrough=yes
add action=mark-routing chain=prerouting connection-mark=lb_second new-routing-mark=lb_second passthrough=yes

/ip route
add distance=1 gateway=xx.yy.16.28%pppoe-out2 routing-mark=lb_first
add distance=1 gateway=xx.yy.16.28%pppoe-out3 routing-mark=lb_second

/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out2
add action=masquerade chain=srcnat out-interface=pppoe-out3

I tried using src NAT with the specific interface IPs with the same results

Any hints whats wrong?

Thanks
Ekkehard

Verify that you don’t have any fast-track rule in firewall filter list. Fast-tracking is incompatible with mangling (among other things).

Hello mkx,

Fasttrack is not used on the said system.

Ekkehard