If you've spent any time configuring user authentication on... Full Story
By Manny Fernandez
October 25, 2016
Cisco ACS 5.8 Automated Backups
Today I attempted to configure our ACS server to backup to our new SFTP server. I deployed the SFTP server using CentOS and ensured that it only allowed the the user to SFTP and not SSH (connections to the bash shell of my box).
useradd –m sftpbackup –s /sbin/nologin –g ftpaccess #(create user and assign to group) passwd sftpbackup #(set password for username) chown root /home/sftpbackup # (assign root owernship for the home diretory for chroot access) chmod 750 /home/sftpbackup #(modify permissions) mkdir /home/sftpbackup/backup #(create a backup directory for writing) chown sftpbackup:ftpaccess /home/sftpbackup/backup #(modify permissions for owner and group)
Setting Up ACS for Backup
After installing and configuring ACS (source for another blog post), I set up a a ‘Software Repository’. You can see in the image below:
1. Is the ‘Software Repository’ – This is where you define the SFTP server, the path, IP address and credentials to be used.
2. Scheduled Backups – Here you define the frequency of the backup and the specific ‘Software Repository’ to use.

We can now create a ‘Software Repository’

Here you can see that the protocol we are using is SFTP and the IP address of the server is 1.1.1.1. We can also see that there is a path for the backup of ‘/backup’. NOTE: If you use a space in the folder name you are going to need to escape the spaces. If you do not feel comfortable doing so, don’t use spaces.

Here we define what the prefix to the file will be, the encryption password to encrypt the backup file, the repository name, and finally the frequency.
This however did not work for me and I will add the troubleshooting steps I took.
NOTE: ACS DOES NOT LIKE PASSWORDS LONGER THAN 16 CHARACTERS
Clock Setting
Leave it to Cisco to not make the clock command like other devices. For this to work in my timezone, this is the commands I needed to type:
clock timezone EST clock set Oct 24 20:39:00 2016
Once you have your time squared away, it will restart the ACS services. To validate if the services are up or not, type
sh application status acs ACS role: PRIMARY Process 'database' running Process 'management' running Process 'runtime' running Process 'adclient' running Process 'ntpd' running Process 'view-database' running Process 'view-jobmanager' running Process 'view-alertmanager' running Process 'view-collector' running Process 'view-logprocessor' running
Importing Keys
Now that your time is in sync and your services are backup, I needed to import the key from my SFTP server. To do this:
crypto host_key add host 1.1.1.1 host key fingerprint added # Host 1.1.1.1 found: line 1 type RSA 2048 9e: <output removed> .121 (RSA)
After this I tested the backup and the world was a much brighter place.
monkey-acs-01/admin# acs backup monkey-acs-01 repository sftp.fakemonkey.com
Please enter backup encryption password [8-32 chars]:
Please enter the password again:
Calculating disk size for /opt/backup/backup-monkey-acs-01-161025-0025-1477355154
Total size of backup files are 9 M.
Max Size defined for backup files are 107051 M.
% backup in progress: Completing Backup…100% completed
ACS backup file ‘monkey-acs-01-161025-0025.tar.gpg’ successfully copied to repository ‘sftp.fakemonkey.com’
Recent posts
-
-
DNS is one of those technologies that quietly underpins... Full Story
-
BGP issues on FortiGate firewalls usually trace back to... Full Story
-
Every time your laptop talks to your router, a... Full Story
-
If you've spent any time configuring NAT on a... Full Story
-
If you have spent any time configuring firewall policies... Full Story
-
High availability on FortiGate is one of those features... Full Story
-
If you've configured SD-WAN on a FortiGate, you've almost... Full Story
-
FortiLink is the management protocol that turns a FortiSwitch... Full Story
-
FortiSwitches are pretty rock solid from Mean Time Between... Full Story
-
This is a quicky tip. Have you ever gone... Full Story
-
DNS is one of those quiet pieces of internet... Full Story
-
This article is an updated version of the previous... Full Story
-
You will add ns2 as a secondary (slave) BIND9... Full Story
-
In the process of deploying my lab, I needed... Full Story
-
RFC 8805, used to be known as Self-Correcting IP... Full Story
-
Years back, I wrote an article about certificate pinning. ... Full Story
-
FortiGates have the ability to send alerts to Microsoft... Full Story
-
In this post, I am going to walk through... Full Story
-
Troubleshooting VoIP on a FortiGate can feel like trying... Full Story
-
Prior to FortiOS 7.0, there were three commands to... Full Story
-
In this post, I am going to go over... Full Story
-
What we are going to do: We are going... Full Story
-
Choosing between FGCP (FortiGate Clustering Protocol) and FGSP (FortiGate... Full Story
-
Creating a VLAN on macOS (The "Pro" Move) A... Full Story
-
This blog post explores the logic behind how macOS... Full Story
-
Pretty Fly for a Wi-Fi Tell My Wi-Fi Love... Full Story
-
Part of my daily gig is creating BoMs (Bill-of-Materials)... Full Story
-
ICMP introduces several security risks, but careful filtering, rate... Full Story
-
The command diag debug application dhcps -1 enables full... Full Story
-
In the world of FortiOS, execute tac report is... Full Story
-
LLDP; What is it The Link Layer Discovery Protocol... Full Story
-
What it actually does When you run diagnose fdsm... Full Story
-
Monkey Bites are bite-sized, high-impact security insights designed for... Full Story
-
I have run macOS in macOS with Parallels but... Full Story
-
Don't be confused with my other FortiNAC posts where... Full Story
-
This is the third session in a multi-part article... Full Story
-
Today I was configuring key-based authentication on a FortiGate... Full Story
-
Netcat, often called the "Swiss Army knife" of networking,... Full Story
-
At its core, IEEE 802.1X is a network layer... Full Story
-
In case you did not see the previous FortiNAC... Full Story
-
This is our 5th session where we are going... Full Story
-
Now that we have Wireshark installed and somewhat configured,... Full Story
-
The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story
-
Overview FortiOS 8.0 introduces custom tags as a first-class... Full Story
-
These are two distinct mechanisms on FortiOS, and conflating... Full Story
-
Replacement messages are the pages and text blocks that... Full Story