I have a reasonably complex routing requirement. I've made it work on Cisco, I've made it work on Snapgear but I can't nut it out on Mikrotik.
Side A (source) has public IP address XXX.XXX.XXX.XXX and private LAN AAA.AAA.AAA.AAA/24 . Side B (destination) has public IP YYY.YYY.YYY.YYY and private LAN BBB.BBB.BBB.BBB/24. Now for the tricky part... destination needs all traffic to BBB.BBB.BBB.BBB/24 to come from source CCC.CCC.CCC.CCC/32.
Here's what I've done so far...
/ip ipsec peer print
address=YYY.YYY.YYY.YYY/32:500 auth-method=pre-shared-key
secret="strongpass" generate-policy=yes exchange-mode=aggressive
send-initial-contact=yes nat-traversal=yes proposal-check=obey
hash-algorithm=md5 enc-algorithm=3des dh-group=modp1024 lifetime=1d
lifebytes=0 dpd-interval=30s dpd-maximum-failures=5
/ip firewall nat print
chain=srcnat action=src-nat to-addresses=CCC.CCC.CCC.CCC
dst-address=BBB.BBB.BBB.BBB/24
IPsec tunnel connects phase 1 but phase 2 expires immediately. What else would be needed to achieve this goal? I can post a working cisco config if that would help.
What else is needed to achieve this outcome?