Code Monkey home page Code Monkey logo

batfish-ansible-dual-tier-fw-demo's Introduction

Introduction

This repo contains the code, templates and playbooks that accompanies the:
Hands-on Guide to Multi-Tiered Firewall Changes with Ansible and Batfish

Installation

Repo

git clone https://github.com/rickdonato/batfish-ansible-dual-tier-fw-demo
cd batfish-ansible-dual-tier-fw-demo

Create VirtualEnv

make add-venv-py3.6
source venv/bin/activate

VIRL topology

To spin up the VIRL topology run the command:

make start-virl-topology

Any issues stop/remove topology from VIRL UWM UI, and remove the id file via rm .virl/*/id.

Repo Layout


├── ansible
│   ├── ansible.cfg
│   ├── data
│   │   ├── bf_facts
│   │   │   ├── expected
│   │   │   │   ├── db.yml
│   │   │   │   ├── fw1.yml
│   │   │   │   ├── fw2.yml
│   │   │   │   └── websrv.yml
│   │   │   └── extract
│   │   │       ├── db.yml
│   │   │       ├── fw1.yml
│   │   │       ├── fw2.yml
│   │   │       └── websrv.yml
│   │   ├── snapshots
│   │   │   └── snapshot
│   │   │       ├── configs
│   │   │       │   ├── fw1.cfg
│   │   │       │   └── fw2.cfg
│   │   │       ├── hosts
│   │   │       │   ├── db.json
│   │   │       │   └── websrv.json
│   │   │       └── iptables
│   │   │           ├── db.iptables
│   │   │           └── websrv.iptables
│   │   └── templates
│   │       └── hosts.j2
│   ├── inventory
│   │   └── hosts
│   └── playbooks
│       ├── bf_gather_validate_facts.yml
│       ├── bf_init_snapshot.yml
│       ├── bf_validate_acls_flows.yml
│       ├── bf_validate_snapshot.yml
│       ├── create_bf_snapshot.yml
│       └── push_config.yml
├── Makefile
├── README.md
├── requirements.txt
└── topology.virl

Note: The playbooks that use the Batfish modules are named bf_xxxxxx.yml.

Caveats

  • VIRL topology - Cisco ASA requires a new key pair to be created on each boot. Therefore crypto key generate rsa general-keys modulus 2048 noconfirm is added to the configuration. This command however is removed if you perform an "extract configs" from within VIRL.

batfish-ansible-dual-tier-fw-demo's People

Contributors

dependabot[bot] avatar rickdonato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.