How mbaniadam/firewall-auto-add-or-remove-objects works
This is a command-line firewall administration tool. An operator selects an action; the script uses IP_LIST.csv and inventory.yml to validate requested addresses and apply changes through supported vendor interfaces, or to search Fortinet policies and report matches. The principal stages are input, validation, vendor-specific operations, and policy lookup. The sampled source is one large, partially excerpted script, so the graph keeps implementation nodes on that file and omits uncertain internal call links; README-documented workflow links are cited to the README.
Main entry points: multivendor_add_remove_objects.py Interactive CLI · IP_LIST.csv IP List · inventory.yml Firewall Inventory
Components 12
Inputs and Validation
- Interactive CLI
multivendor_add_remove_objects.py - IP List
IP_LIST.csv - Firewall Inventory
inventory.yml - IP Validation
multivendor_add_remove_objects.py
Address Group Changes
- Juniper JunOS SSH
multivendor_add_remove_objects.py - Juniper ScreenOS SSH
multivendor_add_remove_objects.py - FortiGate API Changes
multivendor_add_remove_objects.py - Sophos API Changes
multivendor_add_remove_objects.py
Policy Search
- Fortinet Policy Search
multivendor_add_remove_objects.py - Policy Results
Other components
- Operator
- Configured Firewalls
Connections 17
- Operator → Interactive CLI: runs and selects
README.md - Interactive CLI → IP List: reads addresses
README.md - Interactive CLI → Firewall Inventory: reads credentials
README.md - Interactive CLI → IP Validation: validates IPs
README.md - Interactive CLI → Juniper JunOS SSH: dispatches changes
multivendor_add_remove_objects.py - Interactive CLI → Juniper ScreenOS SSH: dispatches changes
multivendor_add_remove_objects.py - Interactive CLI → FortiGate API Changes: dispatches changes
multivendor_add_remove_objects.py - Interactive CLI → Sophos API Changes: dispatches changes
multivendor_add_remove_objects.py - Juniper JunOS SSH → Configured Firewalls: configures by SSH
README.md - Juniper ScreenOS SSH → Configured Firewalls: configures by SSH
README.md - FortiGate API Changes → Configured Firewalls: updates by API
README.md - Sophos API Changes → Configured Firewalls: updates by API
README.md - Interactive CLI → Fortinet Policy Search: selects lookup
README.md - Fortinet Policy Search → IP List: reads addresses
README.md - Fortinet Policy Search → Firewall Inventory: gets API settings
README.md - Fortinet Policy Search → Configured Firewalls: requests policies
README.md - Fortinet Policy Search → Policy Results: writes matches
multivendor_add_remove_objects.py