you mean, ‘add second gateway to the existing default route’? it’s called ECMP and it should work - check your NAT rules…
but if you need something more cool than ECMP - you create different default routes with different routing-marks, and then mark upload packets according to necessary gateway
[admin@KKT-HS] /ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE IN..
0 A S 0.0.0.0/0 r 178.242.0.200 1 et..
1 A S 0.0.0.0/0 r 172.16.0.200 1 et..
3 ADC 10.0.0.0/30 10.0.0.1 0 wl..
4 ADC 172.16.0.0/24 172.16.0.1 0 et..
5 ADC 178.242.0.0/24 178.242.0.1 0 et..
6 ADC 178.242.1.0/24 178.242.1.1 0 br..
7 A S 178.242.2.0/24 r 10.0.0.2 1 wl..
8 ADC 192.168.0.0/24 192.168.0.10 0 et..
9 A S 192.168.10.0/24 r 178.242.1.2 1 br..
10 A S 192.168.11.0/24 r 10.0.0.2 1 wl..
11 A S 198.54.15.0/24 r 10.0.0.2 1 wl..
[admin@KKT-HS] /ip route>
this is completely wrong. you mark ALL packets and route them to the Internet, even if they come from the Internet. src-address should be you LAN addresses. or use in-interface=private
I want to allow ip range 198.54.15.0/24 and 192.168.10.0/24 to use 178.242.0.200 as their gateway
And allow 192.168.11.0/24 and 192.168.12.0/24 to use 172.16.0.200 as their gateway.
something like that. and if you need routing between those subnets, then you should add one more rule on the top with ‘action=accept’ and dst-address-list=my_local_subnets, then add all your four subnets to that address list
Thank you. I managed to figure it out but when i tried to ping i got TTL expired in transit.
So i tried to run tracert and saw that routing was looping. I added wlan1 to /firewall/mangle/rule1 and now is working.