RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1100750 - nmcli cannot recognize libreswan vpn type
Summary: nmcli cannot recognize libreswan vpn type
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Jirka Klimes
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1102051
TreeView+ depends on / blocked
 
Reported: 2014-05-23 11:39 UTC by Vladimir Benes
Modified: 2015-03-05 13:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:51:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0311 0 normal SHIPPED_LIVE NetworkManager bug fix and enhancement update 2015-03-05 17:35:10 UTC

Description Vladimir Benes 2014-05-23 11:39:42 UTC
Description of problem:
 nmcli connection add type vpn ifname \* vpn-type libreswan
Error: 'vpn-type': 'libreswan' not among [openvpn, vpnc, pptp, openconnect, openswan].

Libreswan is the only type we officially ship and support. That's quite sad.
 
Version-Release number of selected component (if applicable):
NetworkManager-0.9.9.1-14.git20140326.4dba720.el7.x86_64

Comment 1 Vladimir Benes 2014-05-23 11:39:57 UTC
NetworkManager-libreswan-0.9.8.0-5.el7.x86_64

Comment 2 Thomas Haller 2014-05-23 12:48:34 UTC
nmcli has the list of supported VPN plugin types set statically.

A quick fix would be to replace openswan by libreswan (on RHEL-7 only).


A better fix would be to detect the plugin names at runtime, or not doing any validation at all -- or maybe just a warning?

 nmcli connection add type vpn ifname \* vpn-type libreswan
Warning: 'vpn-type': 'libreswan' not among the common plugins [openvpn, vpnc, pptp, openconnect, openswan].

Comment 4 Dan Williams 2014-05-23 16:01:31 UTC
(In reply to Thomas Haller from comment #2)
> nmcli has the list of supported VPN plugin types set statically.
> 
> A quick fix would be to replace openswan by libreswan (on RHEL-7 only).

Agreed.

> A better fix would be to detect the plugin names at runtime, or not doing
> any validation at all -- or maybe just a warning?

Yeah, since nmcli doesn't have logic about the VPN-specific key/value pairs, it can't do a lot of validation.  So maybe we should just remove the restriction...

Comment 5 Jirka Klimes 2014-05-26 13:43:28 UTC
Restriction for VPN types removed; nmcli will just print a warning for unknown types:
jk/cli-vpn-types-rh1100750

Comment 6 Thomas Haller 2014-05-26 14:36:05 UTC
(In reply to Jirka Klimes from comment #5)
> Restriction for VPN types removed; nmcli will just print a warning for
> unknown types:
> jk/cli-vpn-types-rh1100750

Looks good to me

Comment 7 Dan Williams 2014-05-27 14:48:14 UTC
Looks good to me too.

Comment 8 Jirka Klimes 2014-05-28 07:49:20 UTC
Committed to upstream master as:
d721650 cli: do not restrict VPN type of created connections (rh #1100750)
649e4be cli: extract username and gateway for some more VPN types

Comment 16 errata-xmlrpc 2015-03-05 13:51:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0311.html


Note You need to log in before you can comment on or make changes to this bug.