How to fix Virtual Network Gateway, idling even when the tunnel is busy

Randolph Singson 0 Reputation points
2025-06-02T19:50:35.8666667+00:00

IPSec VPN connection Consistently dropping even when there are traffic

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,215 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 10,085 Reputation points
    2025-06-03T08:52:09.22+00:00

    hi Randolph! thanks for throwing this question out there )) dealing with vpn drops when u need those mapped drives to stay alive is a total pain, right?

    the idle timeout thing is a classic azure vpn gateway quirk. even if there’s traffic, sometimes it acts like it’s napping )) the fix? u gotta tweak the keepalive settings. on ur on prem vpn device, set the dead peer detection (DPD) to aggressive mode and crank up the keepalive interval to like 10-30 seconds. azure’s side is less flexible, but this’ll poke the tunnel awake. azure vpn gateway about DPD.

    next, check ur security associations (SAs). if they’re flaky, the tunnel drops. make sure ur on prem device matches azure’s phase 1 and phase 2 settings exactly. ikev2 is way more stable than ikev1, so switch if u can. azure vpn gateway crypto requirements.

    and azure’s vpn gateways sometimes throttle connections under heavy load. if ur pushing big files or tons of small packets, the tunnel might choke. try bumping up the gateway sku to something beefier like VpnGw2 or higher. more power, fewer drops ))

    enable BGP if u haven’t. it’s like giving ur tunnel a heartbeat, keeps it alive even when traffic’s light. azure loves BGP for vpn stability: azure vpn gateway BGP.

    hope this helps! if ur still stuck, hit me with more deets
    Best regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    PPS That is my Answer and not a Comment
    

    https://ctrlaltdel.blog/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.