6 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
PyFRC2G is a Python package that converts pfSense and OPNSense firewall rules into graphical flow diagrams. It automates the retrieval of firewall configurations via API, generates separate reports for each interface, and provides an optional integration with CISO Assistant for compliance documentation.
If you do, here's more
PyFRC2G is a Python package designed to convert firewall rules from pfSense and OPNSense into graphical flow diagrams. It focuses on two main goals: creating visual documentation and providing compliance evidence for IT security requirements. Users benefit from a single package that supports both firewall types, automatic detection of interfaces for OPNSense, and API-based alias mapping. The software generates separate CSV and PDF files for each interface, making it easier to manage and review firewall rules.
The tool employs smart change detection, regenerating graphs only when rules have changed, which optimizes performance. Graphical flow diagrams are created using Graphviz and include color coding to clearly differentiate between PASS, BLOCK, and disabled rules. PyFRC2G handles various rule types and ensures comprehensive coverage, including floating rules. It can also integrate with CISO Assistant to upload generated PDFs automatically, streamlining compliance tracking.
Installation requires Python 3.7 or higher and the Graphviz package, which can be installed on different operating systems using standard package managers. Configuration involves setting API credentials for both pfSense and OPNSense, along with specifying interfaces either automatically or manually. The main script connects to the firewall, retrieves necessary data, and generates the specified output files, including detailed flow diagrams that display rule actions, protocols, ports, and comments.
Questions about this article
No questions yet.