Hi Yang

Here is example configuration 
https://wiki.fd.io/view/VPP/IPSec_and_IKEv2#Example_configuration_2

Regards,
Matus

From: [email protected] [mailto:[email protected]] On 
Behalf Of Yang, Xiaowen 1. (NSB - CN/Hangzhou)
Sent: Wednesday, November 22, 2017 10:35 AM
To: [email protected]
Subject: Re: [vpp-dev] IKE & IPsec configuration example

Hi
VPP experts
   I try to test VPP IPsec, but AUTHENTICATION_FAILED. Below is my 
configuration for VPP, can you help to check this ? Any ideas what I am doing 
wrong. thank you in advance .

set int state GigabitEthernet0/5/0 up
set int ip address GigabitEthernet0/5/0 25.12.61.7/8
ikev2 profile add pr1
ikev2 profile set pr1 auth shared-key-mic string ipsec
ikev2 profile set pr1 id local fqdn vpp.home
ikev2 profile set pr1 id remote fqdn any
ikev2 profile set pr1 traffic-selector local ip-range 192.168.124.0 - 
192.168.124.255 port-range 0 - 65535 protocol 0
ikev2 profile set pr1 traffic-selector remote ip-range 192.168.125.0 - 
192.168.125.255 port-range 0 - 65535 protocol 0

below is the vpp log:
DBGvpp# 1: ikev2_process_sa_init_req:567: ispi 9c9f23a5c4509a22 rspi 0 
nextpayload 21 version 20 exchange 22 flags 8 msgid 0 length 466
1: ikev2_parse_sa_payload:364: proposal num 1 len 44 last_or_more 0 id 1 
spi_size 0 num_transforms 4
1: ikev2_parse_sa_payload:406: transform num 0 len 12 last_or_more 3 type 
encr:aes-cbc-128 id 12 attrs 800e0080
1: ikev2_parse_sa_payload:406: transform num 1 len 8 last_or_more 3 type 
integ:sha1-96 id 2
1: ikev2_parse_sa_payload:406: transform num 2 len 8 last_or_more 3 type 
prf:hmac-sha1 id 2
1: ikev2_parse_sa_payload:406: transform num 3 len 8 last_or_more 0 type 
dh-group:modp-2048 id 14
1: ikev2_parse_notify_payload:464: msg_type NAT_DETECTION_SOURCE_IP len 28 data 
8bebafe7d09c78eb028a13006911c1fa250d6ced
1: ikev2_parse_notify_payload:464: msg_type NAT_DETECTION_DESTINATION_IP len 28 
data c54d55ccc132e9b47e7b2a652ef0423314b133a6
1: ikev2_parse_notify_payload:464: msg_type IKEV2_FRAGMENTATION_SUPPORTED len 8
1: ikev2_parse_notify_payload:464: msg_type SIGNATURE_HASH_ALGORITHMS len 18 
data 00010002000300040005
1: ikev2_parse_notify_payload:464: msg_type REDIRECT_SUPPORTED len 8
1: ikev2_process_sa_init_req:625: sa state changed to IKEV2_STATE_SA_INIT
1: ikev2_select_proposal:168: bitmap is 1e mandatory is 1e optional is 1e
1: ikev2_payload_add_sa:194: proposal num 1 protocol_id 1 last_or_more 0 
spi_size 0
1: ikev2_payload_add_sa:215: transform type encr transform_id 12 last_or_more 3 
attr_size 4 attrs 800e0080
1: ikev2_payload_add_sa:215: transform type integ transform_id 2 last_or_more 3 
attr_size 0
1: ikev2_payload_add_sa:215: transform type prf transform_id 2 last_or_more 3 
attr_size 0
1: ikev2_payload_add_sa:215: transform type dh-group transform_id 14 
last_or_more 0 attr_size 0
1: ikev2_process_auth_req:830: ispi 9c9f23a5c4509a22 rspi 701e2963eaf8d4aa 
nextpayload 2e version 20 exchange 23 flags 8 msgid 1 length 220
1: ikev2_decrypt_sk_payload:732: received IKEv2 payload SK, len 188
1: ikev2_process_auth_req:888: received payload IDi, len 4 id_type 1
1: ikev2_process_auth_req:919: received payload AUTH, len 20 auth_type 2
1: ikev2_process_auth_req:867: received payload SA, len 40
1: ikev2_parse_sa_payload:364: proposal num 1 len 40 last_or_more 0 id 3 
spi_size 4 num_transforms 3
1: ikev2_parse_sa_payload:406: transform num 0 len 12 last_or_more 3 type 
encr:aes-cbc-128 id 12 attrs 800e0080
1: ikev2_parse_sa_payload:406: transform num 1 len 8 last_or_more 3 type 
integ:sha1-96 id 2
1: ikev2_parse_sa_payload:406: transform num 2 len 8 last_or_more 0 type esn:no 
id 0
1: ikev2_process_auth_req:937: received payload TSi, len 20
1: ikev2_process_auth_req:945: received payload TSr, len 20
1: ikev2_parse_notify_payload:464: msg_type EAP_ONLY_AUTHENTICATION len 8
1: ikev2_parse_notify_payload:464: msg_type IKEV2_MESSAGE_ID_SYNC_SUPPORTED len 
8
1: ikev2_sa_auth:1422: sa state changed to IKEV2_STATE_AUTH_FAILED
1: ikev2_generate_message:1726: sa state changed to 
IKEV2_STATE_NOTIFY_AND_DELETE


strongswan:
conn %default
        auto=route
        keyexchange=ikev2
        reauth=no
conn ext0~ext0
        rekeymargin=3600
        rekeyfuzz=100%
        keyexchange=ikev2
        left=25.12.61.14
        right=25.12.61.7
        leftsubnet=192.168.125.0/24
        rightsubnet=192.168.124.0/24
        authby=secret
        #leftid=25.12.61.14
        rightid=%any
        ike=aes128-sha1-modp2048!
        esp=aes128-sha1-noesn!
        type=tunnel
        ikelifetime=36000s
        keylife=36000s
        lifepackets=4294967295
        marginpackets=1073741824
        mobike=no
        auto=route
        replay_window=0
        nopmtudisc=yes

~
~

Brs,
Yang xiaowen
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev
  • Re: [vpp-dev] ... Yang, Xiaowen 1. (NSB - CN/Hangzhou)
    • Re: [vpp-... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco)
      • Re: [... Yang, Xiaowen 1. (NSB - CN/Hangzhou)

Reply via email to