|
|
418cb8 |
diff -Naur libreswan-4.1-orig/configs/d.ipsec.conf/ikev2.xml libreswan-4.1/configs/d.ipsec.conf/ikev2.xml
|
|
|
418cb8 |
--- libreswan-4.1-orig/configs/d.ipsec.conf/ikev2.xml 2020-10-18 21:11:05.000000000 -0400
|
|
|
418cb8 |
+++ libreswan-4.1/configs/d.ipsec.conf/ikev2.xml 2020-10-27 23:31:41.943387992 -0400
|
|
|
f301ee |
@@ -1,15 +1,15 @@
|
|
|
f301ee |
<varlistentry>
|
|
|
f301ee |
<term><emphasis remap='B'>ikev2</emphasis></term>
|
|
|
f301ee |
<listitem>
|
|
|
f301ee |
-<para>Whether to use IKEv1 (RFC 4301) or IKEv2 (RFC 7296) settings to be used.
|
|
|
f301ee |
-Currently the accepted values are <emphasis remap='B'>no</emphasis>(the default),
|
|
|
f301ee |
-signifying only IKEv1 is accepted, or <emphasis remap='B'>yes</emphasis>,
|
|
|
f301ee |
+<para>Wether to use IKEv1 (RFC 4301) or IKEv2 (RFC 7296) as the Internet Key Exchange (IKE) protcol.
|
|
|
f301ee |
+Currently the accepted values are <emphasis remap='B'>no</emphasis> (or <emphasis remap='B'>never</emphasis>)
|
|
|
f301ee |
+signifying only IKEv1 is accepted, or <emphasis remap='B'>insist</emphasis>(the default),
|
|
|
f301ee |
signifying only IKEv2 is accepted. Previous versions allowed the keywords
|
|
|
f301ee |
-<emphasis remap='B'>propose</emphasis> or <emphasis remap='B'>permit</emphasis>
|
|
|
f301ee |
-that would allow either IKEv1 or IKEv2, but this is no longer supported. The
|
|
|
f301ee |
-permit option is interpreted as no and the propose option is interpreted as
|
|
|
f301ee |
-yes. Older versions also supported keyword
|
|
|
f301ee |
-<emphasis remap='B'>insist</emphasis> which is now interpreted as yes.
|
|
|
f301ee |
+<emphasis remap='B'>propose</emphasis>, <emphasis remap='B'>yes</emphasis> or <emphasis remap='B'>permit</emphasis>
|
|
|
f301ee |
+that would allow either IKEv1 or IKEv2, but this is no longer supported and both options
|
|
|
f301ee |
+now cause the connection to fail to load. <emphasis remap='B'>WARNING:</emphasis> This behaviour differs from upstream
|
|
|
f301ee |
+libreswan, which only accepts <emphasis remap='B'>yes</emphasis> or <emphasis remap='B'>no</emphasis> where yes means
|
|
|
f301ee |
+the same as insist.
|
|
|
f301ee |
</para>
|
|
|
f301ee |
</listitem>
|
|
|
f301ee |
</varlistentry>
|
|
|
418cb8 |
diff -Naur libreswan-4.1-orig/lib/libipsecconf/confread.c libreswan-4.1/lib/libipsecconf/confread.c
|
|
|
418cb8 |
--- libreswan-4.1-orig/lib/libipsecconf/confread.c 2020-10-18 21:11:05.000000000 -0400
|
|
|
418cb8 |
+++ libreswan-4.1/lib/libipsecconf/confread.c 2020-10-27 23:28:15.199171781 -0400
|
|
|
418cb8 |
@@ -1299,13 +1299,16 @@
|
|
|
f301ee |
|
|
|
418cb8 |
switch (conn->options[KNCF_IKEv2]) {
|
|
|
418cb8 |
case fo_never:
|
|
|
418cb8 |
- case fo_permit:
|
|
|
418cb8 |
conn->policy |= POLICY_IKEV1_ALLOW;
|
|
|
418cb8 |
/* clear any inherited default */
|
|
|
418cb8 |
conn->policy &= ~POLICY_IKEV2_ALLOW;
|
|
|
418cb8 |
break;
|
|
|
418cb8 |
-
|
|
|
418cb8 |
+ case fo_permit:
|
|
|
418cb8 |
+ starter_error_append(perrl, "ikev2=permit is no longer accepted. Use ikev2=insist or ikev2=no|never");
|
|
|
418cb8 |
+ return TRUE;
|
|
|
418cb8 |
case fo_propose:
|
|
|
418cb8 |
+ starter_error_append(perrl, "ikev2=propose or ikev2=yes is no longer accepted. Use ikev2=insist or ikev2=no|never");
|
|
|
418cb8 |
+ return TRUE;
|
|
|
418cb8 |
case fo_insist:
|
|
|
418cb8 |
conn->policy |= POLICY_IKEV2_ALLOW;
|
|
|
418cb8 |
/* clear any inherited default */
|
|
|
418cb8 |
diff -Naur libreswan-4.1-orig/programs/whack/whack.c libreswan-4.1/programs/whack/whack.c
|
|
|
418cb8 |
--- libreswan-4.1-orig/programs/whack/whack.c 2020-10-18 21:11:05.000000000 -0400
|
|
|
418cb8 |
+++ libreswan-4.1/programs/whack/whack.c 2020-10-27 23:33:01.065215832 -0400
|
|
|
418cb8 |
@@ -780,7 +780,7 @@
|
|
|
418cb8 |
PS("ikev1-allow", IKEV1_ALLOW), /* obsolete name */
|
|
|
418cb8 |
PS("ikev2", IKEV2_ALLOW),
|
|
|
418cb8 |
PS("ikev2-allow", IKEV2_ALLOW), /* obsolete name */
|
|
|
418cb8 |
- PS("ikev2-propose", IKEV2_ALLOW), /* obsolete, map onto allow */
|
|
|
418cb8 |
+ /* not in RHEL8 PS("ikev2-propose", IKEV2_ALLOW), */
|
|
|
f301ee |
|
|
|
f301ee |
PS("allow-narrowing", IKEV2_ALLOW_NARROWING),
|
|
|
f301ee |
#ifdef XAUTH_HAVE_PAM
|
|
|
418cb8 |
@@ -1707,7 +1707,7 @@
|
|
|
f301ee |
|
|
|
418cb8 |
/* --ikev1 */
|
|
|
f301ee |
case CDP_SINGLETON + POLICY_IKEV1_ALLOW_IX:
|
|
|
418cb8 |
- /* --ikev2 (now also --ikev2-propose) */
|
|
|
418cb8 |
+ /* --ikev2 */
|
|
|
f301ee |
case CDP_SINGLETON + POLICY_IKEV2_ALLOW_IX:
|
|
|
f301ee |
|
|
|
f301ee |
/* --allow-narrowing */
|