This project is a collection of Sophos XG/XGS Firewall web policy exclusions for common Microsoft 365 services. The most common issue this solves is errors when attempting to download Office updates or install new software with the C2R client. Update/Install files are sent as .CABs, which Sophos will block in the default protection rules as "System Files" under the "Risky Downloads" policy. These exclusions also ensure other common 365 resources are allowed.
Sophos has published an import, but they had broken the rules up into 145 individual exclusion entries, all disabled, which not only polluted the list of exclusions but was also time consuming to individually enable. This edited import file has trimmed out legacy/retired/uncommon services, and consolidated all excluded Regex URL patterns to a total of four top level entries.
To import this file to your Sophos XG/XGS firewall, follow this guide. This guide was created with information current with SFOS v19.5
You must have a Sophos XG firewall with licensing for Web Protection. It is recommended to take a backup of your existing configuration before making changes
- Download the
SophosFixed365Exclusions.tar
file from Releases. Do not extract it - Launch the SFOS console as an administrator
- Navigate to
Backup & Firmware
in the left nav bar under "SYSTEM" - Select the
Import Export
tab - Click Choose File and browse for the
SophosFixed365Exclusions.tar
file - Select and Import the file
The import will add four exclusions containing many Regex URL matching entries. These imported rules will be imported as Disabled. You must complete the following steps to enable them:
- In SFOS, navigate to
Web
in the left navbar under "PROTECT" - Select the
Exceptions
tab - Enable the following exceptions by toggling the On/Off switch on the right:
- O365 - 1 (Exchange)
- O365 - 2 (Collaboration - Allow)
- O365 - 3 (Azure/Microsoft365 General - Allow)
- O365 - 4 (Storage)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU GPLv3 License. See LICENSE
for more information.
Brandon Martinez - eTop Technology
brandon@etoptechnology.com
Giga#4634
Project Link: https://github.com/etopbrandon/Sophos365Exclusions