I am trying to setup 2 ipsec vpn connection to a destination that accept both the connection. I think they are using fortigate at their end.
I am using Mikrotik CHR running on a cloud instance.
Anyway, we have 2 ipsec connection to setup, DR and testing.
I have done the configuration as below:
[abubin@uatmtik] > /ip ipsec policy print
Flags: T - template, X - disabled, D - dynamic, I - invalid, A - active, * - default
# P TUN SRC-ADDRESS
0 T * ::/0
1 XI o yes 192.168.11.32/30
2 A o yes 192.168.11.32/30
[abubin@uatmtik] > /ip ipsec proposal print
Flags: X - disabled, * - default
0 * name="default" auth-algorithms=sha256 enc-algorithms=aes-256-cbc,aes-256-ctr,aes-256-gcm
lifetime=30m pfs-group=modp2048
1 name="client" auth-algorithms=sha256 enc-algorithms=aes-256-cbc,aes-256-ctr,aes-256-gcm
lifetime=30m pfs-group=modp2048
2 name="clientdr" auth-algorithms=sha256 enc-algorithms=aes-256-cbc,aes-256-ctr,aes-256-gcm
lifetime=30m pfs-group=modp2048
[abubin@uatmtik] > /ip ipsec peer print
Flags: X - disabled, D - dynamic, R - responder
0 name="client-peer" address=1.2.3.4/32 local-address=192.168.11.34 profile=client
exchange-mode=ike2 send-initial-contact=yes
1 name="client-peerdr" address=1.2.3.4/32 local-address=192.168.11.33 profile=client
exchange-mode=ike2 send-initial-contact=yes
[abubin@uatmtik] > /ip ipsec identity print
Flags: D - dynamic, X - disabled
0 peer=client-peer auth-method=pre-shared-key secret="12345678" generate-policy=no
1 peer=client-peerdr auth-method=pre-shared-key secret="12345678" generate-policy=no
[abubin@uatmtik] > /ip ipsec profile print
Flags: * - default
0 * name="default" hash-algorithm=sha1 enc-algorithm=aes-128,3des dh-group=modp2048,modp1024
lifetime=1d proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
1 name="client" hash-algorithm=sha256 enc-algorithm=aes-256 dh-group=modp2048 lifetime=1d
proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
2 name="clientdr" hash-algorithm=sha256 enc-algorithm=aes-256 dh-group=modp2048 lifetime=1d
proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
[abubin@uatmtik] > /ip ipsec profile print
Flags: * - default
0 * name="default" hash-algorithm=sha1 enc-algorithm=aes-128,3des dh-group=modp2048,modp1024
lifetime=1d proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
1 name="client" hash-algorithm=sha256 enc-algorithm=aes-256 dh-group=modp2048 lifetime=1d
proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
2 name="clientdr" hash-algorithm=sha256 enc-algorithm=aes-256 dh-group=modp2048 lifetime=1d
proposal-check=obey nat-traversal=yes dpd-interval=2m dpd-maximum-failures=5
I can connect to the client only on one policy. However, I cannot connect with both policy at the same time.
[abubin@uatmtik] > /ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 X chain=srcnat action=masquerade dst-address=192.168.118.0/24 out-interface=ether1 log=no
log-prefix=""
1 X chain=srcnat action=accept src-address=10.15.103.0/24 dst-address=192.168.118.0/24 log=no
log-prefix=""
2 chain=srcnat action=src-nat to-addresses=192.168.11.34 src-address=10.15.103.0/24
dst-address=192.168.118.0/24 out-interface=ether1 log=yes log-prefix=""
3 chain=srcnat action=src-nat to-addresses=192.168.11.33 src-address=10.15.103.0/24
dst-address=192.168.118.0/24 out-interface=ether1 log=yes log-prefix=""
4 chain=srcnat action=accept src-address=192.168.40.32/30 dst-address=192.168.118.0/24
log=yes log-prefix=""
5 chain=srcnat action=masquerade out-interface-list=WAN log=yes log-prefix=""
Appreciate any help on this matter. Is it possible to do this with mikrotik or are my configs wrongly done?
mtik ---------> 192.168.11.34 (test) & 192.168.11.33 (dr) -------------> client (192.168.118.0/24)

