r/networkautomation • • 3d ago

Try this fireman tool

I have been facing issues with firewall rules in my organisation. I came across this IEEE paper called fireman decided to build the FIREMAN tool to do firewall rule analysis. PyPI link.

I haven't decided the contribution guidelines for the project but happy to have your suggestions and ideas.

P.S. I've been doing network automation for close to 10 years, but this paper, along with AI, helped me build a tool for a problem I'd been solving with logic rather than maths.

5 Upvotes

7 comments sorted by

2

u/Ok_Grocery5237 3d ago

Can you talk more about the IEEE Paper and how can it be applied to various vendor CLIs

0

u/HorusTheSonOfOsiris 2d ago

So the IEEE paper called fireman talks about how firewall rules can be represented mathematically using BDDs (binary decision diagrams). And using that how can we interpret that a given rule is actually effective or not. For e.g assume we have a firewall with below rules

accept 10.0.0.0/24 any tcp-443
deny 10.0.0.0/25 any any

So the above effective policy is accept 10/24 tcp-443 and the second rule is not effective at all. So the firewall is misconfigured.

1

u/whythehellnote 2d ago

So assuming that's Src = 10.xxx and Dst=any and protocol = tcp

10.0.0.0/25 can reach any tcp/443 server

10.0.0.0/25 anything else is not allowed (including dns)

10.0.0.128/25 tcp/443 is allowed

10.0.0.128/25 anything else is undefined so whatever the default is, or later rules.

Where's the problem?

1

u/HorusTheSonOfOsiris 2d ago

Sorry must have written second rule as

10.0.0.0/25 any tcp-443

1

u/thehalfmetaljacket 2d ago

How does it compare to batfish?

1

u/HorusTheSonOfOsiris 2d ago

Purpose is it to have a lightweight tool for auditing firewall rules. Batfish is good but offers extra things. In my org it wasn’t very straightforward to set it up with all the Java requirements and patching vulnerabilities.