[strongSwan] VPN with preshared Key between BB10 and Raspberry-Pi
Christian Klugesherz
christian.klugesherz at gmail.com
Mon Jul 18 18:10:22 CEST 2016
Hi Tobias,
Below the result I got by activating the loglevel "cfg 2"
Please to share what I have to fix ?
Many Thanks in advance
Regards
Christian
Jul 18 16:04:48 raspberrypi charon: 00[DMN] Starting IKE charon daemon
(strongSwan 5.5.0, Linux 4.4.13+, armv6l)
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading ca certificates
from '/etc/ipsec.d/cacerts'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading aa certificates
from '/etc/ipsec.d/aacerts'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading ocsp signer
certificates from '/etc/ipsec.d/ocspcerts'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading attribute
certificates from '/etc/ipsec.d/acerts'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading crls from
'/etc/ipsec.d/crls'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loading secrets from
'/etc/ipsec.secrets'
Jul 18 16:04:49 raspberrypi charon: 00[CFG] expanding file expression
'/var/lib/strongswan/ipsec.secrets.inc' failed
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loaded IKE secret for %any
Jul 18 16:04:49 raspberrypi charon: 00[CFG] loaded EAP secret for alice
Jul 18 16:04:49 raspberrypi 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 openssl fips-prf xcbc
cmac hmac attr kernel-netlink resolve socket-default stroke vici
updown eap-identity eap-md5 eap-mschapv2 eap-dynamic xauth-generic
dhcp
Jul 18 16:04:49 raspberrypi charon: 00[JOB] spawning 16 worker threads
Jul 18 16:04:49 raspberrypi charon: 09[CFG] received stroke: add
connection 'BB10'
Jul 18 16:04:49 raspberrypi charon: 09[CFG] adding virtual IP address
pool 10.0.0.0/16
Jul 18 16:04:49 raspberrypi charon: 09[CFG] added configuration 'BB10'
Jul 18 16:04:55 raspberrypi charon: 05[CFG] received stroke: loglevel 2 for cfg
Jul 18 16:05:16 raspberrypi charon: 11[NET] received packet: from
80.12.42.207[1011] to 192.168.1.29[500] (400 bytes)
Jul 18 16:05:16 raspberrypi charon: 11[ENC] parsed IKE_SA_INIT request
0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) ]
Jul 18 16:05:16 raspberrypi charon: 11[CFG] looking for an ike config
for 192.168.1.29...80.12.42.207
Jul 18 16:05:16 raspberrypi charon: 11[CFG] candidate: %any...%any, prio 28
Jul 18 16:05:16 raspberrypi charon: 11[CFG] found matching ike config:
%any...%any with prio 28
Jul 18 16:05:16 raspberrypi charon: 11[IKE] 80.12.42.207 is initiating an IKE_SA
Jul 18 16:05:16 raspberrypi charon: 11[CFG] selecting proposal:
Jul 18 16:05:16 raspberrypi charon: 11[CFG] no acceptable
PSEUDO_RANDOM_FUNCTION found
Jul 18 16:05:16 raspberrypi charon: 11[CFG] selecting proposal:
Jul 18 16:05:16 raspberrypi charon: 11[CFG] proposal matches
Jul 18 16:05:16 raspberrypi charon: 11[CFG] received proposals:
IKE:AES_CBC_256/AES_CBC_192/AES_CBC_128/3DES_CBC/DES_CBC/HMAC_SHA1_96/HMAC_MD5_96/PRF_HMAC_SHA1/PRF_HMAC_MD5/MODP_1024/MODP_768
Jul 18 16:05:16 raspberrypi charon: 11[CFG] configured proposals:
IKE:AES_CBC_128/HMAC_SHA2_256_128/PRF_HMAC_SHA2_256/MODP_3072,
IKE:AES_CBC_128/AES_CBC_192/AES_CBC_256/CAMELLIA_CBC_128/CAMELLIA_CBC_192/CAMELLIA_CBC_256/3DES_CBC/HMAC_SHA2_256_128/HMAC_SHA2_384_192/HMAC_SHA2_512_256/HMAC_MD5_96/HMAC_SHA1_96/AES_XCBC_96/AES_CMAC_96/PRF_HMAC_SHA2_256/PRF_HMAC_SHA2_384/PRF_HMAC_SHA2_512/PRF_AES128_XCBC/PRF_AES128_CMAC/PRF_HMAC_MD5/PRF_HMAC_SHA1/ECP_256/ECP_384/ECP_521/ECP_256_BP/ECP_384_BP/ECP_512_BP/MODP_3072/MODP_4096/MODP_8192/MODP_2048/MODP_2048_256/MODP_1024,
IKE:AES_GCM_16_128/AES_GCM_16_192/AES_GCM_16_256/AES_GCM_12_128/AES_GCM_12_192/AES_GCM_12_256/AES_GCM_8_128/AES_GCM_8_192/AES_GCM_8_256/PRF_HMAC_SHA2_256/PRF_HMAC_SHA2_384/PRF_HMAC_SHA2_512/PRF_AES128_XCBC/PRF_AES128_CMAC/PRF_HMAC_MD5/PRF_HMAC_SHA1/ECP_256/ECP_384/ECP_521/ECP_256_BP/ECP_384_BP/ECP_512_BP/MODP_3072/MODP_4096/MODP_8192/MODP_2048/MODP_2048_256/MODP_1024
Jul 18 16:05:16 raspberrypi charon: 11[CFG] selected proposal:
IKE:AES_CBC_128/HMAC_MD5_96/PRF_HMAC_MD5/MODP_1024
Jul 18 16:05:16 raspberrypi charon: 11[IKE] local host is behind NAT,
sending keep alives
Jul 18 16:05:16 raspberrypi charon: 11[IKE] remote host is behind NAT
Jul 18 16:05:16 raspberrypi charon: 11[ENC] generating IKE_SA_INIT
response 0 [ SA KE No N(NATD_S_IP) N(NATD_D_IP) N(MULT_AUTH) ]
Jul 18 16:05:16 raspberrypi charon: 11[NET] sending packet: from
192.168.1.29[500] to 80.12.42.207[1011] (312 bytes)
Jul 18 16:05:17 raspberrypi charon: 09[NET] received packet: from
80.12.42.207[64916] to 192.168.1.29[4500] (284 bytes)
Jul 18 16:05:17 raspberrypi charon: 09[ENC] parsed IKE_AUTH request 1
[ IDi CPRQ(ADDR MASK DNS DNS NBNS NBNS VER) N(INIT_CONTACT)
N(ESP_TFC_PAD_N) N(NON_FIRST_FRAG) SA TSi TSr ]
Jul 18 16:05:17 raspberrypi charon: 09[CFG] looking for peer configs
matching 192.168.1.29[%any]...80.12.42.207[alice]
Jul 18 16:05:17 raspberrypi charon: 09[CFG] candidate "BB10", match:
1/1/28 (me/other/ike)
Jul 18 16:05:17 raspberrypi charon: 09[CFG] selected peer config 'BB10'
Jul 18 16:05:17 raspberrypi charon: 09[IKE] initiating EAP_IDENTITY
method (id 0x00)
Jul 18 16:05:17 raspberrypi charon: 09[IKE] received
ESP_TFC_PADDING_NOT_SUPPORTED, not using ESPv3 TFC padding
Jul 18 16:05:17 raspberrypi charon: 09[IKE] no private key found for
'ckl.freeboxos.fr'
Jul 18 16:05:17 raspberrypi charon: 09[ENC] generating IKE_AUTH
response 1 [ N(AUTH_FAILED) ]
Jul 18 16:05:17 raspberrypi charon: 09[NET] sending packet: from
192.168.1.29[4500] to 80.12.42.207[64916] (76 bytes
2016-07-18 11:44 GMT+02:00 Tobias Brunner <tobias at strongswan.org>:
> Hi Christian,
>
>> As highlighted in the same topic : rightauth=eap-mschapv2 (See below)
>
> Your log indicates otherwise, though. Check `ipsec statusall` for the
> correct authentication method for the BB10 connection, or increase the
> log level for cfg to 2 to see details when the config is loaded.
>
>> Please let me know if you should observe a typo in my config, which
>> should not fulfill strongSwan's recommendation
>
> `authby=secret` is definitely not correct, but as `rightauth` is
> explicitly set it should be ignored.
>
> Regards,
> Tobias
>
More information about the Users
mailing list