This is a fork of https://github.com/TheSmashy/O365Whitlist
DNS entries were sourced from Microsoft https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide
You should have python3 installed. If you don't, go get it.
To install the O365 Whitelist
git clone https://github.com/TheSmashy/O365Whitlist.git
sudo python3 O365Whitlist/scripts/whitelist.py
Uninstall
sudo python3 O365Whitlist/scripts/uninstall.py