OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • [SOLVED] 21.1.6 possibly broke ipsec
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: [SOLVED] 21.1.6 possibly broke ipsec  (Read 9312 times)

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
[SOLVED] 21.1.6 possibly broke ipsec
« on: May 27, 2021, 09:08:38 pm »
** EDIT **
The workaround below is no longer needed.
A new FRR package has fixed it.
** EDIT **

** EDIT **
Routing was actually broken.
Reverting to an older version of FRR resolved this.

# opnsense-revert -r 21.1.5 frr7

Franco has mentioned that the FRR package in 21.1.6 will be replaced to prevent others from having this issue.
** EDIT **

Hi,

I'm Running OPNsense in a Proxmox VM.
During lunch today, I shut it down, took a snapshot, powered it up and upgraded to 21.1.6.
At that point everything worked except for the ipsec tunnel, the tunnel was up, OSPF neighbors were there and the correct routes were installed too, it just wasn't working.
I couldn't connect to anything nor could I ping anything.
I even went as far as installing an "any any" rule in both directions on my ipsec interface, no joy.
No other changes were made, I had to bring the tunnel back up so I restored the snapshot.
After the restore everything was fine again.
I can upgrade it again, but is there anything else I can check?
Is there something I can do/test/report that will help you help me?

Thank you,
Jiffy
« Last Edit: May 29, 2021, 01:14:57 pm by Jiffy »
Logged

marcquark

  • Full Member
  • ***
  • Posts: 103
  • Karma: 5
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #1 on: May 28, 2021, 08:46:14 am »
Just to rule that one out: Did you reboot after applying the update?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #2 on: May 28, 2021, 09:13:57 am »
Important info would be your previous good version and whether you use OpenSSL or LibreSSL.

There are only two small fixes in IPsec configuration code that shouldn't cause breakage and so far we haven't seen or heard of it. The relevant patches are:

https://github.com/opnsense/core/commit/4758dd89d
https://github.com/opnsense/core/commit/ca3d33f7c6

Both are easily reverted using opnsense-patch 4758dd89d or opnsense-patch ca3d33f7c6. Rerunning the patch brings it back.

Of course as marcquark says make sure to test this cleanly by reboot to rule out any side effects like firewall rules not reloading.


Cheers,
Franco
Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #3 on: May 28, 2021, 12:15:35 pm »
Hi,

Yes, I did reboot, twice. I don't blame you for asking.
I'll try to revert those patches and report back.

The previous good version is 21.1.5 and I'm running it with OpenSSL.

Thank you,
Jiffy
Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #4 on: May 28, 2021, 12:45:05 pm »
Hi,

I've upgraded and reverted those patches, still no luck.
I'll snapshot this and restore the 21.1.5 snapshot for now.
Standing by for further instructions.

Thank you,
Jiffy
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #5 on: May 28, 2021, 01:55:49 pm »
Hi Jiffy,

Let's try a broader approach on the broken state:

# opnsense-revert -r 21.1.5 opnsense

If it won't work with the old core package we know it's not the configuration code.


Cheers,
Franco
Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #6 on: May 28, 2021, 02:39:02 pm »
Hi, Franco,

Copy and pasted the output of the revert into the attached revert-log.txt.
Still not working.

I'm not using OSPF6, RIP or BGP, so I'm guessing these are safe to ignore:
*** OPNsense\Quagga\OSPF6 Migration failed, check log for details
*** OPNsense\Quagga\RIP Migration failed, check log for details
*** OPNsense\Quagga\BGP Migration failed, check log for details

Thank you,
Jiffy
Logged

Cerberus

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 4
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #7 on: May 28, 2021, 02:49:58 pm »
Hi,

just some feedback from my update experience yesterday. Two OPNsense systems in a carp cluster with:

5x IKEv1
2x IKEv2
35 currently active Mobile IKEv2 clients.

Most of them aes-gcm and some aes-cbc, all of them with sha256. No issues to report, all tunnel and client connections working well after after the update. But i had one little issue today, we got an power outtage and after reboot two tunnels stopped working with authentication failure, only thing that helped was open phase 1 and press apply/save again, authentication errors stopped. Just restarting the connection wasnt enough.

Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #8 on: May 28, 2021, 03:08:24 pm »
Hi, Cerberus,

I just tried that, didn't work.
My tunnel is up and OSPF neighbors are there, it just won't pass traffic.

Franco,

I started a tcpdump on a node on the inside (LAN) of the firewall and had someone ping it from a node on the other side of the tunnel.
Traffic is coming in but not leaving.
From inside, traceroute stops at the firewall. There aren't any denies in the firewall logs.

Thank you,
Jiffy
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #9 on: May 28, 2021, 03:22:18 pm »
Only possibility left is StrongSwan to be honest...

# opnsense-revert -r 21.1.5 strongswan


Cheers,
Franco
Logged

marcquark

  • Full Member
  • ***
  • Posts: 103
  • Karma: 5
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #10 on: May 28, 2021, 04:02:15 pm »
I was in a similar situation and it came down to an overscoped NAT rule. Weren't there changes to NAT code aswell?
Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #11 on: May 28, 2021, 04:07:41 pm »
Reverted strongswan, still no luck.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17751
  • Karma: 1620
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #12 on: May 28, 2021, 04:29:29 pm »
Quote from: marcquark on May 28, 2021, 04:02:15 pm
I was in a similar situation and it came down to an overscoped NAT rule. Weren't there changes to NAT code aswell?

If 21.1.5 core with 21.1.6 throws the same error what could possibly be changed at all?

So uhh maybe kernel?

# opnsense-update -kr 21.1.5

We are running out of options assuming the health audit does not report issues we are overlooking... that's what it's there for. :)


Cheers,
Franco
Logged

mircsicz

  • Full Member
  • ***
  • Posts: 113
  • Karma: 3
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #13 on: May 28, 2021, 05:15:44 pm »
I'm kinda in the same boat, three client machine's I can't get IPsec back up and running after upgrading last night!

But for me I also have struggle with No-IP Update's, had to set the password's, afterwards it (No-IP Update) [seemed] worked again...

EDIT: see my seperate Topic regarding the DynDNS issue which I had to open as it only update'd the Cached-Ip but not the registry at No-IP.com
« Last Edit: May 28, 2021, 06:02:26 pm by mircsicz »
Logged

Jiffy

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
    • View Profile
Re: 21.1.6 possibly broke ipsec
« Reply #14 on: May 28, 2021, 05:53:16 pm »
Reverted kernel, still no good.
Logged

  • Print
Pages: [1] 2 3
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • [SOLVED] 21.1.6 possibly broke ipsec
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2