Community discussions

MikroTik App
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Problem with IPsec after update to 6.42

Wed Jul 04, 2018 3:40 pm

Hello,
After updating from 6.41.4 to 6.42.5 the traffic does not go through the tunnel (tunnel is established, but the traffic does not go).
After downgrade to 6.41.4 everything works fine again.

What changes in 6.42. led to this?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Wed Jul 04, 2018 5:37 pm

Only support might know the particular changes in detail, and even that is not sure if they were unintentional. There seems to be some mess in policy ordering, and I had issues where one peer has decided to use plain ESP while the other one was encapsulating it into UDP.

So to start from somewhere, post here the output of /ip ipsec remote-peers print detail, /ip ipsec policy print and /ip ipsec installed-sa print from both ends (if both are Mikrotik ones), after systematically replacing each occurrence of each public address by a distinctive pattern like pub.lic.ip.1, pub.lic.ip.2 (so that the relationship remains visible) and removing the auth-key and enc-key items from the installed-sa output.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Fri Jul 13, 2018 7:05 pm

I found a bug in the 6.42.x version:
6.42 generate policy with incorrect Dst.Address: instead of 0.0.0.0/0 (in 6.41) i see public ip of remote router (in 6.42)

Mikrotik, please fix this bug ASAP!
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Fri Jul 13, 2018 7:19 pm

Mikrotik cannot fix a bug if they don't get enough information about it. So generate the supout.rif file and send it to support@mikrotik.com. I am running several IPsec tunnels using various 6.42.x versions and things like this do not happen, so it is not a generic issue to happen to everyone.

I'd suggest you to follow the instructions in my automatic signature, as there may be something in your configuration which results in what you describe.

Plus add the output of /ip ipsec remote-peers print, /ip ipsec policy print, /ip ipsec installed-sa print, of course after applying the systematic public IP address substitutions also on these data before posting them.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Fri Jul 13, 2018 10:10 pm

>>I am running several IPsec tunnels using various 6.42.x versions and things like this do not happen

You also use 0.0.0.0/0 in Src.Address (and Generate Policy on other side)?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Fri Jul 13, 2018 10:19 pm

I don't. If you have tested that this is the unambiguous cause (i.e., if you use something else than 0.0.0.0/0, the generated policy is correct), then state this clearly when sending the information to support.
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Sat Jul 14, 2018 8:49 pm

BTW, use of two policies, one with 0.0.0.0/1 and another one with 128.0.0.0/1, could be a workaround until Mikrotik fixes the 0.0.0.0/0 issue.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Mon Aug 20, 2018 1:26 pm

6.42.7 also have this issue!
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Tue Sep 25, 2018 7:47 pm

6.43.2 also have this issue!
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Thu Oct 18, 2018 1:46 pm

6.43.4 also have this issue!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Problem with IPsec after update to 6.42

Thu Oct 18, 2018 7:03 pm

Mikrotik cannot fix a bug if they don't get enough information about it. So generate the supout.rif file and send it to support@mikrotik.com.
Have you done this?
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Thu Oct 18, 2018 7:56 pm

This behavior can be easily reproduced in the test lab.
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Thu Oct 18, 2018 8:23 pm

This behavior can be easily reproduced in the test lab.
The key here is to send the e-mail to support with a clear description of the problem, have you done at least that? Because posting it at the forum is not the way to inform Mikrotik about the problem, they don't read every single post at the forum, while they do read every single e-mail which arrives to support@mikrotik.com.

Sending supout.rif makes it easier (and sometimes at all possible) to analyse for guys at support because they have all the necessary information in one place; what they actually need is the complete configuration including the dynamic elements which are not part of the export (because e.g. a dynamically assigned address may collide with a manually configured one) plus the information about the routerboard model, routeros version, and the actually running version of the firmware. So if your case description is clear enough, the supout.rif may not be actually necessary, but the formal process the support guys have to follow makes them ask for it because the alternative ways of putting the information together cost them more time. So I've found it easier to change the passwords and addresses (or, better, set up an environment with no public addresses) and generate the supout.rif than to argue with them why it is not necessary.

But again, the key is to describe the case clearly enough using the right information channel.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Problem with IPsec after update to 6.42

Thu Oct 18, 2018 10:39 pm

This behavior can be easily reproduced in the test lab.
Have you written to them so that they can try to reproduce the problem? :)
 
User avatar
emils
Forum Veteran
Forum Veteran
Posts: 906
Joined: Thu Dec 11, 2014 8:53 am

Re: Problem with IPsec after update to 6.42

Fri Oct 19, 2018 11:11 am

Since you are so hesitant to contact support, can you explain your setup and logic behind your policy configuration here? I can not think of a single case where responder should generate a dynamic policy with dst-address=0.0.0.0/0. Later versions (6.42+) has a security measure that disallows this to not allow an initiator to possibly disrupt network on responder.
 
mikruser
Long time Member
Long time Member
Topic Author
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Problem with IPsec after update to 6.42

Fri Oct 19, 2018 12:45 pm

can you explain your setup and logic behind your policy configuration here? I can not think of a single case where responder should generate a dynamic policy with dst-address=0.0.0.0/0.
We have a large number of subnets, and instead of creating a separate policy for each subnet, we create one policy for 0.0.0.0/0

Later versions (6.42+) has a security measure that disallows this to not allow an initiator to possibly disrupt network on responder.
My configuration worked fine for 7 years, and only 6.42 disrupt my network.

why didn't you write about these fundamental changes in 6.42 changelog??
 
F1le
newbie
Posts: 29
Joined: Tue Nov 21, 2017 1:35 am

Re: Problem with IPsec after update to 6.42

Tue Nov 27, 2018 2:39 am

I do confirm. Has the same problem with IPSec...

Any workaround?
 
DaveNISC
just joined
Posts: 2
Joined: Thu Jan 31, 2019 12:50 am
Location: Bogota - Colombia

Re: Problem with IPsec after update to 6.42

Mon Apr 15, 2019 7:39 pm

apparently ipsec has many problems, one of my clients updated the router and lost the connection ipsec and NAT, just at this time I have a problem with another ipsec, it worked 1 week, then it stopped working, so far no one has been able to give with the solution. The Ipsec is established without problems, the two mikrotik routers see the LANs but the hosts can not ping each other and there is no lack of the NAT rule. what a big problem.
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Problem with IPsec after update to 6.42

Mon Apr 15, 2019 8:11 pm

Woes without technical details are pointless; what helps is analysis. Networking environment is a dynamic one with all those automatic updates which sometimes happen without letting the user know if the OS vendor deems them "critical", so a conclusion that a Mikrotik is the reason of the problem if you haven't upgraded it (i.e. in the case where it worked for a week and then stopped) is a premature one without a hop-by-hop analysis of the traffic. I don't say it cannot be a Mikrotik issue; I just say that there is a good chance that it isn't and that it can thus be resolved, and that if it is a Mikrotik issue, it needs to be reported in a way allowing the R&D to fix it.

So I'd recommend to use /tool sniffer or /tool torch to check whether the ICMP packets do arrive to the Mikrotik from the host on one site, arrive encrypted via WAN to the other site, and leave the LAN interface towards the target host on the other site, and if they do, do the same for the responses. I'd also check whether the /ip ipsec installed-sa print shows any packets to be transported at all. All this allows to find out which of the devices drops the packets and is the basis for finding out why.

If you want, you can post the configuration exports of both devices following the hint in my automatic signature.

Who is online

Users browsing this forum: infabo, vingjfg and 111 guests