I have configured a Windows Server with a public IP address and set up Routing and Remote Access. After configuring Routing and Remote Access, I selected custom settings and enabled NAT and VPN. I then set up a custom IPsec policy for L2TP/IKEv2 connections with a preshared key and defined a static address pool (40.30.0.1 - 40.30.0.6).
With this configuration, I can connect easily to my VPN from any network. However, I noticed that my public IP address is still pingable even when I'm not connected to the VPN. I want to restrict access to ping my public IP address only when the VPN connection is active.
How can I configure my Windows Server so that my public IP address is only pingable when the VPN connection is established? Are there specific firewall rules or settings within Routing and Remote Access that I need to adjust?