currently i have 2 internet gateways, but currently, i only route one of them for NAT routing.
here’s the codes:
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 125.82.53.128/28 124.82.53.137 internet
1 ADC 172.16.1.0/24 172.16.1.2 internet2
2 ADC 192.168.0.0/24 192.168.0.254 local
3 A S 0.0.0.0/0 r 125.82.53.129 internet
[admin@MikroTik] ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat src-address-list=localclients action=src-nat to-addresses=125.82.53.137
to-ports=0-65535
above codes, it is clear that all ‘localclients’ will route through 192.168.0.254(local interface of mikrotik), and routed to 125.82.53.128 and then to 125.82.53.137.
172.16.1.2 is another interface for my mikrotik, it connects to another internet gateway. now, what should i add if i want to add specific ports request to internet from ‘localclients’ to connect through 172.16.1.1 gateway(internet2), instead of 125.82.53.137?
I’ve tried to make MT as load balancer router for 2 different gateways (i’ve found tutorial @ google) and it worked for… few minutes. Problem was in traffic balance - some interfaces had hugh upload overload but another weren’t used. Another problem was in reseting connections Some traffic have been dropped and doesn’t reach destination host etc. etc. I’ve tried few solutions - for example pfSense ← it doesn’t work too. Now I use regular Linux for load balancing and it works quite good (much better than MT - even it’s the same kernel ). I used NND Linux Distribution - simple, small linux distro (http://nnd.freesco.pl) with custom written scripts.
i assume you have some prior knowledge of networking.
then, if something is not working as you expected it, come back with configuration that does not work.
as it is hard to know what you have looked at and where you made mistake in configuration as RouterOS is very powerful if configured correctly.