# VPNGw

VPN Gateway is a type of Virtual Network Gateway

Only one VPN Gateway in a VNET.

VPN GW Types:

* Policy Based VPN:
  * supports IKEv1 only
  * use of static routes
* Route Based VPN
  * supports: connection between VNETs, point-to-site connections, multisite connections, coexistence with Azure ExpressRoute Gateway
  * supports IKEv2
  * uses any to any traffic selector
  * can use dynamic routing protocols

VPNGw sizes:

* Basic: 10 sites, 100 Mbps, no BGP support
* VpnGw1/Az: 30 sites, 650Mbps, BGP supported
* VpnGw2/Az: 30 sites, 1Gbps, BGP supported
* VpnGw3/Az: 30 sites, 1.25Gbps, BGP Supported

Required resources:

* In Azure:
  * VNET
  * GatewaySubnet of at least /27
  * Public IP Address (Basic-SKU). Dynamic but it won't change
  * Local Network Gateway
  * Virtual Network Gateway
  * Connection
* On Prem:
  * A VPN device
  * internet routable IPv4 Addresses

HA

* by default the Gateway is deployed as a 2 instances in an active/standby config but only the active one is visible.
* Active/active is also possible

VPN Gateway can act as a failover for ExpressRoute


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cloud.nyquist.eu/azure/vpngw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
