A small collection of tools for generating and importing peering information through python scripts.
- SystemD (soon openrc compatible as well)
- Python >3.8
- cjdns (for installing help see
cjdns-bootstrap.sh)
On your terminal, go!
Either from:
- github
git clone https://github.com/kaotisk-hund/python-cjdns-peering-tools.git
- cjdns
git clone http://git.kaotisk-hund.com/kaotisk/python-cjdns-peering-tools.git
and then change directory to the cloned repository:
cd python-cjdns-peering-tools
The following script is going to either generate or clean off comments your
configuration file, execute the python script appendPeers.py, which will add
peers.json to your file (cjdroute.conf) and install to default place (/etc/).
It also restarts cjdns for the configuration to be applied.
sudo ./gen.sh
Configure a username and a password for a cjdns peer to connect with you. The
output file is stored at peer_info_generated.json.
sudo ./peer_info_generate.sh
You can now open peer_info_generated.json and edit the IP before sending to
your new peer so it matches your public one.
It's the script that gets a cjdroute.conf and peers.json to append IP4 peers
to configuration file.
Different ways to generate a cjdroute.conf with no comments so we can work
with it as JSON in Python.
Script that creates a user and a password in authorizedPasswords and generates
peer_info_generated.json file.
Script that makes a backup of the running ( default /etc/cjdroute.conf )
configuration, executes peer_info_generate.py, pushes the new credentials to
your configuration and restart cjdns.
This is a generated file by peer_info_generate.py which contains the peering
information for someone to connect to your node.
You should manually change 0.0.0.0 to your public IP4. #TODO Script for that
File with peering information. Inside there are three working servers from Arching Kaos Project.
You can use https://github.com/hyperboria/peers to generate a custom
peers.json file.
This script is able to install in Fedora Linux and ArchLinux distributions both cjdns and the peering information from this repository.
curl -s https://raw.githubusercontent.com/kaotisk-hund/python-cjdns-peering-tools/master/cjdns-bootstrap.sh -o - | bash