Skip to main content
ZZDVA0B
New Member
Feb 20, 2020 8:24 PM UTC
Question

IPSec Phase1 Error

Hi all,

I'm facing a problem with tunnel IPSEC site-to-site. I receiving the log "INVALID-SPI" and after this Received ESP packet with unknown SPI. Does someone have any idea what it could be?

 

Best Regards

Danilo

    7 replies

    ss198939
    New Member
    Feb 20, 2020 8:26 PM UTC
    are you getting second message ? if its main mode ? phase-1 ?
    Translate
    ZZDVA0B
    ZZDVA0BAuthor
    New Member
    Feb 20, 2020 8:34 PM UTC

    I have a doubt, because the tunnel towards Remote Gateway is a Dialup user with setting on main mode.

    Sorry, but I don't understood what do You mean with "are you getting third message".

     

    Thanks in advance

    Translate
    ss198939
    New Member
    Feb 20, 2020 8:38 PM UTC
    sorry I wanted to mention second message take packet capture and see how many messages you are getting. main mode have 6 message for phase 1 for aggressive mode its 4 message if you are not getting second message then there is some mismatch in parameters
    Translate
    adGmail
    New Member
    Feb 25, 2020 1:09 AM UTC

    From Wikipedia;

    "The Security Parameter Index (SPI) is an identification tag added to the header while using IPsec for tunneling the IP traffic. This tag helps the kernel discern between two traffic streams where different encryption rules and algorithms may be in use."

     

    So it looks like either;

    1. the tunnel was setup but it has expired on your end, or

    2. its a stray packet for something else

     

    If #1, then check that the timer and data volume rekeying parameters are the same on both ends of the tunnel

    If #2, do the endpoint IPs match?

     

    My first guess would be that you have a shorter timer on your IPSec SAs than the remote end has, but usually tunnels fail to setup when parameters dont match. I have no experience with Forti IPSec...

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024