Hello,
I have a couple of mikrotik routers connected through an IPSEC VPN:
central mikrotik router (static public IP) <---------> remote cpe (dynamic public IP) <-------->remote mikrotik router (non public IP)
172.30.254.250/32 172.30.254.3/32
Using this guide RouterOS - RouterOS - MikroTik Documentation", and it's working fine with these 2 endpoints.
However I'm trying to add another remote router under the same conditions (NAT, dynamic IP) but it's not working as I expected.
These are my configs,
Central router:
/ip ipsec mode-config
add address=172.30.254.3 address-prefix-length=32 name=Td3 split-include=172.30.254.250/32 system-dns=no
add address=172.30.254.4 address-prefix-length=32 name=Td4 split-include=172.30.254.250/32 system-dns=no
/ip ipsec policy group
add name=Tds
/ip ipsec profile
add dh-group=ecp256,modp2048,modp1024 enc-algorithm=aes-256,aes-192,aes-128 name=ike2f1
/ip ipsec peer
add exchange-mode=ike2 name=Td3 passive=yes profile=ike2f1 send-initial-contact=no
This entry is unreachable
add exchange-mode=ike2 name=Td4 passive=yes profile=ike2f1 send-initial-contact=no
/ip ipsec proposal
add auth-algorithms="" enc-algorithms=aes-128-gcm name=ike2f2 pfs-group=none
/ip ipsec identity
add generate-policy=port-strict mode-config=Td3 peer=Td3 policy-template-group=Tds secret=testvpn
add generate-policy=port-strict mode-config=Td4 peer=Td4 policy-template-group=Tds secret=testvpn
/ip ipsec policy
add dst-address=172.30.254.3/32 group=Tds proposal=ike2f2 src-address=172.30.254.250/32 template=yes
add dst-address=172.30.254.4/32 group=Tds proposal=ike2f2 src-address=172.30.254.250/32 template=yes
remote router A:
/ip ipsec mode-config
add name=Td3 responder=no
/ip ipsec policy group
add name=Tds
/ip ipsec profile
add dh-group=ecp256 enc-algorithm=aes-256 name=ike2f1
/ip ipsec peer
add address=./32 exchange-mode=ike2 local-address=172.30.254.253 name=Cor profile=ike2f1
/ip ipsec proposal
add auth-algorithms="" enc-algorithms=aes-128-gcm name=ike2f2 pfs-group=none
/ip ipsec identity
add generate-policy=port-strict mode-config=Td3 peer=Cor policy-template-group=Tds secret=testvpn
/ip ipsec policy
add dst-address=172.30.254.250/32 group=Tds proposal=ike2f2 src-address=172.30.254.253/32 template=yes
after adding the second router config, I got this message of "# This entry is unreachable" under the peer section and that tunnel is not working
Can you advice what is wrong with my config?