Translate Netgate firewall rules to spreadsheet for review.
Project description
Netgate Firewall Converter
The netgate-xml-to-xlsx
converts a standard Netgate firewall .xml configuration file to an .xlsx spreadsheet with multiple tabs.
- Supports Python 3.10+.
- This is an alpha version tested on a limited number of firewall files.
- The specific spreadsheet tabs implemented address our (ASI's) immediate firewall review needs.
- Tested only on Netgate firewall version 21.x files.
Installation
Recommend installing this in a virtual environment.
python -m pip install netgate-xml-to-xlsx
Once installed, the netgate-xml-to-xlsx
command is available on your path.
Usage
- By default, output is sent to the current directory.
- Use the
--output-dir
parameter to set a specific output directory. - The output filename is based on the
hostname
anddomain
elements of the XMLsystem
element.
# Display help
netgate-xml-to-xlsx --help
# Sanitize a Netgate configuration file for review.
netgate-xml-to-xlsx --sanitize firewall-config.xml
# Convert a Netgate firewall configuration file.
netgate-xml-to-xlsx firewall-config.xml
# Convert all files in a directory.
netgate-xml-to-xlsx ../source/*-sanitized.xml
Notes
Using flakeheaven
The large collection of flakeheaven plugins is a bit overboard while I continue to find the best mixture of plugins that work best for my projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for netgate-xml-to-xlsx-0.9.3a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78c27f28f1021047d3f4152180ebeadb7be574c2f01b4cd19b36e5afaf4eff0 |
|
MD5 | 95a5ec51364e7658cdb46856d2dd86cd |
|
BLAKE2b-256 | 4b38bf449d823a01969ecda1e2e31803dc38cc1380cd1f7614ac90a7ed13fc42 |
Close
Hashes for netgate_xml_to_xlsx-0.9.3a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f5dca345f5951186dfef2db84dd35070383ffa841073b27f4c6e61e4fc3710 |
|
MD5 | dcac592918b3e632f0cbedb862da8fdb |
|
BLAKE2b-256 | f96c4eb5b745e781dd97cce78b191099f9f2cc84cd124780dc3ac6c87bc810b8 |