Skip to main content
Kazumi-k
New Member
Mar 28, 2025 10:55 AM UTC
Question

ssl vpn auth-timeout 0 not working when no packet send and receieve.

The VPN connection will be broken if the computer connected by FortiClient with the following settings does not send or receive packets passing through the VPN for 259200 seconds (3 days).

---

config vpn ssl setting

 set idle-timeout 0

 set auth-timeout 0

 <omit>

end

---

 

Monitoring in “Dashboard>Users & Devices>Firewall Users>” shows that when there is no communication, the remaining time gradually decreases, and when communication starts, the remaining time resets to 3 days.

 

It seems like a disconnection due to idle-timeout, but the VPN event disconnect reaseon is an auth-timeout.

 

Is it possible to keep the VPN connection for more than 259200 seconds (3 days) even if no packets are sent or received?

 

5 replies

AEK
SuperUser
SuperUser
Mar 28, 2025 11:52 AM UTC

According to "FortiOS CLI reference" doc, 259200 is the maximum value.

If you need it to stay connected then you may schedule a job to generate a ping periodically.

Translate
AEK
Kanbeik
New Member
Mar 31, 2025 12:29 AM UTC

Thanks for the reply.
Doesn't the following setting(Minimum value:0) mean that it will not time out?
“set idle-timeout 0”

“set auth-timeout 0”

 

config vpn ssl settings | FortiGate / FortiOS 7.2.1 | Fortinet Document Library

 

Translate
AEK
SuperUser
SuperUser
Apr 1, 2025 11:29 AM UTC

According to this tech tip you are right, zero should mean no timeout.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-SSL-VPN-timers-explanation-and-SSL-VPN-Login/ta-p/203615

Try some tests to make sure about the reason of the disconnection. Meanwhile you can still try periodic pings through the tunnel to confirm (or invalidate) the involvement of idle-timeout.

Translate
AEK
Kazumi-k
Kazumi-kAuthor
New Member
Apr 2, 2025 3:38 AM UTC

When checking from the command line, idle-timeout is displayed as N/A.

スクリーンショット 2025-04-02 122739.png

 

 

 

 

 

 

 

 

 

 

 

However, when checking from the WebUI,
even when idle-timeout=0 is set, the remaining time continues to decrease from 259200 seconds (3 days).

When I start communicating with ping, the remaining time is reset to 259200 seconds (3 days).

As you can see from (3), idle-timeout=0 same result as idle-timeout=259200.
スクリーンショット 2025-04-02 114133.jpg

Translate
AEK
SuperUser
SuperUser
Apr 2, 2025 10:01 AM UTC

Then probably the doc is wrong.

Translate
AEK
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