Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Timeout VPN when traffic is not flowing through the tunnel



Article ID: KB28703 KB Last Updated: 17 Dec 2020Version: 2.0

This article describes how to bring down the VPN if the traffic is not flowing through the tunnel.



Use a timeout option in the VPN phase 2 configuration.

Note: This can be configured only from the CLI.


Traffic is not flowing continuously through a tunnel for five minutes.

Change the configuration by running the following command:

set vpn "test" gateway "test" no-replay tunnel idletime 5 sec-level basic

idletime number is the length of time, in minutes, that a connection can remain inactive before the security device terminates it.

Now, if the traffic does not flow for five minutes, the VPN SA will expire and the following event log will be generated:

2014-01-13 05:55:46 system info 00536 Phase 2 SA for tunnel ID 1 has been
idle too long. Deactivated P2 SA and
sent a Delete msg to peer.


Modification History:

2020-12-17: Removed EOL devices from the category list


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search