Forum Discussion

teoiovine's avatar
teoiovine
Icon for Cirrus rankCirrus
Sep 16, 2024

Microsoft 365 IP Steering python script

Hello! Hola!

I have created a small and rudimentary script that generates a datagroup with MS 365 IPv4 and v6 addresses to be used by an iRule or policy.

There are other scripts that solve this same issue but either they were:

  • based on iRulesLX, which forces you to enable iRuleLX only for this, and made me run into issues when upgrading (memory table got filled with nonsense)
  • based on the XML version of the list, which MS changed to a JSON file.

This script is a super simple bash script that calls another super simple python file, and a couple of helper files.

The biggest To Do are:

  • Add a more secure approach to password usage. Right now, it is stored in a parameters file locked away with permissions. There should be a better way.
  • Add support for URLs.

You can find the contents here: https://github.com/teoiovine-novared/fetch-office365/tree/main

 

I appreciate advice, (constructive) criticism and questions all the same!

Thank you for your time.

No RepliesBe the first to reply