Giter Site home page Giter Site logo

mrandri / ciscoasa-office365 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shrug666/ciscoasa-office365

0.0 2.0 0.0 20 KB

A python script which pulls the latest Office365 IP list from Microsoft's website and creates a text file with Cisco ASA object groups containing the IP addresses and subnets.

License: GNU General Public License v3.0

Python 100.00%

ciscoasa-office365's Introduction

CiscoASA-Office365

A python script which pulls the latest Office365 IP list from Microsoft's website and creates a text file with Cisco ASA object groups containing the IP addresses and subnets.

The script downloads the XML list from https://support.office.com/en-gb/article/Office-365-URLs-and-IP-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2?ui=en-US&rs=en-GB&ad=GB. Each Product is put into an object group and the object groups are collected in a group object called "MS_SUBNETS" Just reference "MS_SUBNETS" in your outbound ACL and it should allow all subnets. You can delete products groups from the resultant text file or edit the python script to put logic around "product.attrib['name']" and automatically filter the products you need.

I am by no means a python expert so the script may seem inelegant or kludgy but it gets the job done.

The script could easily be edited to work on other firewalls or routers such as Cisco ISR, Juniper SRXs or Vyatta/vyos routers. Just edit line 58 into the appropriate format for your device. If you don’t want it to print to screen, comment out line 43.

ciscoasa-office365's People

Contributors

shrug666 avatar

Watchers

James Cloos 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.