A VPN gateway is the device or cloud service where VPN tunnels begin and end. It authenticates the user or network trying to connect, builds the encrypted tunnel, and routes traffic between the private network and the outside world. Without a gateway, there is no VPN connection to join.

Photo: Marie-Lan Nguyen, via Wikimedia Commons (CC BY 2.5). A router with VPN support acts as the gateway for a home or small-office network.
What Is a VPN Gateway?
A VPN gateway is the entry point to a virtual private network. It is one of the types of VPN components in our overview, and the central node that connects branch offices, remote workers, and cloud infrastructure to a corporate network. Every VPN tunnel into that network ends at the gateway. That is what “terminating a tunnel” means: the gateway is where the encrypted tunnel stops and the private network begins.
The gateway can take several forms. It can be a physical device, such as a business router or firewall with VPN capability. It can be software running on a server or virtual machine. Or it can be a managed cloud service, such as Azure VPN Gateway, where the provider runs the gateway for you inside its cloud. The job is the same in every case: decide who may connect, build the tunnel, and move traffic through it securely.
A VPN gateway is not the same thing as the VPN itself. The VPN is the private network and the encrypted connections that make it up. The gateway is the component that manages those connections: authentication, tunnel creation, encryption, and routing. It is also different from a default gateway, which is simply the router a device uses to reach other networks. A standard router only becomes a VPN gateway if it can also create and terminate VPN tunnels.
What Does a VPN Gateway Do?
A gateway does five jobs, every time a connection is made.
Authentication. It checks that the user, device, or remote network is allowed in. This is usually done with a username and password plus a second factor, a digital certificate, or a pre-shared key shared between two gateways.
Tunnel creation. It builds the encrypted tunnel to the other end, agreeing the encryption and key exchange settings as it does so.
Encryption and decryption. It encrypts traffic leaving the private network and decrypts traffic arriving from the tunnel, so data is protected while it crosses the public internet.
IP address assignment. It often assigns an address to the connecting device, so the device has an identity on the private network while it is connected.
Routing and policy enforcement. It decides which traffic goes through the tunnel and which does not, and it applies the rules that say who may reach which systems. A gateway can also block traffic that does not match its policies.
Together, these jobs make the gateway the security checkpoint for remote access. Nothing enters the private network through the VPN without passing through it.
How Does a VPN Gateway Work?
The sequence is the same whether the gateway is a box in an office or a service in the cloud. If the tunnel itself is new to you, our guide to how does a VPN work explains the encryption and routing first.
- Connection request. A user opens the VPN client, or a remote gateway starts a connection to its peer. The request reaches the gateway’s public address.
- Authentication. The gateway verifies the credentials, certificate, or pre-shared key. If the check fails, the connection stops here.
- Key exchange. The two ends negotiate encryption keys, usually with IKE, the Internet Key Exchange protocol, as part of IPsec. They agree on the algorithms and how long the keys will last.
- Tunnel established. The encrypted tunnel is built. From this point, all traffic between the two ends travels inside it.
- Traffic routing. The gateway inspects each packet’s destination. Traffic for the private network enters the tunnel; other traffic follows the normal route, unless the policy sends everything through the VPN.
- Decryption and delivery. The gateway at the far end decrypts the traffic and hands it to the destination device on its network. Replies return through the same tunnel.
When the user disconnects, or the tunnel fails, the gateway closes the session and removes the temporary routes and addresses it created.
Types of VPN Gateways
Gateways are usually described in two ways: what they are, and what kind of connection they serve.
By Form
Hardware gateways are physical routers, firewalls, or security appliances with VPN functions built in. They suit offices and data centers, and they handle encryption in dedicated hardware, which keeps speeds up under load.
Software gateways run on a standard server or virtual machine. They suit companies that already run virtual infrastructure, and they can be moved or rebuilt quickly.
Cloud gateways are managed services such as Azure VPN Gateway or the equivalent services from other cloud providers. The provider runs the gateway inside its cloud, and the customer configures the connections. There is no hardware to buy or patch.
By Connection Type
Site-to-site gateways link two whole networks, such as an office and a data center, or an office and a cloud network. A gateway sits at each end. Our guide to site-to-site VPN explains this design in full.
Point-to-site gateways connect individual devices to a network. A remote worker’s laptop connects to the cloud or office gateway, which is the same idea as a remote access VPN with the gateway at the far end.
VNet-to-VNet gateways link two virtual networks inside the same cloud provider, so services in one cloud network can reach services in another through an encrypted tunnel.
A single gateway often serves more than one of these at once. In Azure, for example, one VPN gateway can hold several connections at the same time, and all the tunnels share the gateway’s available bandwidth.
VPN Gateway vs Router, Firewall, and Concentrator
The terms overlap, and they are easy to mix up.
A router moves packets between networks. A VPN gateway is a router that can also build and terminate encrypted tunnels. Not every router can do that, so check before buying one for the job.
A firewall filters traffic by rules. Many business firewalls include a VPN gateway as one of their functions, and in small offices the firewall and the gateway are often the same box. The firewall decides what is allowed; the gateway decides how remote users and sites connect.
A VPN concentrator is a specialised device that terminates many VPN connections at once, often for a large remote workforce. It is a type of gateway, built for scale rather than for general routing. Our guide to VPN concentrators covers that device separately.
A default gateway is simply the router a device sends traffic to when the destination is outside its own network. It has no security role unless it also runs VPN functions.
Which Protocols Does a VPN Gateway Use?
The protocol decides how the gateway and the connecting device authenticate, exchange keys, and encrypt data. The common choices are IPsec with IKEv2, which is the standard for site-to-site connections and is supported by almost every business gateway, and OpenVPN, IKEv2, or SSTP for point-to-site connections where a user connects from a laptop or phone. WireGuard is increasingly supported as well, particularly on software gateways and modern routers.
IPsec is the protocol suite behind most gateway-to-gateway tunnels, and it is documented in NIST’s guide to IPsec VPNs. Our guide to IPsec VPN explains how the suite works, and our VPN protocols comparison covers the alternatives side by side. The practical rule is simple: both ends of a tunnel must support the same protocol and the same settings, or the tunnel will not come up.
Cloud VPN Gateways: The Azure Example
Cloud gateways work the same way as hardware gateways, with the provider handling the machines. In Azure, a VPN gateway is a specific type of virtual network gateway that sends encrypted traffic between an Azure virtual network and on-premises locations over the public internet, or between Azure virtual networks over Microsoft’s own network.
Setting one up involves a few specific pieces. The virtual network needs a subnet named GatewaySubnet, which holds only the gateway. The gateway itself is made of two or more virtual machines that Azure manages, so the customer never patches them. The customer picks a SKU, which sets the throughput and the number of tunnels: the Basic SKU supports up to 100 Mbps, while the largest zone-redundant SKU reaches 10 Gbps. Gateways can run active-standby, where a second instance takes over if the first fails, or active-active, where both instances carry tunnels at once. If a deployment needs more than 100 site-to-site tunnels, Microsoft points to Virtual WAN instead of a single gateway.
Other clouds follow the same pattern with different names. The ideas transfer: a dedicated subnet, a managed gateway, a choice of size, and high-availability options.

Photo: 123Net, via Wikimedia Commons (CC BY-SA 3.0). Cloud gateways run on hardware like this, managed by the provider.

Photo: Carl Lender, via Wikimedia Commons (CC BY 2.0). In a cloud gateway, the provider runs the hardware and the customer configures the connections.
How to Choose a VPN Gateway
The choice comes down to five questions.
How much traffic will it carry? Add up the expected throughput and pick a gateway or SKU rated above it. A gateway that is too small becomes the bottleneck for the whole office.
How many tunnels? Count the site-to-site links and the expected number of simultaneous remote users. Each tunnel and each user consumes resources on the gateway.
Which protocols must it support? Confirm the gateway supports the protocols the other ends use. IPsec with IKEv2 covers most site-to-site links; point-to-site needs OpenVPN, IKEv2, or SSTP support.
How much downtime is acceptable? For a link the business depends on, choose a gateway with high availability: an active-standby pair, an active-active pair, or a zone-redundant cloud gateway.
What does it cost to run? A hardware gateway costs the purchase price plus power and support. A cloud gateway is billed for the gateway itself, usually by the hour, plus the data that leaves the cloud. Check the provider’s pricing page before committing, and remember that a larger SKU costs more every hour whether it is busy or not.
Businesses comparing a gateway deployment with newer approaches should also read our comparison of VPN vs ZTNA / SASE, which explains when per-application access fits better than a network gateway, and our guide to mesh VPN for networks that connect devices directly without a central gateway.
VPN Gateway Security Best Practices
A gateway is a public-facing device, which makes it a target. The following habits keep it from becoming the way in.
- Use certificates or strong pre-shared keys, never a short or reused password. A weak key undermines the encryption entirely.
- Keep the gateway software patched. Gateway vulnerabilities are actively exploited, and vendors publish fixes for them regularly.
- Limit who can reach the gateway’s management interface, and require multi-factor authentication for administrative access.
- Apply the principle of least privilege to the tunnel: each connection should reach only the systems it needs, not the whole network.
- Review the logs. Failed authentication attempts, tunnels that flap, and traffic from unexpected places are all worth investigating.
- Plan for failure. A second tunnel, a second gateway, or a backup connection keeps the sites linked when one path goes down.
FAQs
What is a VPN gateway in simple terms?
It is the entry point to a VPN: the device or cloud service that checks who is connecting, builds the encrypted tunnel, and routes traffic into the private network.
Is a VPN gateway the same as a VPN?
No. The VPN is the private network and its encrypted connections. The gateway is the component that creates and manages those connections.
What is the difference between a VPN gateway and a router?
A router moves packets between networks. A VPN gateway is a router that can also create and terminate encrypted VPN tunnels. A router without VPN functions cannot serve as a gateway.
What is a VPN gateway used for?
It connects branch offices, remote workers, and cloud networks to a private network securely over the public internet, and it controls who can connect and what they can reach.
Does Azure VPN Gateway need a special subnet?
Yes. The virtual network must contain a subnet named GatewaySubnet, which holds only the gateway. No other virtual machines or resources go in it.
Can one VPN gateway handle many connections?
Yes. A single gateway can hold several site-to-site and point-to-site connections at once, and the tunnels share the gateway’s available bandwidth. The limit depends on the gateway’s hardware or SKU.
Sources
7
- Microsoft Learn. “About Azure VPN Gateway.” https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways
- Palo Alto Networks. “What Is a VPN Gateway?” https://www.paloaltonetworks.com/cyberpedia/what-is-a-vpn-gateway
- NIST. “SP 800-77, Guide to IPsec VPNs.” https://csrc.nist.gov/pubs/sp/800/77/final
- Google Cloud. “VPN gateways.” https://cloud.google.com/vmware-engine/docs/concepts-vpn-gateways
- Fortinet. “IPsec VPN gateways.” https://docs2.fortinet.com/document/fortimanager/7.6.3/administration-guide/841548/ipsec-vpn-gateways
- NordVPN. “What is a VPN gateway and how do you choose one?” https://nordvpn.com/blog/what-is-a-vpn-gateway/
- IONOS. “VPN Gateway Overview.” https://docs.ionos.com/cloud/network-services/vpn-gateway/overview.md
Every factual claim on this page was verified against a named source above.



