public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: Adolf Belka <adolf.belka@ipfire.org>
Cc: development@lists.ipfire.org
Subject: Re: IPFire 2.29 - Core Update 193 is available for testing
Date: Mon, 24 Mar 2025 14:43:03 +0000	[thread overview]
Message-ID: <A22C58E5-49C4-4E37-859E-00644735E12C@ipfire.org> (raw)
In-Reply-To: <ca7e20de-0b5a-4591-a899-a6aa970dcbca@ipfire.org>

Hello,

If you have set the local/remote ID in the connection it has to be part of the certificate which does not happen automatically in IPFire.

If you didn’t set this, then NetworkManager was sending some sort of ID. Is there a way to remove it from there imported configuration?

-Michael

> On 24 Mar 2025, at 13:25, Adolf Belka <adolf.belka@ipfire.org> wrote:
> 
> Hi Michael,
> 
> On 23/03/2025 13:09, Michael Tremer wrote:
>> Hello,
>>> On 22 Mar 2025, at 17:22, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>> 
>>> Hi,
>>> 
>>> I have tested my fix for bug13737 and found that it works fine when a new ipsec x509 root/host certificate set is created.
> 
> What I hadn't tested was checking if an existing working ipsec cert connection still worked after doing the renew of the host cert.
> 
> I just did that test and the connection fails to connect.
> 
> Most of the connection elements are successful, such as the negotiation of the ciphers etc but right at the end it comes up with the message:-
> 
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[IKE] received end entity cert "C=NL, O=IPFire, CN=ipfire.domain.local"
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG]   using certificate "C=NL, O=IPFire, CN=ipfire.domain.local"
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG]   using trusted ca certificate "C=NL, L=Hague, O=IPFire, CN=IPFire CA, E=root@ipfire.domain.local"
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG]   reached self-signed root ca with a path length of 0
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG] checking certificate status of "C=NL, O=IPFire, CN=ipfire.domain.local"
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG] certificate status is not available
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[IKE] authentication of 'C=NL, O=IPFire, CN=ipfire.domain.local' with RSA_EMSA_PKCS1_SHA2_384 successful
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG] constraint check failed: certificate does not confirm identity 'ipfire.domain.local' (ID_FQDN)
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG] selected peer config 'laptop ipsec cert to ipfire 2' unacceptable: constraint checking failed
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[CFG] no alternative config found
> Mar 24 13:41:33 laptop charon-nm[1439]: 05[ENC] generating INFORMATIONAL request 2 [ N(AUTH_FAILED) ]
> 
> When the host cert renew is carried out is the intent that existing connections will still work or do I still have to recreate the client connections. The latter doesn't seem to be the intent otherwise I might just as well create a new Root/Host x509 set.
> 
> The 'laptop ipsec cert to ipfire 2' mentioned is the Network Manager strongswan plugin config.
> 
> Maybe the issue is with the strongswan Network Manager plugin that is doing some checking somewhere and finding a difference. Obviously the hostcert.pem has a different signature that before the renewal.
> 
>>> 
>>> However it doesn't work for existing sets as they already have the serial file contents at 01. I forgot to add in some code for the update.sh file to update existing root/host certificates with serial file contents at 01 to 02.
>>> 
>>> I will put a patch together and submit it for merging and testing.
>> Yes please, that makes sense to me, too.
> 
> I will still create the patch for the install.sh script to update the serial number to 02 for systems that have created the root/host x509 ipsec certificate set but the problem I have found above suggests that the ipsec renewal might not work in the expected way for all connection clients.
> 
> Regards,
> 
> Adolf.
> 
> 
>>> 
>>> Regards,
>>> 
>>> Adolf.
>>> 
>>> 
>>> On 21/03/2025 13:10, Michael Tremer wrote:
>>>> Hello Adolf,
>>>>> On 20 Mar 2025, at 17:40, Adolf Belka <adolf.belka@ipfire.org> wrote:
>>>>> 
>>>>> Hi All,
>>>>> 
>>>>> My first findings from CU193 Testing.
>>>> Thank you for testing.
>>>>> The IPBlocklist sources file and the backup.pl file with the changes related to removal of the ABUSECH blocklist, did not get into the filelist file and so that blocklist was not removed.
>>>> Thank you. I pushed a commit for this.
>>>>> I tested out ipsec.
>>>>> A working PSK and cert connection from CU192 were both tested out with CU193 Testing.
>>>>> Both worked in CU192 and also worked without issues when IPFire was updated to CU193 Testing.
>>>>> 
>>>>> I then created a new ipsec cert connection and tested that out and it worked but it did not use the post quantum cipher.
>>>>> 
>>>>> Strongswan-6.0.0 is also on my laptop but I am using Network Manager with a Strongswan plugin and that might not yet be updated with the post quantum ciphers.
>>>> I think this might be quite difficult to test on a client, because NetworkManager will also need to support this and I am not sure how fast they will be.
>>>> I did however test this myself on a N2N connection and it works fine. Sadly there is no different feeling to those connections as it only affects the handshake. We don’t have to worry about any decreased throughput because of more complex cryptography.
>>>>> My laptop and IPFire negotiated a cipher and that connection then worked.
>>>>> 
>>>>> The other thing that might be getting in the way is that all the certs currently created in IPSec are legacy based ones,m even if the Root/Host certificate has been re-created to have the more secure version with openssl-3.x
>>>>> 
>>>>> I raised a bug on this a while back.
>>>>> https://bugzilla.ipfire.org/show_bug.cgi?id=13808
>>>>> 
>>>>> This came about when we updated to OpenSSL-3.x. I added in the legacy options into the openssl commands in the ovpnmain.cgi page and did the same thing to the vpnmain.cgi page for IPSec.
>>>>> 
>>>>> Then in the ovpnmain.cgi page I added in the check if the root/host x509 set was legacy or not and then only used the legacy option if it was.
>>>>> 
>>>>> However, I never went back to the vpnmain.cgi page to update that to only use -legacy if the root/host x509 was legacy.
>>>>> So currently all client certs are legacy, even if the root/host x509 is not.
>>>>> 
>>>>> I have assigned that ipsec bug to myself and it will be something I will have a go at sometime soon.
>>>> I don’t like that the entire X.509 situation is becoming more of a nightmare with every single day that is passing...
>>>>> However, main thing, the change to strongswan-6.0.0 has not negatively impacted the ipsec operation. All existing connections, at least the ones I had, worked after the CU193 Testing update.
>>>> Great! I can confirm the same.
>>>> -Michael
>>>>> Regards,
>>>>> Adolf.
>>>>> 
>>>>> On 19/03/2025 11:57, IPFire Project wrote:
>>>>>> Hello Community! Only a few days after releasing the latest update, we are excited to begin testing the next one. It comes with support for Post-Quantum Cryptography in IPsec as well as a new toolchain and a lot of bug and security updates.
>>>>>> ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
>>>>>>  IPFire_
>>>>>>  IPFire 2.29 - Core Update 193 is available for testing
>>>>>> Hello Community! Only a few days after releasing the latest update, we are excited to begin testing the next one. It comes with support for Post-Quantum Cryptography in IPsec as well as a new toolchain and a lot of bug and security updates.
>>>>>> Read The Full Post On Our Blog <https://www.ipfire.org/blog/ipfire-2-29-core-update-193-is-available-for-testing?utm_medium=email&utm_source=blog-announcement>
>>>>>> The IPFire Project, c/o Lightning Wire Labs GmbH, Gerhardstraße 8, 45711 Datteln, Germany
>>>>>> Unsubscribe <https://www.ipfire.org/unsubscribe>
>>>>> 
>>>>> 
>>> 
>>> 
> 
> 



  reply	other threads:[~2025-03-24 14:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <174238111584.1720815.10275774082881760962.ipfire@ipfire.org>
2025-03-20 17:40 ` Adolf Belka
2025-03-21 12:10   ` Michael Tremer
2025-03-22 17:22     ` Adolf Belka
2025-03-23 12:09       ` Michael Tremer
2025-03-24 13:25         ` Adolf Belka
2025-03-24 14:43           ` Michael Tremer [this message]
2025-03-24 16:39             ` Adolf Belka
2025-03-24 17:22               ` Adolf Belka
2025-03-24 19:42                 ` Michael Tremer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A22C58E5-49C4-4E37-859E-00644735E12C@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox