This is an application for automating the addition of firewall rules to the Cisco FMC in preparation for a Gemini deployment.
Details are fed to adder via command-line flags, and the app parses the arguments given, or searches our Netbox SOT, in order to automatically insert the correct IP addresses into the correct access-list entries.
-
--site expects an argument of any number of five-letter WFM store codes. Adder will search netbox for the matching sites and add the available DIA IP addresses to the firewalls for you. The site must be built in netbox for this to work, since the app is looking for specific interfaces on the WR-1 and WR-2 devices.
-
--ip takes one or more host IP addresses, without subnet masks, and attempts to add them to the firewalls. You can mix and match this option with the --site option, now!
-
--deploy takes no arguments, but when passed to adder will trigger an attempt for the FMC to deploy the updated rules to the ORD and DFW firewalls. If passed in conjunction with IPs or a site name, it will add the new IPs first. If passed to adder with no other arguments, it will simply attempt to deploy whatever pending changes are on the FMC to DFW/ORD.
-
--rollback is a special flag for undoing changes to the FMC. It should be mixed with any other options. When passed to adder with no arguments, all available backup files will be presented to the user, marked with timestamps and UUIDs. If a UUID is passed as an argument to the --rollback flag, then the object group identified by that backup file will be completely overwritten by the data in the backup file. NOT IMPLEMENTED YET. Contact Bobby for help with rolling back changes via API
-
--target overrides the destination object group for the automated update. By default the "Store-DIA-PROD" object group is the one updated on the FMC. If a string is fed as an argument to --target the app will attempt to find that object group and update it instead.
- Add the DIA IP addresses for the swqry store to the FMC and deploy the changes to the DFW/ORD Firewalls:
adder --site swqry --deploy
- Add two IP addresses to the 'adder_test' object group, but don't deploy anything:
adder --ip 169.254.100.100 169.254.200.200 --target adder_test
- Add two IP addresses and two site codes, and then deploy them all:
adder --ip 169.254.100.210 169.254.100.220 --site swqry swatx --deploy
- token: Your API token for netbox. If this is not here, the script will prompt for it. Do not put your API token on a shared install!
- url: the URL of the netbox instance for source of truth
- host: The hostname of the firesight FMC
- dfw_ftd: The hostname of the DFW firepower cluster
- ord_ftd: The hostname of the ORD firepower cluster
- The format of this config file assumes everything is a string, so there's no need to put quotes around any configuration fields.
- Automatic update of SROS routers
- Automatic update of Salt-Master firewalls