Skip to content

Weehooey/openct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylint pytest

openct

Configuration backup and analysis* tools for devices running pfSense* and RouterOS.

* aspirational

Installation

pipx

pipx install openct

pip

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

From sources

git clone https://github.com/weehooey/openct
cd openct
poetry install

Setup

Creating a configuration file:

Installed with pipx

openct-setup

From sources or installed with pip

python -m openct.setup

Edit the configuration file:

nano config.yml

SSH Keys

  1. Create a key pair in the project root folder
  2. Copy the public key to the target routers
  3. Add the private key to the config.yml file

Datastore

mkdir -p datastore
touch datastore/datastore.yml

Add the target routers to the datastore in the following format:

- "0.0.0.0"
- "10.10.10.10"
- "192.168.0.1

Logs

mkdir -p logs

Usage

openct

Arguments:

  • --root root directory for the program (default ".")
  • --config path to the config file (default "./config.yml")

Contributing

Feedback

License

Copyright (c) Weehooey Inc. All rights reserved.

Licensed under the GNU GPL v3.0 license.

About

Configuration backup and analysis tools for devices running pfSense and RouterOS

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published