PowerShell module to interact with Sophos SG Firewall throug Sophos RestApi.
My initial motivation was to improve the way I manage Sophos Firewall SG during infrastructure deployement. I needed a way to add Host Objects and Packet Filter rules in the same way I create VM and services. This module enable Network automation from PowerShell on Sophos SG Firewall.
Contributions are welcome via pull requests and issues. Please see our contributing guide for more details
- Download the repository ()
- Unblock the zip file
- Extract the folder to a module path (e.g. $home\Documents\WindowsPowerShell\Modules)
- Create Object (Host, Dns Host, Network, Range, interface), packetfilters rules (Nat, Firewall) and Routing from your PowerShell Script enabling infrastructure deployement by code.
- Delegate object creation to non network administration
- Enable versionning by using script and git instead of traditional click and forget approach
- Explore Sophos SG internal API
- PowerShell v5 (not tested yet on PowerShell 6 core)
- Sophos SG UTM 4.908 and newer
- A valid certificate on the client computer (the module do not deal yet with invalide certificate)