Site-to-Site VPN Series

🌉 Understanding Site-to-Site VPN from a "Top 1%" Perspective — Building an IPsec Tunnel Between Cisco and WatchGuard Across Vendors

Introduction

This article is part of the Top 1% Series’ full article guide.

Prerequisites

Getting the Big Picture

In a Nutshell

The single biggest difference between a site-to-site VPN and a remote-access VPN is the connection topology itself — who is being connected to whom. A remote-access VPN connects an individual client device to a VPN server (gateway) one-to-one, handing the client a new virtual IP address on every connection. A site-to-site VPN, by contrast, connects Site A’s network to Site B’s network wholesale, over a tunnel between their gateways, while both sites keep their existing IP addressing untouched.

graph TB
    subgraph RA["Remote-Access VPN (e.g. L2TP/IPsec)"]
        Client["Client device<br/>(assigned a new virtual IP on every connection)"] -.one-to-one tunnel.-> GW1["VPN server<br/>(gateway)"]
        GW1 --> LAN1["Internal LAN"]
    end
    subgraph SS["Site-to-Site VPN"]
        LANA["Site A's internal LAN<br/>(keeps its existing IP addressing)"] --> GWA["Site A's VPN gateway"]
        GWA -.tunnel between gateways.-> GWB["Site B's VPN gateway"]
        GWB --> LANB["Site B's internal LAN<br/>(keeps its existing IP addressing)"]
    end

Breaking the two down side by side:

AspectRemote-Access VPN (e.g. L2TP/IPsec)Site-to-Site VPN
Who connects to whomIndividual client device ⇔ VPN serverA site’s VPN gateway ⇔ another site’s VPN gateway
IPsec mode usedTransport mode (when something else, like L2TP, already builds the tunnel)Tunnel mode (IPsec itself wraps the entire original packet in a new outer IP header)
User authenticationPresent (per-user username/password authentication, typically at the PPP layer)Typically absent (only gateway-level authentication via PSK or certificate)
How traffic is identifiedThe virtual IP address assigned after connecting (one per client)The traffic selectors negotiated in IKE Phase 2 (below), declaring which local-subnet/remote-subnet pairs are allowed through
Typical use caseAn individual off-site device accessing internal resourcesAn always-on connection between HQ and a branch, or on-premises and cloud

Why Site-to-Site VPNs Use Tunnel Mode

In a remote-access VPN like L2TP/IPsec, the L2TP protocol itself already does the job of building a virtual one-to-one link between the client and the server, so IPsec only needs transport mode — keeping the original IP header intact and protecting just the payload (this history is covered in detail in Understanding How L2TP/IPsec Works from a “Top 1%” Perspective).

A site-to-site VPN, however, has no equivalent of L2TP dedicated to building the tunnel. IPsec has to shoulder that job — building the tunnel between the two gateways — entirely on its own. That’s what tunnel mode is for.

graph LR
    Orig["Original IP packet<br/>src = a PC at Site A (e.g. 10.1.5.20)<br/>dst = a server at Site B (e.g. 10.2.10.30)"] --> ESP["Encrypted and authenticated by IPsec ESP<br/>(tunnel mode: the original IP header is encrypted too)"]
    ESP --> OuterIP["New outer IP header added<br/>src = Site A gateway's public IP<br/>dst = Site B gateway's public IP (in the clear)"]

The decisive difference from transport mode is that the original IP header itself is included in what gets encrypted. In transport mode, the original source and destination IP addresses remained visible to anything along the path. In tunnel mode, the original IP header — often addresses from each site’s private, non-routable internal range — disappears into the encrypted payload, and all that’s visible on the wire is the newly added pair of public gateway IP addresses. This lets the two sites’ internal addressing stay hidden from the outside world while the internet, a public network, carries the bridge between them.

The Concept of Traffic Selectors (Proxy IDs)

A remote-access VPN identifies “who is connecting” via a username and password at the PPP layer. A site-to-site VPN has no such notion of per-user authentication at all. Instead, what it identifies is which combination of local subnet and remote subnet is allowed through this tunnel. This information is exchanged during the IKE Phase 2 negotiation and is called a traffic selector (or proxy ID).

For example, if Site A uses 10.1.0.0/16 and Site B uses 10.2.0.0/16, the traffic selector is declared to both gateways as “local: 10.1.0.0/16, remote: 10.2.0.0/16.” Phase 2 negotiation only succeeds if both gateways propose an exactly matching combination. A mismatch in this traffic selector is, by far, the most common cause of trouble when troubleshooting a site-to-site VPN — covered in detail later, in “Troubleshooting Perspective.”

Fundamentals, Thoroughly Explained

The Authentication Model of a Site-to-Site VPN: Authenticating the Device, Not the Person

During IKE Phase 1, a site-to-site VPN authenticates using a pre-shared key (PSK) or a certificate, just like the IPsec layer of a remote-access VPN. But a site-to-site VPN has no equivalent of the PPP-layer authentication a remote-access VPN uses — there’s no mechanism to confirm “specifically who is using this.”

This isn’t a design gap; it follows directly from what a site-to-site VPN fundamentally is. What it connects isn’t “someone at Site A” — it’s “Site A’s network itself.” Whether an individual user, once past the tunnel, is allowed to reach a particular internal server is not the site-to-site VPN’s job at all; it’s handed off to some other mechanism beyond the tunnel — the existing internal firewall, Active Directory permissions, authentication on the internal server itself. It helps to think of a site-to-site VPN as providing nothing more than a “secure pipe” bridging two site networks, with everything else left to what’s on the other side of it.

Policy-Based VPN vs. Route-Based VPN

Site-to-site VPN implementations broadly split into two approaches.

ApproachHow it worksHow it decides what traffic to protect
Policy-based VPNThe traffic itself (an ACL or traffic selector) determines what gets encrypted. Each local/remote subnet pair gets its own, independent IPsec SAOnly the combinations explicitly declared in the ACL or selector
Route-based VPNThe tunnel is treated as a single virtual network interface (a tunnel interface), and the routing table determines what gets encryptedWhatever normal routing sends that way — static routes, or a dynamic routing protocol like OSPF/BGP

With a policy-based VPN, if Site A has 5 subnets and Site B has 3, and every combination needs to communicate, that’s, in principle, 5×3 = 15 independent IPsec SAs (one per traffic-selector combination). As subnets are added, both the configuration and the SA count grow combinatorially — a real operational burden at scale across many sites.

A route-based VPN creates a tunnel interface — a genuine, single virtual interface — and lets a routing entry (or a dynamic routing protocol like OSPF/BGP) pointed at it decide what flows into the tunnel. The IPsec SA itself can be established just once, with a broad selector (potentially 0.0.0.0/0), leaving the actual decision of what traffic goes through the tunnel to the routing table. That makes it far more scalable across many sites and subnets, and it means a dynamic routing protocol can run directly over the tunnel — so as sites are added, routes propagate automatically.

The Typical Real-World Setup: One VPN Gateway at the Site Boundary

Even when a site has multiple internal segments, the common real-world pattern is not one VPN router per segment. Instead, a single VPN gateway sits at the boundary where the site meets the internet (the WAN side), and that one gateway handles every internal segment. Deploying a separate physical VPN router per segment is impractical in terms of hardware count and operational cost — in most environments, the existing firewall or router doubles as the VPN gateway.

How that single gateway handles multiple segments differs between the two approaches:

How Cisco and WatchGuard each support this

Cisco supports both the traditional, ACL-defined crypto map (policy-based) approach and a route-based configuration using a VTI (Virtual Tunnel Interface). Because a VTI behaves like any ordinary Cisco IOS interface, a dynamic routing protocol such as OSPF or BGP can run directly over the tunnel — a major advantage. Note also that a dynamic VTI (DVTI) configuration with IKEv2 is only supported within the FlexVPN framework.

A WatchGuard Firebox’s basic building block is the manual BOVPN (Branch Office VPN), combining a Gateway (Phase 1) with a Tunnel (Phase 2, where local/remote networks are explicitly listed as routes) — this is effectively policy-based. Separately, WatchGuard also offers a BOVPN virtual interface, which treats the tunnel as a virtual interface and controls traffic on a routing basis; it’s used for connecting to cloud-based virtual networks or when dynamic routing is needed.

Case Study: Building an IPsec Tunnel Between Cisco (Japan) and WatchGuard (Overseas)

In practice, mismatched hardware between sites is common — a merger or acquisition can leave different vendors’ gear in place from before, or a head office and its overseas branches may simply procure through different channels — and organizations often end up building a site-to-site VPN between different vendors’ equipment: Cisco⇔Fortinet, Palo Alto⇔Juniper, Cisco⇔WatchGuard, and so on. As one example among many such mixed-vendor patterns, let’s walk through Cisco equipment at a Japanese head office connected to a WatchGuard Firebox at an overseas branch by a site-to-site IPsec VPN. The first wall you hit when connecting equipment from different vendors is that the terminology is completely different from vendor to vendor. The same underlying setting is named differently in Cisco’s documentation than in WatchGuard’s, so the first order of business is mapping the terms to each other.

RoleCisco’s termWatchGuard Firebox’s term
Overall Phase 1 (IKE SA) configurationcrypto ikev2 policy / crypto isakmp policyGateway (Phase 1 settings)
Phase 1 encryption/authentication proposalcrypto ikev2 proposalGateway’s Phase 1 Proposal (encryption, authentication, DH group combination)
Where the pre-shared key is storedcrypto ikev2 keyring / crypto isakmp keyGateway Endpoint’s authentication settings (Pre-Shared Key)
How the peer is identifiedmatch identity in a crypto ikev2 profileGateway Endpoint’s Gateway ID (IP address, domain name, etc.)
Phase 2 (IPsec SA) encryption/authentication proposalcrypto ipsec transform-set / crypto ikev2 ipsec-proposalThe Tunnel’s Phase 2 Proposal
Traffic selectormatch address (an ACL) inside a crypto mapThe Tunnel’s Route (Local/Remote Network)
Liveness detectioncrypto isakmp keepalive / IKEv2’s dpdThe Gateway’s Dead Peer Detection setting
The tunnel definition itselfThe crypto map as a whole, or a VTI (tunnel interface)A Gateway + Tunnel pair, or a BOVPN virtual interface

On Cisco IOS, an IKEv2-based site-to-site VPN is typically built from elements like these (the exact commands will need adjusting for your IOS version and configuration):

crypto ikev2 proposal PROP1
  encryption aes-cbc-256
  integrity sha256
  group 14

crypto ikev2 policy POLICY1
  proposal PROP1

crypto ikev2 keyring KEYRING1
  peer BRANCH-WG
    address 203.0.113.10
    pre-shared-key <PSK>

crypto ikev2 profile PROFILE1
  match identity remote address 203.0.113.10 255.255.255.255
  authentication local pre-share
  authentication remote pre-share
  keyring local KEYRING1

crypto ipsec transform-set TSET1 esp-aes 256 esp-sha256-hmac
  mode tunnel

crypto map CMAP1 10 ipsec-isakmp
  set peer 203.0.113.10
  set transform-set TSET1
  set ikev2-profile PROFILE1
  match address ACL-TO-BRANCH

ip access-list extended ACL-TO-BRANCH
  permit ip 10.1.0.0 0.0.255.255 10.2.0.0 0.0.255.255

On the WatchGuard Firebox side, the same content is configured through the GUI in Policy Manager or WatchGuard Cloud. You define Phase 1 (encryption AES-256, authentication SHA-256, the DH group equivalent to group 14, the PSK, and the Gateway Endpoint’s IP address) in the Gateway creation screen, and Phase 2 (ESP’s encryption/authentication algorithms, the PFS group) plus the Local/Remote Network route pair — 10.1.0.0/16 ⇔ 10.2.0.0/16 — in the Tunnel screen that hangs beneath it.

The specific mismatches to watch for when connecting the two are as follows.

  1. IKE version mismatch: WatchGuard Fireware’s manual BOVPN supports both IKEv1 and IKEv2, but the version selected by default, and the template combinations offered, won’t necessarily match Cisco’s defaults. Both sites need to explicitly agree on which version to use.
  2. Default templates don’t use matching algorithms: Cisco’s default ISAKMP policy and WatchGuard’s built-in Phase 1/Phase 2 Proposal templates almost never line up on encryption algorithm, hash, and DH group out of the box. At least one side needs a custom proposal built to match the other’s encryption algorithm, authentication algorithm, DH group, and lifetime exactly, one-to-one. If even a single parameter is off, the phase doesn’t “partially succeed” — it fails outright.
  3. Peer identity type mismatch: Cisco’s match identity remote address identifies the peer by IP address, but WatchGuard’s Gateway Endpoint lets you choose to identify the peer either “by IP address” or “by domain name (FQDN).” Even with a correct PSK, a mismatch here causes authentication to fail.
  4. Whether NAT traversal (NAT-T) is needed: It’s not unusual for the overseas WatchGuard to sit behind an ISP-provided router doing NAT. In that case, by the same principle as NAT-T in remote-access L2TP/IPsec (covered in detail in Understanding How NAT/NAPT Works from a “Top 1%” Perspective), both gateways need to enable — and agree on — floating to UDP 4500.
  5. Mismatched traffic-selector granularity: A particularly common mismatch is Cisco using a VTI (route-based) with a broad selector on one side, while WatchGuard uses its traditional policy-based Tunnel Route, enumerating each subnet pair individually, on the other. Say Site A has two independent subnets, 10.1.0.0/16 and 10.3.0.0/24, and both need to reach Site B: WatchGuard’s policy-based Tunnel needs both combinations registered as separate Routes, and Cisco’s ACL needs the matching permit lines for both, with nothing missing. Forget to add one on either side, and you get the hard-to-diagnose failure mode of “only some subnets can communicate.” In practice, having both sites enumerate traffic selectors explicitly, at the same granularity, is the surest way to maximize interoperability between different vendors.

What to Watch Out for When Migrating from IKEv1 to IKEv2

As noted above, new site-to-site VPN builds increasingly choose IKEv2, but in practice you’ll also frequently run into projects that need to upgrade an existing IKEv1 configuration to IKEv2 while it’s still live (often driven by legacy-hardware replacement, or by IKEv1’s specific weaknesses and poor mobility support, covered in Comparing L2TP/IPsec to Modern VPN Protocols from a “Top 1%” Perspective). Unlike a new build, this comes with the added constraint of switching a tunnel that’s already carrying production traffic, without stopping communication (or with only minimal downtime) — which changes what you need to watch out for.

  1. Phased migration (running in parallel, cutting over gradually): Rather than switching every site’s IKE version all at once, the standard approach is to convert a single tunnel to IKEv2 first at a low-impact site (or during a low-traffic window), validate it, and only then roll it out to the rest. Depending on the gateway, you may be able to keep IKEv1 and IKEv2 configurations coexisting temporarily for the same peer and cut over to the new SA while the old one is still active — but some implementations can only accept Phase 1 negotiation under a single policy/profile at a time, so check the peer device’s documentation in advance for whether parallel operation is even possible.
  2. Confirming vendor version/feature support ahead of time: IKEv2 support varies not just by model but by firmware/OS version. As mentioned in “Cisco and WatchGuard Support” above, using Cisco’s Dynamic VTI (DVTI) with IKEv2 is only supported within the FlexVPN framework, and existing configuration styles (a bare crypto map, for instance) may not migrate to IKEv2 as-is. Before migrating, check both vendors’ support matrices for which firmware version supports which IKEv2 features, and, if necessary, build a firmware update into the plan first.
  3. Whether PSKs and certificates can be reused: With a pre-shared key setup, the PSK string used under IKEv1 can generally be reused as-is under IKEv2, but on most implementations the authentication configuration items themselves (how profiles/proposals are wired together) need to be rebuilt separately per version. With certificates, the same certificate chain can be used under either IKEv1 or IKEv2, but the default ID type (how the certificate’s Subject gets treated as an identifier) sometimes differs between versions — a classic root cause when authentication alone starts failing after a migration.
  4. Designing the maintenance window and rollback procedure: A migration that swaps out the entire Phase 1/Phase 2 policy typically drops the tunnel for a moment at the instant the configuration changes. Schedule the cutover during a maintenance window outside business hours for the affected sites, and prepare a procedure in advance where the old IKEv1 configuration is commented out or archived rather than deleted, so you can immediately revert if the IKEv2 side fails to establish an SA within the expected time. This matters especially in cross-vendor environments: if one site’s cutover gets ahead of the other’s, there’s a window where neither version can establish a tunnel, so it’s important to coordinate the exact timing between both sites’ operators beforehand.
  5. Differences in DPD/keepalive monitoring settings: Dead Peer Detection (DPD) implementations, and their default intervals and timeout values, can differ between IKEv1 and IKEv2 and across vendors. If the old version’s monitoring settings are left in place after the migration, a genuinely healthy tunnel can get misjudged as “down,” triggering unnecessary failovers or alerts — so review monitoring settings as part of the migration work too.

Unlike designing a new build from scratch, this kind of migration project lives or dies on how well it fits with the existing operations and monitoring setup. The reason this migration scenario tends to come up for site-to-site VPNs rather than remote-access VPNs is that the IKEv1-vs-IKEv2 difference has the most real-world impact on always-on connections between gateways. MOBIKE’s benefit for handling a mobile client’s changing IP address matters relatively little in a site-to-site setup, where the gateways’ IP addresses are basically fixed — the operational considerations covered above carry far more practical weight instead.

Liveness Detection and Redundancy for a Site-to-Site VPN

In a remote-access VPN, one tunnel going down affects a single user. In a site-to-site VPN, one tunnel going down takes out communication for an entire site. Because the blast radius is on a completely different scale, tuning Dead Peer Detection (DPD) intervals appropriately, and considering redundancy, matters a great deal.

The View from the Top 1% (What Experts See)

The “SA Explosion” Problem in Policy-Based VPNs

As noted above, a policy-based VPN builds an independent IPsec SA for every (local subnet, remote subnet) combination. This isn’t just extra configuration — it also means each SA independently rekeys on its own Phase 2 lifetime schedule. As the number of sites and subnets grows, the number of SAs you need to track and monitor grows combinatorially, and keeping a ledger of which SA maps to which site-pair/subnet-pair becomes operationally essential. In organizations where new vendor connections or new subnets at existing sites are added frequently, this management overhead reaching an unmanageable scale is a common, real-world trigger for migrating to a route-based VPN.

Tunnel Mode Shrinks Effective MTU More Than Transport Mode Does

A site-to-site VPN’s IPsec tunnel mode adds an entirely new outer IP header to the original packet, on top of ESP’s own encryption and authentication overhead. That’s simply more overhead than transport mode (which keeps the original IP header and protects only what’s inside it) — the outer IP header (20 bytes), ESP header/trailer, and ICV together can add up to roughly 50–70 bytes of overhead, depending on conditions. This is especially pronounced for a site-to-site VPN spanning an undersea cable between Japan and an overseas site: MTU constraints along the transit network, combined with “PMTUD black holes” (where the ICMP messages Path MTU Discovery relies on get filtered somewhere along the path), tend to produce the confusing failure mode where only large file transfers or backups mysteriously stall. In practice, the standard fix is to explicitly pin the tunnel interface’s MTU to around 1400 bytes, or configure TCP MSS clamping on both gateways.

Route Advertisement: Static vs. Dynamic Routing

For a simple two-site setup, static routes on each gateway (“traffic for Site B’s subnet goes through this tunnel”) are all you need. But as the topology grows into a hub-and-spoke design with several overseas branches hanging off headquarters, or a full mesh where sites connect to each other directly, manually updating static routes on every gateway every time a site is added or removed stops being realistic. Running a dynamic routing protocol like BGP over a route-based VPN (a VTI, or a BOVPN virtual interface) lets a new site’s routes — or a change to an existing site’s routes — propagate to every other site automatically, substantially cutting operational overhead in a multi-site environment. This is a design fork you’re unlikely to notice while only thinking about a two-site connection — it only becomes visible once the site count grows.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

Troubleshooting a site-to-site VPN, like L2TP/IPsec, starts with isolating which phase it’s stuck in — but a site-to-site VPN adds one more thing to check: whether the traffic selectors actually match.

  1. Phase 1 (IKE SA) fails to establish: Typical causes include a mismatched PSK, mismatched encryption/hash/DH-group proposals, a mismatch in the peer identity method (IP address vs. FQDN), or UDP 500/4500 being blocked somewhere along the path. On Cisco, show crypto ikev2 sa (or show crypto isakmp sa) is the go-to command for checking Phase 1 SA state; repeated retransmissions without an established SA usually point to a proposal mismatch. On WatchGuard, Firebox System Manager’s Traffic Monitor or a VPN diagnostic report will show repeated failed Phase 1 negotiations and log the proposal mismatch.
  2. Phase 2 (IPsec SA) fails to establish — the most common cross-vendor failure: The most frequent cause here, even after Phase 1 succeeds, is a mismatch in traffic selectors (the local/remote subnet combination). On Cisco, debug crypto ipsec will show messages to the effect of “quick mode selectors do not match.” Line up both gateways’ selector definitions — Cisco’s ACL against WatchGuard’s Tunnel Route — and check for discrepancies in subnet range, ordering, or notation (like wildcard masks vs. subnet masks).
  3. The tunnel is up, but specific subnets can’t communicate: A classic case is adding a new subnet at one site and forgetting to add the corresponding selector (an ACL permit line, or a Tunnel Route entry) on the other gateway.
  4. The tunnel is up, but traffic only flows in one direction: This is often not an IPsec problem at all — it’s usually a missed static route on one site’s LAN side that should point that subnet’s traffic at the VPN gateway.
  5. The connection is unstable or drops intermittently: If the two gateways’ DPD intervals, or their Phase 1/Phase 2 lifetimes, differ significantly, one side may try to disconnect or rekey while the other is still using what it thinks is a valid SA — observed as intermittent disconnects.
  6. Only large transfers stall or time out: This points to fragmentation from the reduced effective MTU discussed above, or a PMTUD black hole. Adjusting the tunnel interface’s MTU, or configuring MSS clamping, often resolves it.

Prevention and Long-Term Countermeasures

Summary

Starting Today

  1. Before opening either vendor’s console or CLI to build a new site-to-site VPN, build the Phase 1/Phase 2 parameter mapping table first.
  2. When adding a new subnet to an existing site-to-site VPN, remember to update the traffic selectors (ACL / Tunnel Route) symmetrically on both gateways.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).