Cisco Meraki MX (static routing)

Last updated Oct 15, 2026 This guide provides step-by-step instructions for configuring Cisco Meraki MX appliances to establish IPsec VPN tunnels to Cloudflare WAN. It is intended for network engineers who are familiar with Cisco Meraki administration and have an active Cloudflare WAN subscription.

Test environment

Field Value
Vendor Cisco Meraki
Model MX68
Release MX 19.2.7

Note

Meraki 19.2.7 is the minimum required version to support Route-Based IPsec VPN with third-party endpoints, including Cloudflare WAN. Refer to the Meraki implementation and compatibility notes section for more details.

IKE and IPsec crypto settings

Field Value
Traffic Selection Criteria Route-Based VPN
Routing Static
Redundant Tunnels Yes
Tunnel Load Balancing Active/Standby
IKE Version IKEv2
Authentication Pre-Shared Key
Anti-Replay Protection Enabled
NAT Traversal (NAT-T) Not Tested
NAT-T Port Not Applicable
Phase 1 — DH-Group Group 14
Phase 1 — Encryption AES-256-CBC
Phase 1 — Authentication/Integrity SHA-256
Phase 2 — DH-Group Group 14
Phase 2 — Transport ESP
Phase 2 — Encryption AES-256-CBC

Note

Cloudflare recommends DH Group 20, which is not supported by the MX platform. DH Group 14 is compatible with the MX platform.

Cloudflare WAN and Cisco Meraki MX configuration

Replace all object names and IP addresses in the examples below to match your environment.

Note

The Cloudflare IPsec tunnel health checks require non-standard configuration settings to support the MX platform. The note in each section below identifies the affected fields.

Cloudflare WAN tunnel 1 of 2

Attribute Value/Address
Name (required) CF_WAN_TUN_01
Description —
IPv4 Interface Address (required) 169.254.250.0/31
IPv6 Interface Address —
Customer Endpoint 203.0.113.100
Cloudflare Endpoint 162.159.135.1
Tunnel health checks True
Rate Low
Type Request
Direction Bidirectional
Target Custom
Target address 192.168.125.1 (MX LAN Interface IP)
Turn on replay protection True
Automatic return routing True

Note

The values for Rate, Type, Direction, Target, Target address, Turn on replay protection, and Automatic return routing are the non-standard settings required to support the MX platform.

Obtain the IKE identity and pre-shared key after tunnel creation:

Attribute Value/Address
FQDN ID bf6c493d03<REDACTED>.ipsec.cloudflare.com
Pre-shared key Cloudflare-WAN-T1-PSK-1234!

Cloudflare WAN tunnel 2 of 2

Attribute Value/Address
Name (required) CF_WAN_TUN_02
Description —
IPv4 Interface Address (required) 169.254.250.2/31
IPv6 Interface Address —
Customer Endpoint 203.0.113.100
Cloudflare Endpoint 172.64.135.1
Tunnel health checks True
Rate Low
Type Request
Direction Bidirectional
Target Custom
Target address 192.168.125.1 (MX LAN Interface IP)
Turn on replay protection True
Automatic return routing True

Note

The same non-standard settings called out for tunnel 1 of 2 also apply to tunnel 2 of 2.

Obtain the IKE identity and pre-shared key after tunnel creation:

Attribute Value/Address
FQDN ID 0287844e9d<REDACTED>.ipsec.cloudflare.com
Pre-shared key Cloudflare-WAN-T2-PSK-1234!

Customer premise equipment: Cisco Meraki

Mode: Routed

WAN Interface (Port 1) Tunnel 1 of 2 Tunnel 2 of 2
WAN Interface WAN 1 WAN 1
IP Address 203.0.113.100/24 203.0.113.100/24
LAN Interface (Port 3) Tunnel 1 of 2 Tunnel 2 of 2
LAN Interface LAN LAN
IP Address 192.168.125.1/24 192.168.125.1/24

Note

Virtual Tunnel Interfaces (VTIs) cannot be configured on MX appliances.

Assumptions and constraints

Meraki implementation and compatibility notes

  • Firmware prerequisite: The minimum required firmware for this configuration is MX 19.2.7.
  • Hardware compatibility: Older Meraki hardware may be physically incapable of running 19.2.7. Route-Based VPN support is required for this architecture. Refer to Product firmware restrictions ↗︎ to determine whether your MX platform supports firmware release 19.2.7 or later.
  • Active/Standby configuration: Redundant tunnels associated with Non-Meraki VPN connections are Active/Standby. Both tunnels are established, but Meraki only routes traffic via the primary IPsec VPN peer and dynamically fails over to the secondary IPsec VPN peer based on tunnel monitoring probes.
  • Anycast and tunnel redundancy: Despite the Active/Standby nature of IPsec VPN tunnels on the MX platform, high availability is maintained at the network layer because the Cloudflare remote endpoint IPs are advertised via BGP anycast across the Cloudflare global network and provide inherent geographic and logical redundancy.
  • Route-Based VPN support: While often associated with specific cloud integrations, version 19.2.7 supports Route-Based IPsec VPN for third-party devices generally, including Cloudflare WAN.
  • Redundancy and Multi-Uplink: This documentation specifically covers Active/Standby tunnel configurations.
  • Multi-Uplink IPsec VPN: The Meraki Multi-Uplink IPsec VPN ↗︎ feature is outside the scope of this guide.
  • Anti-Replay Protection: Cloudflare recommends disabling Anti-Replay Protection for optimal performance with Cloudflare WAN. The Cisco Meraki MX platform does not permit administrators to disable this feature.
  • This is a known Meraki platform limitation.
  • In environments with high jitter or out-of-order packet delivery on the underlay (ISP network), this may cause intermittent packet drops on the MX side of the IPsec VPN tunnels.
  • MSS Clamping: Cloudflare recommends specific Maximum Segment Size (MSS) clamping values to account for IPsec overhead and prevent fragmentation.
  • The Meraki Dashboard does not provide a user-accessible field to modify the MSS clamping value for third-party VPN tunnels.
  • Customers must contact Meraki Technical Support to request a manual backend modification of the MSS value (approximately 1360; the value may vary) for the specific network or tunnel.
  • ISP scope: The provided configuration is validated for a single Internet Service Provider (ISP). The logic can be extended to accommodate redundant ISPs, but multi-homed configuration is outside the scope of this guide.

Cloudflare

  • This configuration requires the Unified Routing dataplane to support Automatic Return Routing.
  • You have already configured IPsec tunnels and static routes in the Cloudflare dashboard.
  • You have used the Cloudflare dashboard to obtain the local identifier (FQDN/hostname) and generate a pre-shared key for each IPsec tunnel.
  • You understand the importance of MSS clamping and adjusting it based on the traffic flows traversing the Cloudflare WAN IPsec tunnels.

Prerequisites: MX platform site-to-site VPN configuration

The following details from the Cloudflare configuration are required before proceeding with the Meraki configuration:

  • IPv4 interface address values (in Classless Inter-Domain Routing (CIDR) notation)
  • Cloudflare anycast IPs
  • Local ID (FQDN/hostname)
  • Pre-shared keys
  • Remote subnets

CF_WAN_TUN_01

Attribute Value/Address Meraki — Applies To Required to
IPv4 Interface Address 169.254.250.0/31 Private subnets Support Cloudflare tunnel health checks
Cloudflare Endpoint 162.159.135.1 Public IP or hostname Tunnel peer IP — primary IPsec peer
162.159.135.1 Remote ID IKE remote ID — primary IPsec peer
FQDN ID bf6c493d03<REDACTED>.ipsec.cloudflare.com Local ID IKE local ID — primary IPsec peer
Pre-Shared Key Cloudflare-WAN-T1-PSK-1234! Shared secret Shared secret — primary IPsec peer
Remote subnets 172.16.10.0/24, 172.16.11.0/24 Private subnets Add routes for east/west traffic flows

CF_WAN_TUN_02

Attribute Value/Address Meraki Setting Required to
IPv4 Interface Address 169.254.250.2/31 Private subnets Support Cloudflare tunnel health checks
Cloudflare Endpoint 172.64.135.1 Public IP or hostname Tunnel peer IP — secondary IPsec peer
172.64.135.1 Remote ID IKE remote ID — secondary IPsec peer
FQDN ID 0287844e9d<REDACTED>.ipsec.cloudflare.com Local ID IKE local ID — secondary IPsec peer
Pre-Shared Key Cloudflare-WAN-T2-PSK-1234! Shared secret Shared secret — secondary IPsec peer
Remote subnets 172.16.10.0/24, 172.16.11.0/24 Private subnets Add routes for east/west traffic flows

Remote subnets

In the MX platform, "Private subnets" refers to the remote networks the MX appliance routes through the IPsec tunnels.

This document assumes the following subnets are remote subnets:

  • 172.16.10.0/24
  • 172.16.11.0/24

Cloudflare

Authorize the Meraki tunnel health probe source IP

The MX platform uses tunnel monitoring to enable failover between primary and secondary IPsec VPN tunnels. Tunnel monitoring detects connectivity through the tunnels (not supported on BGP-enabled tunnels). Tunnel monitoring operates independently of Dead Peer Detection, which determines the status of the IPsec tunnels.

The tunnel health probes are used in addition to Dead Peer Detection to determine overall reachability of resources on the remote side of the IPsec tunnels.

Meraki reserves the IP address 192.0.2.3/32 (part of TEST-NET-1, defined in RFC 5737 ↗︎) as the source IP for tunnel monitor probes. Refer to Primary and secondary IPsec tunnels ↗︎ for details.

As 192.0.2.3/32 falls outside the traditional RFC 1918 ↗︎ address space, you must add it to the Unified Routing dataplane associated with your Cloudflare account.

Contact Cloudflare to request assistance with adding the internal_authorized_prefixes option to your account, with 192.0.2.3/32 included.

Cloudflare Gateway HTTP policy

Define an HTTP policy to permit the tunnel monitoring probe source IP address to reach the IP/URL (HTTP — port 80/tcp).

Note

The IP/URL is available from the Configure health checks section of the Meraki Dashboard (Security & SD-WAN > Site-to-site VPN > Configure health checks).

In the Cloudflare dashboard, go to Zero Trust > Traffic policies > Firewall policies > HTTP.

  1. Add a new rule.
  2. For Policy Name, enter Meraki Tunnel Health Checks - HTTP Policy.
  3. Build an expression of type Traffic.
  4. For Selector, enter Source Internal IP is 192.0.2.3.
  5. For Action, select Do Not Inspect.

Position this policy at or near the top of the HTTP policy rulebase.

Diagram: Meraki tunnel monitoring with Cloudflare WAN

The following diagram shows the traffic flow from the tunnel monitoring reserved IP (192.0.2.3/32) as it traverses the IPsec tunnels to Cloudflare WAN, then through Cloudflare Gateway as the requests egress to the Internet. The response path is fully symmetric.