hi all
i have two wan connection from two different ISP with different Gateway
i am using ISP1 for users and ISP for my servers
here is my configuration
/ ip firewall mangle
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP2
add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2
/ ip route
add dst-address=0.0.0.0/0 gateway=111.111.111.1 routing-mark=to_ISP1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=222.222.222.1 routing-mark=to_ISP2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=111.111.111.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=222.222.222.1 distance=2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=ISP1 action=masquerade
add chain=srcnat out-interface=ISP2 action=masquerade
/ip firewall nat
add chain=srcnat comment="Clients SRC NAT" out-interface=ISP1 src-address-list="Clients SRC NAT"
add chain=srcnat comment="Servers SRC NAT" out-interface=ISP2 src-address-list="Servers SRC NAT"
add action=dst-nat chain=dstnat dst-address=222.222.222.19 routing-mark=to_ISP2 to-addresses=192.168.0.19
add action=src-nat chain=srcnat routing-mark=to_ISP2 src-address=192.168.0.19 to-addresses=222.222.222.19
i use dst nat for my ftp server, but its not working, and when i disable ISP1 connection the FTP server is reachable from outside of my network.
is there any problem in my configuration?