Giter VIP home page Giter VIP logo

meraki_mx_converter's Introduction

Meraki MX Converter

Meraki MX Converter - Import ASA config files and automatically adapt rules to the target MX. This script will parse through an existing ASA config and generate Meraki MX compatible FW rules. The script supports objects(network/service). It'll build iterative or multi-source/multi-destination L3 based rules. It'll then configure the target MX network with the ruleset mapping to the new interfaces.

ASA RULES

Steps

  1. place config files in local directory (raw output from 'show run' on the ASA)
  2. Create a new MX network in the Meraki Dashboard
  3. Enable "Use VLANs" under "Addressing & Vlans" (it'll error out if you don't do this!)
  4. Create interfaces (vlan, ip and subnet) in that new network (these should match interfaces VLAN-ID in the config file)
  5. For step#4, the IP/subnets do not have to match, just the VLAN-ID. The script will auto-map the new IP/subnet to the ruleset
  6. Edit "acl_list.txt" this file should contain the names of every ACL rule you want to process
  7. RUN THIS ON A TEST NETWORK FIRST! This re-writes ALL the rules and anything currently in the rules will be lost.
  8. Run the commandline "python3 mx_import.py -k <key> -o <org> -n <networkID> -c command <ASA CONFIG FILE>" -commands supported "write", "clear" and "test". Test is default. Clear will wipe the FW rules.
  9. After the script runs, validate the rules have ported correctly. The comments section will hold the original ACL rule to compare

Requirements

  1. python 3.x
  2. meraki SDK for python (https://developer.cisco.com/meraki/api/#/python/getting-started)
  3. install python packages ('pip3 install -r requirements.txt')

Known caveats:

-limitations on source addresses rules, you can only import a rule if the source address/subnet exists on the target MX. The script will omit subnets for which it doesn't have a local interface or default route. -test it first

Example Output

output

meraki_mx_converter's People

Contributors

wifiguru10 avatar

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.