Skip to main content
KPS
New Member
Nov 14, 2018 1:22 PM UTC
Solved

Invalid ESP packet detected (payload not aligned).

Hi!

 

I am trying to setup a new VPN-tunnel, but I see strange messages:

Invalid ESP packet detected (payload not aligned).

Phase 1+2 seem to be running, but I do not get any packets from the tunnel.

 

Debug shows:

ike 0:XXX: invalid ESP 6 (payload not a multiple of block size) SPI c1acad49 seq 0000002d 36 1 xxx.xxx.xxx.xxx > yyy.yyy.yyy.yyy

 

I already checked Phase 2 policies and everything seems to be right. Do you have any idea, what this message could mean?

 

Thank you

KPS

    Robin_Svanberg
    New Member
    Dec 28, 2018 12:34 PM UTC

    Hi,

     

    we have the same issue with an IPSEC VPN to Juniper.

     

    It´s working when we choose SHA1 but not when choosing SHA256 (Juniper: HMAC-SHA-256-128)

     

    Anyone else that have had this issue?

    3 replies

    KPS
    KPSAuthor
    New Member
    Nov 14, 2018 3:20 PM UTC

    Hi!

     

    I could solve the problem. I do not know why, but Phase 2 with SHA-256 shows that issue - Phase 2 with SHA-1 is working fine.

    Robin_Svanberg
    New Member
    Dec 28, 2018 12:34 PM UTC

    Hi,

     

    we have the same issue with an IPSEC VPN to Juniper.

     

    It´s working when we choose SHA1 but not when choosing SHA256 (Juniper: HMAC-SHA-256-128)

     

    Anyone else that have had this issue?

    emnoc
    New Member
    Dec 28, 2018 5:46 PM UTC

    It would  help to see you  phase1/2   configurations and diag vpn tunnel list to  get any ideal of the cipher  being used when the error is and is not present. This seems like  padding issues  btw. AES-GCM and AES-CBC for example are not the same and  block vrs streams will need padding in the former.

     

    Ken Felix

     

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT