Configuration backup and analysis tools for devices running pfSense and RouterOS
Project description
openct
Configuration backup and analysis* tools for devices running pfSense* and RouterOS.
* aspirational
Installation
Run as root
mkdir /opt/openct
cd /opt/openct
apt update
apt install python3.11 python3.11-venv
python3.11 -m venv .venv
. .venv/bin/activate
pip install pip --upgrade
python -m pip install openct
Setup
SSH Keys
- Create a key pair in the project root folder
- Copy the public key to the target routers
- Add the private key to the
config.ymlfile below
Creating a configuration file:
python -m openct.setup
Edit the configuration file:
nano config.yml
Datastore
mkdir -p datastore
touch datastore/datastore.yml
mkdir -p logs
Add the target routers to the datastore in the following format:
- "0.0.0.0"
- "10.10.10.10"
- "192.168.0.1
Create a script to make running easier
For example in run-openct.py:
#!/opt/openct/.venv/bin/python
import runpy
runpy.run_module(mod_name='openct')
Make it executable:
chmod +x run-openct.py
Then run it:
./run-openct.py
Contributing
- Submit bugs and feature requests, and help us verify as they are checked in
- Review source code changes
Feedback
License
Copyright (c) Weehooey Inc. All rights reserved.
Licensed under the GNU GPL v3.0 license.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openct-0.1.8.tar.gz.
File metadata
- Download URL: openct-0.1.8.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f58ff79624c565e5486c1beb9572c5f27b8903ec9a1e2790f07cb854f8910e03
|
|
| MD5 |
35f9f8a703c18ab43b88b180185a6d15
|
|
| BLAKE2b-256 |
fba94ba1e65a80001d11cc75920b5b689e053545618ad6a5c0dc093ba4ef888f
|
File details
Details for the file openct-0.1.8-py3-none-any.whl.
File metadata
- Download URL: openct-0.1.8-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e0e7cb251d8bd35e18b042ab2febae51f04c50d90547261947ac9811216058
|
|
| MD5 |
2cdb97badecc237ab7a96f274212aad1
|
|
| BLAKE2b-256 |
44a95110a82935c793d1ecfa3e1bbcca3fbc1b9f9a9794ca54470ed68e93d4c4
|