A Cisco IOS & IOS-XE configuration audit tool
Project description
Cisco Config Auditor
Based on Use Cisco IOS XE Hardening Guide and some opinionated best practices.
This script gives an overview of the hardening techniques that can be used to secure a Cisco network device. Security is not a one-layer thing, yet, it depends on multiple factors. If you harden your devices, then it is a good starting point that increases the overall security of the environment you manage.
Installation
Install from PyPi
$ pip install ciscoconfaudit
Clone repo, create a virtual environment, and install requirements.
macOS or Linux
$ git clone https://github.com/Tes3awy/cisco-config-auditor.git
$ cd auditor
$ python3 -m venv .venv --upgrade-deps
$ source .venv/bin/activate .
(.venv) $ python3 -m pip install -r requirements.txt
Windows
Note On Microsoft Windows, it may be required to enable the
Activate.ps1
script by setting the execution policy for the user.
You can do this by issuing the following PowerShell command:
PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
See About Execution Policies for more information.
In PowerShell
> git clone https://github.com/Tes3awy/cisco-config-auditor.git
> cd auditor
> python -m venv .venv --upgrade-deps
> .venv\Scripts\Activate.ps1 # Check
(.venv) > pip install -r requirements.txt
Usage
You can try out two examples in the repo.
(.venv) $ python3 online.py # parses config from a device (Uses netmiko)
(.venv) $ python3 offline.py # parses config from text file
Credits
This package was inspired by jonarm from cisco-ios-audit.
Author
Contibutions
You are welcome to contribute to this Cisco swiss-army knife.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ciscoconfaudit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce90f11062c5c8071fd98689e32a4bc2682e714f3f9691e5d930db7bc3ff052 |
|
MD5 | c442abb9362626d4beaf3221cb62651b |
|
BLAKE2b-256 | d7a3dd7f3b0d80929723081051c35544e3e4d0ca352d75daa1dc17db2f82ee11 |