Site-to-site VPN configuration in Meraki appliances enables secure connectivity between multiple network locations through encrypted tunnels over the internet. This functionality supports hub-and-spoke, mesh, and custom VPN topologies for connecting branch offices, data centers, and remote sites with centralized management and automatic failover capabilities. Site-to-site VPN is essential for organizations requiring secure inter-site connectivity, centralized resource access, and scalable network expansion while maintaining security and performance across distributed locations.
Example-1: The example below demonstrates site-to-site VPN configuration.
This configuration establishes secure connectivity between distributed network locations through encrypted VPN tunnels. The example includes VPN modes (hub/spoke/mesh), subnet definitions, and connectivity settings for inter-site communication.
This configuration establishes a site-to-site VPN with “mode: hub” designating this appliance as a central hub for spoke sites to connect to, while “subnets” defines which local networks participate in VPN connectivity using “local_subnet” addresses and “use_vpn: true” to enable VPN access. The configuration includes both a static subnet (192.168.20.0/24) and an environmental variable subnet (hub_server_subnet) for flexible deployment, with commented “subnet_nat” option requiring Meraki Support enablement for NAT translation capabilities. This hub configuration enables centralized connectivity where spoke sites can access hub resources and communicate through the hub appliance.
meraki:
domains:
- name: !envdomain
administrator:
name: !envorg_admin
organizations:
- name: !envorg
networks:
- name: !envnetwork_name
product_types:
- appliance
- switch
- wireless
- camera
- sensor
- cellularGateway
appliance:
vpn_site_to_site_vpn:
mode: hub
# Site-to-Site VPN Translation has to be enabled by Meraki Support
# for this setting to work.
# Otherwise, "VPN subnet translation is not supported for this network" is returned.
# subnet_nat: True
subnets:
- local_subnet: "192.168.20.0/24"
use_vpn: true
- local_subnet: "192.18.39.0/24"
use_vpn: false
Note: When vpn_site_to_site_vpn is enabled, subnets should always be defined with use_vpn set to either true or false. Removing or omitting a specific subnet from the subnets list will not alter the VPN participation state for that subnet.