Hello everyone.
Need some help with settings IPSec via second ISP.
Sorry if i wrote something wrong.
I have 2 offices. First office with mikrotik have 2 ISP, second office have 1 ISP.
In office with mikrotik where 2 ISP, first ISP default, second ISP backup.
I established IPSec connection via first ISP and IPSec works fine.
But when i tried to establish IPSec via second ISP, i got error "no phase 2"
In second office i got log and see this(I changed IP):
X_IP - first ISP IP from mikrotik
Y_IP - second ISP IP for backup from mikrotik
"CONNECTION STATUS: DOWN... peer: X_IP:4500, phase1_id: Y_IP"
What mean, mikrotik still use default ISP, not backup but in phase1_id IP address is second ISP
I read documentation about IPSec and second ISP here:
I found this section:
'IPsec, as any other service in RouterOS, uses the main routing table regardless of what local-address parameter is used for Peer configuration. It is necessary to apply routing marks to both IKE and IPSec traffic.'
I tried to create mangle rule and add route for marked traffic via second ISP like in documentation.
But mikrotik still use default ISP for establish IPSec not backup ISP.
I tried to check mikrotik mangle log and see this:
X_IP - first ISP IP from mikrotik
Y_IP - second ISP IP for backup from mikrotik
Z_IP - second office IP
ether6 - default ISP port
IPSEC TEST output: in:(unknown 0) out:ether6, connection-state:established,snat proto UDP, Y_IP:4500->Z_IP:4500, NAT (Y_IP:4500->X_IP:49715)->Z_IP:4500, len 272
Mikrotik Model: CCR1009-8G-1S
RouterOS: 7.21.3 (stable)
Can anyone help to understand why this happened and how to say mikrotik to use second ISP and don't NAT to first ISP?