Add VPN Exclusions

Installation

Clone Repo and Go to Project Folder

git clone https://github.com/nooneischgl/merakiVPNExclusions.git

cd merakiVPNExclusions

Create venv virtual enviorment

python -m venv .venv

Install Python Dependencies

pip install -r requirements.txt

Activate venv

PowerShell / Windows

.venv/Scripts/Activate.ps1

macOS / Linux

source .venv/bin/activate

Set API Key

PowerShell / Windows

$Env:MERAKI_DASHBOARD_API_KEY = "APIKeyHere"

macOS / Linux

export MERAKI_DASHBOARD_API_KEY=APIKeyHere

Usage

Arguments are case sensitive

python addVPNExclusions.py -orgID <MerakiOrgID> [-networkName <MerakiNetworkName> | -networkTag <MerakiNetworkTag> | -templateName <MerakiTemplateName>] -exclusionsList <exclusionlistFilename.csv>
  • Provide your Meraki Org ID with -orgID
  • Select which network, network Tag or template you want to be configured with the following Args
    • -networkName
    • -networkTag
    • -templateName
  • Provide what VPN exclusions you want configured using the a CSV file see the provided example file exclusionListExample.csv -exclusionsList

Reminders / Gottchas

  • This script does not append put fully replaces any exisiting VPN Exclusions
  • Only IPv4 IPs are allowed
  • Major Applications is not currently supported by this script
View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.