i’m use router with MikroTik for 2 ISP.
In RouterOS v2.8 i’m use mark-flow in ip firewall mangle for mark packets from differend ISP.
/ ip firewall mangle
add in-interface=eth1 action=passthrough mark-connection=isp1_c \
comment="" disabled=no
add connection=isp1_c action=accept mark-flow=isp1_f comment="" \
disabled=no
add in-interface=eth2 action=passthrough mark-connection=isp2_c \
comment="" disabled=no
add connection=isp_c action=accept mark-flow=isp2_f comment="" \
disabled=no
Next, i’m use different gw to route
/ ip policy-routing rule
add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 flow=isp1_f interface=all \
action=lookup table=sip1 comment="" disabled=no
add src-address=0.0.0.0/0 dst-address=0.0.0.0/0 flow=isp2_f interface=all \
action=lookup table=isp2 comment="" disabled=no
/ ip policy-routing table isp1
add dst-address=0.0.0.0/0 gateway=5.1.1.1 preferred-source=0.0.0.0 \
comment="" disabled=no
/ ip policy-routing table isp2
add dst-address=0.0.0.0/0 gateway=10.1.1.1 preferred-source=0.0.0.0 \
comment="" disabled=no
Under NAT i have smtp server, and if connection receiving from isp1, than answer send to isp1, if from isp2, to isp2.
But, in RouterOS >= v2.9 this commands is not work.
What command i can use in new version RouterOS?
PS: sorry for my englsih (ne hvataet znanih shkolnoy programmy)