Intriguing Problems

Exploring the wonders of life and IT

RANCID and MultiContext Firewalls —

I have deployed RANCID, a popular open-source network device config backup utility, in our environment. It works great especially when configured to svnsync to a master repository. The recent trouble I have found is RANCID doesnt support multi-context firewalls. There is no way to configure RANCID to detect multi-context mode, go to each context and download the config. Changing the Firewall so that each context has an admin address is seriously not going to work. So my only resolution was to create a script.

The script works similar to RANCID:

  1. Verify device connectivity
  2. Check to see if device is in multimode
  3. Create a list of devices in the pool
  4. Create a list of Contexts to copy
  5. Gather the system configs from each server in the pool
  6. Gather the Context Configs that are found on the the firewalls. (These dont have to be grabbed from each device as in they should be set up in an active/active or active/standby configuration)
  7. Check to see if config exists in directory
    • If No, copy the files to the DIR, commit to SVN
    • If Yes, Diff the files, If different, copy to DIR, commit to SVN, else nothing
  8. Email changes if DIFF is positive and write to log

Presently this is the best way for me to do this. I am working on how to update RANCID, but for times sake I cant spend it hacking it to make it work for me right now. I will update with the actual script once I am finished.


Categorised as: Network Administration


3 Comments

  1. Jesse House says:

    This is something that I am going to have to figure out as well…

    Let me know how it goes.

  2. J.C.Gaston Sanchez says:

    i’m very interested on the same subject, have you made any advances on this can I help with this ?

  3. The Fraser says:

    Actually there is something better out there that we use. I have to update my post but using NetworkAuthority Inventory is the rancid replacement. It used to be called ziptie. Good stuff

    http://inventory.alterpoint.com

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>