When a VPN connection has been idle (no traffic) for 300 seconds, the
VPN server will check whether the client is still active. The
detection mechanism uses UDP packets on port 500.
The Windows Firewall blocks these packets. Because of this, the VPN connection will be terminated.
This problem can be solved by setting an "Exception" for these
You can do this as follows: