plumbis Mon, 06/01/2009 - 21:31
User Badges:
  • Silver, 250 points or more

You could look into the RANCID network administrator software.

joro Wed, 05/30/2012 - 14:58
User Badges:

Hey Robin,

You are writing

"TFTP is convenient but NOT secure."

and at the same time you are keeping plain text login and enable passwords for a firewall in file


Do you have a clue how to do that backup via TFTP direct? I understand it's not secure but I don't provide a password.

Thank you.


Yeah, you can back it up via TFTP without an authentication challenge - that's not a problem. You can even build an ACL to limit the IP addresses that can perform a TFTP GET against the ASA (to pull the config). There are a number of scripts and tools that make backups of ASAs & PIXs using TFTP (or you could just modify the script I published depending on your comfort level in Expect)

The problem I had in my situation is that I couldn't trust the path to the device, and in the case of TFTP it can be vulnerable to a MITM. As you probably already know, once someone gets your device config in its entirety they can plan an attack of the device that is likely to succeed.

Keeping credentials in a file are not desirable, but out of all the systems used to perform the backup, the host running the script was the one I trusted the most.  There are ways to really secure that using tools (in both Expect and Shell scripts) to convert the credentials to a hash that is decrypted only when the script is run, I just haven't tied that in with my script yet.

joro Wed, 05/30/2012 - 15:54
User Badges:


I'm trying to find out how to do it via TFTP just to avoid keeping the password anywhere but in the device.

Any suggestions?

Thank you.


joro Wed, 05/30/2012 - 16:17
User Badges:

Hey Robin,

I don't have a problem to write pretty much any script.

The dark side for me is the ASA configuration and how exactly to make it accessible from a certain machine outside.

The document you point me to is saying everything about how to backup from inside ASA.

I guess ASA is not like the other IOS devices (this is the reason it doesn't run IOS) and there is no file which could be copied directly without first putting it in the flash as your script is doing.

I think this is the answer and that's the reason cannot be done with TFTP without first moving it to the flash.


This Discussion