-
Story
-
Resolution: Done-Errata
-
Major
-
rhel-9.2.0
-
nmstate-2.2.30-1.el9
-
ZStream
-
1
-
rhel-sst-network-management
-
ssg_networking
-
3
-
False
-
-
No
-
Red Hat Enterprise Linux
-
NMT - RHEL-9.5 DTM 10
-
Approved Blocker
-
-
Pass
-
None
-
Enhancement
-
-
Done
-
-
All
-
None
What were you trying to do that didn't work?
I was trying to configure an IPSec configuration through nmstate with nmstate Libreswan.
With native ipsec configurations it is possible to define something like:
conn host-to-host-cert auto=start leftid=%fromcert left=192.168.126.10 leftrsasigkey=%cert leftcert=south rightid=%fromcert right=192.168.126.1 rightrsasigkey=%cert rightcert=north
Which is a really basic implementation of certificate based verification of the hosts.
However, this is not possible in nmstate due to (not only, but importantly) the rightcert field not being supported:
Please provide the package NVR for which bug is seen:
This is an issue in all versions of nmstate and NetworkManager-libreswan
How reproducible: 100%
Steps to reproduce
Try to configure right-cert for an nmstate configuration
interfaces: - name: hosta_conn type: ipsec ipv4: enabled: true dhcp: true libreswan: left: 10.1.39.96 leftid: '%fromcert' leftrsasigkey: '%cert' leftmodecfgclient: false leftcert: sno.ipsec.scalelab.redhat.com right: 10.1.36.25 rightid: '%fromcert' rightrsasigkey: '%cert' rightcert: north.ipsec.scalelab.redhat.com rightsubnet: 10.1.36.25/32 ikev2: insist ike: aes256-sha1 esp: aes256-sha1
Unrelated to this specific issue but still problematic in my view: It should be noted that also a rightsubnet definition of 10.1.36.25/32 should not be necessary and imo it should be resolved automatically in the code if its really a mandatory field for nmstate. IMO a user should not have to define a /32 cidr for this field if true Host-To-Host VPNs are targeted. Similarly leftmodecfgclient should not be necessary by default. Currently this makes it really weird for users coming from native ipsec going to nmstate.
Expected results
mTLS Host to Host VPN network configurations should work ootb
Actual results
rightcert field is not supported.
- is related to
-
RHEL-30370 Implement `rightcert` Support in NetworkManager-libreswan
- Closed
- links to
-
RHBA-2024:129019 nmstate bug fix and enhancement update