<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Courier New">Hi All,<br>
<br>
I've just updated strongSwan from 5.5.1 to 5.6.0.<br>
After the update, I got the "configured DH group CURVE_25519 not
supported" error message.<br>
The target was working fine before the update, the configuration
files were not changed during the update.<br>
I found some information on the internet, so I know that
Curve25519 support was introduced in 5.5.2.<br>
I checked the build configuration options, and disabled the
curve25519 support (--disable-curve25519), but it did not help.<br>
I have no idea what might cause the problem.<br>
Any help would be appreciated.<br>
<br>
Best regards,<br>
Gyula Kovacs<br>
<br>
I added the technical details here.<br>
<br>
Target system:<br>
- Linux 3.18.31 #1 PREEMPT Tue Aug 29 12:27:09 CEST 2017 armv7l
GNU/Linux<br>
- OpenSSL 1.0.2l 25 May 2017<br>
- strongSwan configuration options:<br>
--build=x86_64-linux --host=arm-oe-linux-gnueabi
--target=arm-oe-linux-gnueabi<br>
--prefix=/usr --exec_prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin<br>
--libexecdir=/usr/lib/strongswan --datadir=/usr/share
--sysconfdir=/etc<br>
--sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include<br>
--oldincludedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man<br>
--disable-silent-rules --disable-dependency-tracking
--with-libtool-sysroot=/oe-core/build/tmp-glibc/sysroots/xxxxxxxx<br>
--without-lib-prefix --without-systemdsystemunitdir
--disable-aesni --enable-charon --enable-curl --disable-curve25519<br>
--enable-gmp --disable-ldap --disable-mysql --enable-openssl
--disable-scepclient --disable-soup --enable-sqlite<br>
--enable-stroke --disable-swanctl --disable-systemd<br>
<br>
Opponent:<br>
</font><font face="Courier New">- Linux 3.16.0-4-586 #1 Debian
3.16.43-2 (2017-04-30) i686 GNU/Linux<br>
- OpenSSL 1.0.1t 3 May 2016<br>
</font><font face="Courier New"><font face="Courier New"><font
face="Courier New">- strongSwan configuration options:</font><br>
./configure --prefix=/usr --sysconfdir=/etc
--disable-curve25519<br>
</font><br>
Error message:<br>
root@mdm9640:~# ipsec up host-host-psk-lan<br>
initiating IKE_SA host-host-psk-lan[1] to 160.48.99.124<br>
configured DH group CURVE_25519 not supported<br>
tried to checkin and delete nonexisting IKE_SA<br>
establishing connection 'host-host-psk-lan' failed<br>
root@mdm9640:~#<br>
<br>
root@mdm9640:~# ipsec statusall<br>
Status of IKE charon daemon (strongSwan 5.6.0, Linux 3.18.31,
armv7l):<br>
uptime: 13 seconds, since Jan 01 00:01:30 1970<br>
malloc: sbrk 540672, mmap 0, used 229400, free 311272<br>
worker threads: 11 of 16 idle, 5/0/0/0 working, job queue:
0/0/0/0, scheduled: 0<br>
loaded plugins: charon aes des rc2 sha2 sha1 md5 random nonce
x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp
dnskey sshkey pem openssl gmp xcbc cmac hmac curl sqlite attr
kernel-netlink resolve socket-default stroke vici updown
xauth-generic<br>
Listening IP addresses:<br>
160.48.99.98<br>
160.48.199.98<br>
Connections:<br>
host-host-psk-lan: 160.48.99.98...160.48.99.124 IKEv2<br>
host-host-psk-lan: local: [160.48.99.98] uses pre-shared key
authentication<br>
host-host-psk-lan: remote: [160.48.99.124] uses pre-shared key
authentication<br>
host-host-psk-lan: child: dynamic === dynamic TRANSPORT<br>
Security Associations (0 up, 0 connecting):<br>
none<br>
root@mdm9640:~#<br>
<br>
Log files:<br>
root@mdm9640:~# cat /var/log/charon.log<br>
Jan 1 00:03:35 00[DMN] Starting IKE charon daemon (strongSwan
5.6.0, Linux 3.18.31, armv7l)<br>
Jan 1 00:03:35 00[CFG] loading ca certificates from
'/etc/ipsec.d/cacerts'<br>
Jan 1 00:03:35 00[CFG] loading aa certificates from
'/etc/ipsec.d/aacerts'<br>
Jan 1 00:03:35 00[CFG] loading ocsp signer certificates from
'/etc/ipsec.d/ocspcerts'<br>
Jan 1 00:03:35 00[CFG] loading attribute certificates from
'/etc/ipsec.d/acerts'<br>
Jan 1 00:03:35 00[CFG] loading crls from '/etc/ipsec.d/crls'<br>
Jan 1 00:03:35 00[CFG] loading secrets from '/etc/ipsec.secrets'<br>
Jan 1 00:03:35 00[CFG] loaded IKE secret for 160.48.99.124<br>
Jan 1 00:03:35 00[CFG] loaded IKE secret for 160.48.199.124<br>
Jan 1 00:03:35 00[CFG] loaded RSA private key from
'/etc/ipsec.d/private/ATM-02_IPsec-internal.key'<br>
Jan 1 00:03:35 00[CFG] loaded RSA private key from
'/etc/ipsec.d/private/ATM-02_IPsec-internal.key'<br>
Jan 1 00:03:35 00[LIB] loaded plugins: charon aes des rc2 sha2
sha1 md5 random nonce x509 revocation constraints pubkey pkcs1
pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem openssl gmp xcbc cmac
hmac curl sqlite attr kernel-netlink resolve socket-default stroke
vici updown xauth-generic<br>
Jan 1 00:03:35 00[JOB] spawning 16 worker threads<br>
Jan 1 00:03:35 05[CFG] received stroke: add connection
'host-host-psk-lan'<br>
Jan 1 00:03:35 05[CFG] added configuration 'host-host-psk-lan'<br>
Jan 1 00:03:54 07[CFG] received stroke: initiate
'host-host-psk-lan'<br>
Jan 1 00:03:54 09[IKE] <host-host-psk-lan|1> initiating
IKE_SA host-host-psk-lan[1] to 160.48.99.124<br>
Jan 1 00:03:54 09[IKE] <host-host-psk-lan|1> configured DH
group CURVE_25519 not supported<br>
Jan 1 00:03:54 09[MGR] <host-host-psk-lan|1> tried to
checkin and delete nonexisting IKE_SA<br>
Jan 1 00:04:02 00[DMN] signal of type SIGINT received. Shutting
down<br>
root@mdm9640:~#<br>
<br>
Aug 30 10:12:51 mgu charon: 00[DMN] Starting IKE charon daemon
(strongSwan 5.6.0, Linux 3.16.0-4-586, i686)<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading ca certificates from
'/etc/ipsec.d/cacerts'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading aa certificates from
'/etc/ipsec.d/aacerts'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading ocsp signer
certificates from '/etc/ipsec.d/ocspcerts'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading attribute certificates
from '/etc/ipsec.d/acerts'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading crls from
'/etc/ipsec.d/crls'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loading secrets from
'/etc/ipsec.secrets'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loaded IKE secret for
160.48.99.98<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loaded IKE secret for
160.48.199.98<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loaded RSA private key from
'/etc/ipsec.d/private/MGU_01_IPsec-internal.key'<br>
Aug 30 10:12:51 mgu charon: 00[CFG] loaded RSA private key from
'/etc/ipsec.d/private/MGU_01_IPsec-internal.key'<br>
Aug 30 10:12:51 mgu charon: 00[LIB] loaded plugins: charon aes des
rc2 sha2 sha1 md5 random nonce x509 revocation constraints pubkey
pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem fips-prf gmp xcbc
cmac hmac attr kernel-netlink resolve socket-default stroke vici
updown xauth-generic<br>
Aug 30 10:12:51 mgu charon: 00[JOB] spawning 16 worker threads<br>
Aug 30 10:12:51 mgu charon: 05[CFG] received stroke: add
connection 'host-host-psk-lan'<br>
Aug 30 10:12:51 mgu charon: 05[CFG] added configuration
'host-host-psk-lan'<br>
<br>
</font>
</body>
</html>