IPsec Issue After Upgrading to RouterOS 7.25 / 7.25.1 – IA Status on Peer and Packets Rejected

Hello everyone,

After upgrading to RouterOS version 7.25 or 7.25.1, I started experiencing an issue with my IPsec connection.

Here is what I am experiencing:

  • The IPsec Peer shows IA status.
  • From the Core Router, I can successfully ping devices on the Site Router's LAN.
  • However, from the Site Router, when I try to ping the Core Router, the packets are rejected (Packet Rejected).

It seems that traffic is working only in one direction, even though the IPsec tunnel is configured.

Has anyone experienced similar issues after upgrading to RouterOS 7.25 or 7.25.1?

Could this be related to changes in firewall rules, IPsec policies, routing, or a possible bug in the new RouterOS version?

Any suggestions or solutions would be greatly appreciated.

Thank you!

Hey and welcome to the forum!

Just guessing here, but the "IA" part is what catches my eye. Peers don't have those flags, policies do, and there "I" means invalid and "A" means active. So I'd start with the policy. One known cause of an invalid policy is a duplicate with the same src and dst address, so look for that first. Run this on both routers:

/ip ipsec policy print detail
/ip ipsec active-peers print

One more thing to rule out is the source address. A ping from the router itself may go out with the WAN IP and then it never matches the policy. Try it from the LAN address on the Site router:

/ping <Core LAN IP> src-address=<Site router LAN IP>

Please post the output plus an export from both routers (/export file=anyname). Mask public IPs, keys and serial number in everything you post since this forum is public. Also tell us which version you came from and the exact IP you ping on the Core side.

Hello, and thank you as well. I’m sending you the information showing what appears when I use those commands.

Site-Routers] > ping 10.10.10.254 src-address=10.10.10.50
SEQ HOST                                     SIZE TTL TIME       STATUS
0 10.10.10.254                              56  64 7ms148us
1 10.10.10.254                              56  64 8ms546us
2 10.10.10.254                              56  64 7ms778us
sent=3 received=3 packet-loss=0% min-rtt=7ms148us avg-rtt=7ms824us
max-rtt=8ms546us

[Site-Routers] > /ip ipsec policy print detail
Flags: T - TEMPLATE; X - DISABLED, I - INVALID, A - ACTIVE; * - DEFAULT
0  TX* group=default src-address=::/0 dst-address=::/0 protocol=all
proposal=default template=yes

1   IA  peer=peer-isp1 tunnel=yes group=default src-address=192.168.50.0/24
src-port=any dst-address=10.100.0.0/21 dst-port=any protocol=all
action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.10.10.50 sa-dst-address=10.10.10.254
proposal=proposal_phase2_gcm ph2-count=1

2   I  peer=peer-isp1 tunnel=yes group=default src-address=192.168.50.0/24
src-port=any dst-address=10.20.20.0/24 dst-port=any protocol=all
action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.10.10.50 sa-dst-address=10.10.10.254
proposal=proposal_phase2_gcm ph2-count=0

3   X  peer=peer-isp2 tunnel=yes group=default src-address=192.168.50.0/24
src-port=any dst-address=10.100.0.0/21 dst-port=any protocol=all
action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.136.100.50 sa-dst-address=::
proposal=proposal_phase2_gcm ph2-count=0

4   X  peer=peer-isp2 tunnel=yes group=default src-address=192.168.50.0/24
src-port=any dst-address=10.20.20.0/24 dst-port=any protocol=all
action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.136.100.50 sa-dst-address=::
proposal=proposal_phase2_gcm ph2-count=0

   [Site-Routers] /ip/ipsec> active-peers print

Columns: ID, STATE, UPTIME, PH2-TOTAL, REMOTE-ADDRESS

ID             STATE        UPTIME  PH2-TOTAL  REMOTE-ADDRESS

0 10.10.10.254  established  9m20s           1  10.10.10.254

Okay, no duplicates so scratch that idea (it was a longshot anyways)

What I see is that only one of your two phase 2 tunnels is up. The policy to 10.100.0.0/21 has ph2-count=1 but the one to 10.20.20.0/24 has ph2-count=0, and active-peers shows just 1 phase 2. So anything going to 10.20.20.0/24 has no tunnel to use. Funny thing is the working policy is flagged invalid too, so I wouldn't read too much into that flag right now.

Your ping went from 10.10.10.50 to 10.10.10.254. Those are the tunnel endpoints, so it never went through the tunnel. Try these on the Site router instead:

/ping <an IP in 10.100.0.0/21> src-address=<Site router LAN IP>
/ping <an IP in 10.20.20.0/24> src-address=<Site router LAN IP>
/ip ipsec policy print detail
/log print where topics~"ipsec"

So my new guess is the first one works and the second one fails, and the log should tell us why. Please run the policy print on the Core router too since the problem could just as well be on that side.

To give you a more useful answer I'd still need the export from both routers, which version you came from and the exact IP you ping on the Core side.

I have the same issue with a number of IPSec IKE2 VPNs, after upgrading to RouterOS 7.25.1.
I am not in the position to downgrade to 7.24.6.

So far, this is the most terrible upgrade I have done on my production setup and I hope the remediation of the issue is coming out soon.

Many important IPSec policies are now marked as IA and I have no solution at the moment.

Yes, the IPsec tunnel shows as active, but I still cannot ping or reach devices on the remote LAN, such as the DNS server and other internal resources.

I suspect the problem is on the Site routers. I have more than 30 routers connected, but only 3–4 Site routers are experiencing this particular issue. All of them are the same hardware model: MikroTik RB5009UG+S+IN.

The interesting thing is that the other Site routers, using the same model and apparently the same configuration, are working correctly.

This makes me think the issue could be related to the IPsec policies, Phase 2 negotiation, routing, firewall rules, or possibly a RouterOS version/configuration issue on the affected Site routers.

I will run the requested commands on both the Site and Core routers and compare the configurations with a working Site router so we can identify what is different.

 [Site-Routers] > ping 10.100.0.10 src-address=192.168.50.1
SEQ HOST                                     SIZE TTL TIME       STATUS
0                                                              packet rej...
1                                                              packet rej...
2                                                              packet rej...
3                                                              packet rej...
4                                                              packet rej...
5                                                              packet rej...
sent=6 received=0 packet-loss=100%

[Site-Routers] > ping 10.20.20.171 src-address=192.168.50.1
SEQ HOST                                     SIZE TTL TIME       STATUS
0                                                              packet rejected
1                                                              packet rejected
sent=2 received=0 packet-loss=100%

[Site-Routers] > ping 10.20.20.228 src-address=192.168.50.1
SEQ HOST                                     SIZE TTL TIME       STATUS
0                                                              packet rejected
1                                                              packet rejected
2                                                              packet rejected
sent=3 received=0 packet-loss=100%

[Site-Routers] > /ip ipsec policy print detail
Flags: T - TEMPLATE; X - DISABLED, I - INVALID, A - ACTIVE; * - DEFAULT
0  TX* group=default src-address=::/0 dst-address=::/0 protocol=all proposal=default template=yes

1   IA  peer=peer-isp1 tunnel=yes group=default src-address=192.168.50.0/24 src-port=any
dst-address=10.100.0.0/21 dst-port=any protocol=all action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.10.10.50 sa-dst-address=10.10.10.254 proposal=proposal_phase2_gcm ph2-count=1

2   I  peer=peer-isp1 tunnel=yes group=default src-address=192.168.50.0/24 src-port=any
dst-address=10.20.20.0/24 dst-port=any protocol=all action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.10.10.50 sa-dst-address=10.10.10.254 proposal=proposal_phase2_gcm ph2-count=0

3   X  peer=peer-isp2 tunnel=yes group=default src-address=192.168.50.0/24 src-port=any
dst-address=10.100.0.0/21 dst-port=any protocol=all action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.136.100.50 sa-dst-address=:: proposal=proposal_phase2_gcm ph2-count=0

4   X  peer=peer-isp2 tunnel=yes group=default src-address=192.168.50.0/24 src-port=any
dst-address=10.20.20.0/24 dst-port=any protocol=all action=encrypt level=unique ipsec-protocols=esp
sa-src-address=10.136.100.50 sa-dst-address=:: proposal=proposal_phase2_gcm ph2-count=0
[Site-Routers] > /log print where topics~"ipsec"
2026-11-13 05:10:52 ipsec,info new ike2 SA (R): peer-isp1 10.10.10.254-10.10.10.50 2154c4a2cb640d9f:dcb3673aa
95a9976
2026-11-13 05:10:53 ipsec,info,account peer authorized: peer-isp1 10.10.10.254-10.10.10.50 2154c4a2cb640d9f:d
cb3673aa95a9976
2026-11-13 05:10:57 ipsec,info new ike2 SA (I): peer-isp1 10.10.10.50-10.10.10.254 0e272a5c823e23ef:d941536a1
555e455
2026-11-13 05:10:57 ipsec,info killing ike2 SA: peer-isp1 10.10.10.254-10.10.10.50 2154c4a2cb640d9f:dcb3673aa
95a9976
2026-11-13 05:10:57 ipsec,info,account peer authorized: peer-isp1 10.10.10.50-10.10.10.254 0e272a5c823e23ef:d
941536a1555e455
2026-11-13 05:15:56 ipsec,info killing ike2 SA: peer-isp1 10.10.10.50-10.10.10.254 0e272a5c823e23ef:d941536a1
555e455
2026-11-13 05:15:57 ipsec,info new ike2 SA (I): peer-isp1 10.10.10.50-10.10.10.254 9ec8b4756f93ec3b:36a713281
f7b1d07
2026-11-13 05:15:57 ipsec,info,account peer authorized: peer-isp1 10.10.10.50-10.10.10.254 9ec8b4756f93ec3b:3
6a713281f7b1d07
2026-11-13 12:08:01 ipsec,info killing ike2 SA: peer-isp1 10.10.10.50-10.10.10.254 9ec8b4756f93ec3b:36a713281
f7b1d07
2026-11-13 12:37:49 ipsec,info new ike2 SA (R): peer-isp2 10.136.100.254-10.136.100.50 2fe4633661c1de38:d042091
d253fe59f
2026-11-13 12:37:49 ipsec,info new ike2 SA (I): peer-isp2 10.136.100.61-10.136.100.254 c3e094ad8b02b02f:089356e
a6e644436
2026-11-13 12:37:49 ipsec,info,account peer authorized: peer-isp2 10.136.100.61-10.136.100.254 c3e094ad8b02b02f
:089356ea6e644436
2026-11-13 12:37:49 ipsec,info,account peer authorized: peer-isp2 10.136.100.254-10.136.100.61 2fe4633661c1de38
:d042091d253fe59f
2026-11-13 12:37:49 ipsec,info killing ike2 SA: peer-isp2 10.136.100.61-10.136.100.254 c3e094ad8b02b02f:089356e
a6e644436
2026-11-13 12:38:21 ipsec,info killing ike2 SA: peer-isp2 10.136.100.254-10.136.100.61 2fe4633661c1de38:d042091
d253fe59f
2026-11-13 12:38:25 ipsec,info new ike2 SA (R): peer-isp1 10.10.10.254-10.10.10.50 1f711758a39efbbc:0b631ebfe
60d9125
2026-11-13 12:38:25 ipsec,info new ike2 SA (I): peer-isp1 10.10.10.50-10.10.10.254 eee9780dca1a6014:13b64baf8
b5df2bc
2026-11-13 12:38:25 ipsec,info,account peer authorized: peer-isp1 10.10.10.50-10.10.10.254 eee9780dca1a6014:1
3b64baf8b5df2bc
2026-11-13 12:38:55 ipsec,info killing ike2 SA: peer-isp1 10.10.10.254-10.10.10.50 1f711758a39efbbc:0b631ebfe
60d9125

[Site-Routers] >

Okay, I was wrong again. But I'm done guessing for now. I've asked twice for the export from both routers, the version you came from and the Core's policy print. If you want me to keep helping I'm gonna need those.

A last guess though: LAN-sourced pings rejected, so the I flag is real. Your log shows both sides dialing at once, so the policy might be stuck on a killed IKE session. Test with only the Site router dialing in, check where the packets die and see if a working router also shows the I flag.

If it helps to anyone, the RouterOS 7.26.beta5 is not having this issue.
I upgraded to this unknown version due to the fact that I could not revert back. Fortunately, my VPNs are back and working.
I hope a stable release with the fix is coming out soon.

Glad your IPsec tunnels are back up! But "it works on 7.26beta5" still doesn't get us any closer to the actual root cause or which fix really solved it. And an early MT beta is far (IMO very far!) from production-ready.

True. I guess we have to wait for developers to release RCA once they officially fix it.

Perhaps a stupid question, but why couldn't you revert to what had been working?

Because we now have a fleet of remotely inaccessible routers, which requires to plan a major servicemen visit, do manually downgrade each router on site.
Instead, the solution would be to wait for the router to automatically upgrade to the latest stable version which recovers the VPN connectivity.

What is being done at the moment is an occasional reset of the central vpn router, after which we have a short service window while the remote VPNs do not become IA. During that window we connect and manually fix what is possible to reach at that moment, but that is very slow and inefficient.

I'm still confused . . . If you have any access, an upgrade and a downgrade can be the same process.

I just took my "world" down to 7.24.6 fro 7.25.1 . . . Simply selected "long-term" and "upgrade and install" and it goes back . . (You didn't do the 7.26beta update hands on did you? If so, ignore this, but it didnt sound like it ...)

???

The upgrade is scripted and scheduled in the remote routers.
Downgrade can be only done manually.

What do you propose for the solution?

If your script can specify a channel, then it could pull long-term and go back. Not sure what/if access you have, but it sounds like you do have some.

For that matter, since you say that 7.25.1 seems to work on all but a few, perhaps rebuilding/swapping out those few might be an option?

Yeah, that is what we initially planned here too.

The update script is only taking the latest stable. For changing the scheduled updated script to be able to upgrade, one has to manually access each router and to perform changes in a short service window.

The best would be a new stable update, then all the fleet would recover automatically in a short term.

Thanks for the advice, something will be done in that direction. I see the incoming weekend as a working one...

No access, even if just CLI back through the tunnels? Bummer . . . .

You might consider just rolling back the ones with issues first - that sounds like it would be far easier logistically - and confirm that the problem truly is on that end. Mixed version, while not technically "ideal" should be a non issue while you work through this.