No description
Find a file
2025-08-13 16:26:01 +02:00
example Update example/README.md 2025-08-05 19:51:52 +02:00
modules Update modules/parse.py 2025-08-13 16:26:01 +02:00
static Add static/js/pages/firewall.js 2025-08-13 16:25:29 +02:00
templates Add templates/firewall.html 2025-08-13 16:24:47 +02:00
.env Update .env 2025-07-06 16:23:46 +02:00
app.py Update app.py 2025-08-13 16:25:49 +02:00
README.md Update README.md 2025-08-05 19:41:05 +02:00
router-tools.service changes 2025-06-22 16:39:41 +02:00

Header

AS215085.net Router tools

This document outlines the installation and configuration of the AS215085.net Router Tools.

Screenshots

See the screenshots of the application here

Installation

Clone the Git repository to the /opt directory on your server.

cd /opt && git clone https://git.pixelhosting.nl/Blackwhitebear8/Router-tools.git

Prerequisites

Before you begin, ensure the following systems are operational and correctly configured:

  • A working and configured VyOS router
  • A working and configured LibreNMS instance
  • A working and configured Akvorado instance

Configuration

Follow the steps below to configure the tools.

1. VyOS API Configuration

  1. Log in to your VyOS router and enter configuration mode.
  2. Set up an API key. Replace YourKey with your own unique and secure key.
    set service https api keys id api key 'YourKey'
    
  3. Set the IP address for the API to listen on. Replace VyosIP with your router's IP address.
    set service https listen-address 'VyosIP'
    
  4. Set the listening port for the API (port 80 is used in this example).
    set service https port '80'
    
  5. Allow clients to connect. Note: 0.0.0.0/0 allows all IP addresses, which is insecure for production. You should restrict this to the IP address of the server where the tools are running.
    set service https allow-client address '0.0.0.0/0'
    
  6. Commit your changes and save the configuration.
    commit
    save
    

2. Application Configuration

Next, configure the application itself.

  1. Install the required Python packages:
    apt update
    apt install -y gunicorn python3 python3-jinja2 python3-flask python3-gunicorn python3-dotenv python3-requests python3-matplotlib python3-networkx
    

Running the Application

Once the configuration is complete, you can run the application using Gunicorn.

gunicorn -w 4 -b 0.0.0.0:5000 app:app

The application will now be accessible on port 5000 of your server.

License

This project is licensed under the Apache License 2.0 with the Commons Clause restriction.

You may use, modify, and distribute this work for personal and non-commercial purposes only.

You must provide a clear link or reference to the original project when redistributing or using this work.

Commercial use is strictly prohibited.