PyFRC2G icon indicating copy to clipboard operation
PyFRC2G copied to clipboard

Preserve rule order for documentation

Open vyarovoy-c2 opened this issue 10 months ago • 5 comments

Would it be possible to add a variable to the config to preserve the interfaces' rule order? This is helpful for preserving the logic of the flow of rulesets that have block rules.

Example rule:

  1. block access to private networks
  2. allow access to any

This rule flow blocks access to internal networks on other interfaces but allows access to the internet.

vyarovoy-c2 avatar Jan 27 '26 10:01 vyarovoy-c2

@olivierb46 Yes we need something like that too. Export the graphs based on the rules on each interface as is, from the top - down order

MichalisDBA avatar Jan 27 '26 14:01 MichalisDBA

Hi,

I’ve already thought about this, but I’m concerned it might reduce the readability of the diagrams. The goal here is not to perform a configuration check, but rather a compliance check.

I’m not closing this feature request, but I need some time to think it through and run a few tests. Thanks for your understanding 🙂

olivierb46 avatar Jan 30 '26 06:01 olivierb46

Hello,

Yea, it will definitely make the readability much much worse. I meant to add it as an on/off option (by default off), sorry if i wasnt clear enough! The purpose for the request was to be able to easily dump all rules in their order for compliance check requests. Thanks for your time!

vyarovoy-c2 avatar Jan 30 '26 10:01 vyarovoy-c2

Look to the PR of matiasAS and with a little Webserver, which can be exposed to 443 to authorized Nets, you can address it. I would love to see that, having both Options, Config Check and Compliance Check. Second, the Harding makes also sense, and I would add a feature request: adding more than just one Firefall to it, each gets its own file repo, and if you consider to attach a Webserver (Personally I prefer Traefik over NGINX, you can filter them there. I am willingly to add Dev Resources to it beginning of may 26, if you can need some help. BTW. I never heard of CISO - until now. Also nice. Gonna Review and probably use it.

pvyswiss avatar Feb 25 '26 09:02 pvyswiss

Hi,

I've added the rule order numbers for the firewall. By default, the rules are retrieved in order from the CSV files, but I had to reorder them by interface in the global CSV file. I added the rule order numbers in the destination labels. I still need to work on the display order with Graphviz because the rules are listed in descending order. However, I won't be able to show the exact order, as otherwise, we would end up crossing the flows, making the diagrams unreadable.

Thank you for your patience.

olivierb46 avatar Mar 01 '26 11:03 olivierb46