Skip to main content
Yerlik
Visitor III
Feb 7, 2023 4:28 AM UTC
Solved

Ipsec tunnel

Hi all! Can someone tell me why the ipsec tunnel itself falls everyday? maybe there is a time limit? i notice it in the morning
Tunnell between FortiGate 100F and Mikrotik

srajeswaran
Staff
Feb 7, 2023 5:25 AM UTC

Do you see anything on VPN events log?  Is it going down when there is active traffic or during the idle time?

4 replies

srajeswaran
Staff
Staff
Feb 7, 2023 5:25 AM UTC

Do you see anything on VPN events log?  Is it going down when there is active traffic or during the idle time?

Yerlik
YerlikAuthor
Visitor III
Feb 10, 2023 9:52 AM UTC

i think it is going down during the idle time (at night when no one working). logs are not saved more 1 hour.

alif
Staff
Staff
Feb 12, 2023 9:52 PM UTC

hi @Yerlik,

 

You can enable auto-negotiation under phase2 settings which will keep the tunnel active at all times. Please refer to the below link for details.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Set-the-FortiGate-unit-to-bring-up-IPSec-VPN/ta-p/192442

srajeswaran
Staff
Staff
Feb 12, 2023 5:26 AM UTC

I think increasing the lifetime to more (~24 hours) along with higher idle-timeout could be tried.

ref: https://docs.fortinet.com/document/fortigate/7.2.3/administration-guide/790613/phase-1-configuration

IPsec tunnel idle timer

Define an idle timer for IPsec tunnels. When no traffic has passed through the tunnel for the configured idle-timeout value, the IPsec tunnel will be flushed.

To configure IPsec tunnel idle timeout:
config vpn ipsec phase1-interface     edit p1         set idle-timeout [enable | disable]         set idle-timeoutinterval <integer> IPsec tunnel idle timeout in minutes (10 - 43200).     next end
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