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
Help
# Display help
netgate-xml-to-xlsx --help
Sanitize Before Use
Netgate configuration files contains sensitive information. Sanitize the files before processing. Only sanitized files can be processed. The original (unsanitized) file is deleted.
# Sanitize Netgate configuration file(s) for review.
netgate-xml-to-xlsx --sanitize firewall-config.xml
netgate-xml-to-xlsx --sanitize dir/*
Convert to Spreadsheet
- By default, output is sent to the
./output
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. - Only sanitized files can generate a spreadsheet output.
# 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
Hashes for netgate-xml-to-xlsx-0.9.5a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c3dd61e19b3c956b726ccc833a352dd804d766f1e0f500c91db6d78203e191 |
|
MD5 | 5298d35f42a5e2cedbe9d879708f1718 |
|
BLAKE2b-256 | 7ccbd8f03059b66dd06f674433c0647ca2c0061c3043ec800805810e4763b08a |
Hashes for netgate_xml_to_xlsx-0.9.5a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 477103f84ac7b06f31475eb6b700105c75b0fc80f626f61dc5291301e3861a90 |
|
MD5 | b823a7028c5d2c07ca702f75c4e5473a |
|
BLAKE2b-256 | 9b6b523107e90ce4347d15a3b95b33080c007dd1005c4b5878aeb977389d4171 |