2 public IP and 2 local IP with defferent gateways

helo to all mik gurus

i have some noob question here like example

the port1=WAN connected to another isp and the port2=WAN is connected to another isp also, now the port3=(local ip) route to port1 and port4=(local ip) route to port2
it is possible?
please anyone give some ideas

thanks thanks thanks

sori for my english so bad

Here’s a stab at it not knowing your specifics.

/ip address
add address=x.x.x.2/m interface=e1-isp1
add address=y.y.y.2/m interface=e2-isp2
add address=192.168.1.0/24 interface=e3-local1
add address=192.168.2.0/24 interface=e4-local2

/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=local2 src-address=192.168.2.0/24

/ip firewall nat
add chain=srcnat action=src-nat src-address=192.168.1.0/24 dst-address=!192.168.0.0/16 to-addresses=x.x.x.2
add chain=srcnat action=src-nat src-address=192.168.2.0/24 dst-address=!192.168.0.0/16 to-addresses=y.y.y.2

/ip route
add dst-address=0.0.0.0/0 check-gateway=ping distance=1 gateway=x.x.x.1
add dst-address=0.0.0.0/0 distance=2 gateway=y.y.y.1
add dst-address=0.0.0.0/0 routing-mark=local2 gateway=y.y.y.1

/ip route rule
add action=lookup routing-mark=local2 table=local2
add action=lookup table=main

oh wow thanks thanks for reply JJCinAZ im gonna do this tomorow :astonished: