Giter VIP home page Giter VIP logo

auto-tunnel-meraki's Introduction

Cisco Umbrella Hackathon Wining Solution

Test Image 1

Overview

This toolkit enables Meraki and Umbrella customers to streamline always on connectivity from a Cisco Meraki Branch site to Cisco Umbrella SIG. Extending secure and automated connectivity to the Umbrella Cloud Security Service.

Architecture

Test Image 1

Deployment Steps

  1. Obtain Cisco Meraki API Key and Org Name

    a) The API Key and Org Name will be needed for the script to configure your Meraki device.

    b) To view your Organization name navigate to Organization > Settings, the name will be displayed at the top. (As seen below)

    Test Image 1

    c) For access to the API, first enable the API for your organization.

    d) Navigate to Organization > Settings > Dashboard API access

    e) Enable the API

    Test Image 1

    f) Navigate to the my profile page and generate an API key

    Test Image 1

    Note: The API key is associated with a Dashboard administrator account.  

  2. Obtain Umbrella Management API Key and Secret

    a) Download the Mgmt API keys from Umbrella Dashboard.

    b) Login to Umbrella Dashboard, chose the Org

    c) Navigate to Admin->API Keys menu on Left hand side.

    d) Once there click on ‘Umbrella Management’. You may need to refresh the keys to get a new set.

    e) If you don’t find ‘Umbrella Management’ then click on ‘Create’ to create one.

    Note: You may follow the directions - https://docs.umbrella.com/umbrella-api/reference#rateauthentication-and-key-management-for-the-umbrella-api

  3. Download Meraki-Tunnel.py file and set environment variables for the Meraki API key and Org name along with the Umbrella Org ID and Mangagement API information.

export MERAKI_API_KEY=your_meraki_api_key_here
export MERAKI_ORG_NAME="Your Meraki Org Name"
export UMBRELLA_API_KEY=your_umbrella_api_key_here
export UMBRELLA_API_SECRET=your_umbrella_api_secret_here
export UMBRELLA_ORG_ID=your_umbrella_organization_id_here

Note: The toolkit also contains a firmware validation checker. One of the requirements for the solution is that the branch MX must be on firmware 15 or greater. This is due to the fact that connectivity to Umbrella SIG requires IKEv2 which is only supported in version 15 firmware. Checks have been placed in the script to ensure sites are on the appropriate firmware.

Deploying to Azure

To deploy the Azure Function, click on the deploy to Azure buttons below:

Deploy to Azure

When logged in to the Azure Portal, fill out the required parameters and click Review + Create.

Note: The Function App Name should not contain any special characters other than “-“. The function app also needs to be unique globally within Azure, so please use a name that is unique to your organization.

Tip: More information on each of the required parameters can be found by hovering over the icon in the Azure Portal.

Example Configuration

Test Image 1

For Azure deployment code please refer to: https://github.com/MitchellGulledge/UmbrakiServerless

Cisco Meraki Workflow

Initially, there will be no tagged Meraki networks so the script will sleep and perform the same GET to obtain any networks with the relevant tag. In order to deploy a new branch, the user would navigate to Organization > Overview and select the checkbox next to the network that you wish to connect.

Test Image 1

Once the network is tagged appropriately, connectivity is then automatically established. A customer VPN tunnel in the Umbrella dashboard is created with a matching network name to that of the Meraki branch. Site1 will be named Site1 in both the Umbrella and Meraki dashboards. Additionally, a site to site VPN will appear on the site to site VPN page. In order to properly segment the VPN configuration to a specific site instead of the entire org, the network tag from the Organization Overview page you entered for the network will be seen under availability on the far right of the VPN config. This ensures proper segmentation and that the VPN config is not bound to all networks. (As seen below)

Test Image 1

The script picks the closest datacenter based on the the closest geographic distance from the public IP. This does not solve the use case for SD WAN, however SD WAN to Umbrella is in the Meraki/Umbrella roadmap.

Note: The script also assumes VPN is already turned on for the specific MX. For the tunnel to come up, interesting traffic needs to be generated.

Once interesting traffic has been generated, the tunnel will appear up in both the Meraki and Umbrella Dashboards:

Test Image 1

Test Image 1

Additionally, in the Meraki Event Log, a event with a timestamp is generated when the tunnel becomes established:

Test Image 1

To troubleshoot what policy you are hitting, use this debugger link:

http://policy-debug.checkumbrella.com/

Additional References

https://documentation.meraki.com/zGeneral_Administration/Organizations_and_Networks/Organization_Menu/Manage_Tags

https://documentation.meraki.com/zGeneral_Administration/Support/Contacting_Support

auto-tunnel-meraki's People

Contributors

joshand avatar mitchellgulledge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

joshand

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.